@adyen/adyen-web 5.68.1 → 5.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
1
  import { PaymentMethod } from '../../../types';
2
2
  export declare const UNSUPPORTED_PAYMENT_METHODS: string[];
3
- export declare const filterUnsupported: (paymentMethod: any) => boolean;
3
+ /**
4
+ * Filter out payment methods that are not supported by Drop-in
5
+ * @param paymentMethod - Payment method object from /paymentMethods response
6
+ */
7
+ export declare const filterUnsupportedPaymentMethod: (paymentMethod: PaymentMethod) => boolean;
4
8
  export declare const filterPresent: (paymentMethod: any) => boolean;
5
9
  export declare const filterAvailable: (paymentMethod: any) => Promise<any>;
6
10
  export declare const optionallyFilterUpiSubTxVariants: (paymentMethods: Array<PaymentMethod>) => PaymentMethod[];
@@ -12,7 +12,7 @@ export declare const ENCRYPTED_BANK_LOCATION_FIELD = "encryptedBankLocationId";
12
12
  export declare const ENCRYPTED_SECURITY_CODE_3_DIGITS = "encryptedSecurityCode3digits";
13
13
  export declare const ENCRYPTED_SECURITY_CODE_4_DIGITS = "encryptedSecurityCode4digits";
14
14
  export declare const GIFT_CARD = "giftcard";
15
- export declare const SF_VERSION = "4.9.0";
15
+ export declare const SF_VERSION = "4.10.0";
16
16
  export declare const DEFAULT_CARD_GROUP_TYPES: string[];
17
17
  export declare const NON_CREDIT_CARD_TYPE_SECURED_FIELDS: string[];
18
18
  export declare const CREDIT_CARD_SF_FIELDS: string[];
@@ -80,3 +80,4 @@ export declare enum Analytics3DS2Events {
80
80
  CHALLENGE_IFRAME_LOADED = "challengeIframeLoaded",
81
81
  CHALLENGE_COMPLETED = "challengeCompleted"
82
82
  }
83
+ export declare const NO_CHECKOUT_ATTEMPT_ID = "fetch-checkoutAttemptId-failed";
@@ -1,4 +1,4 @@
1
- import { CheckoutSession, CheckoutSessionBalanceResponse, CheckoutSessionDetailsResponse, CheckoutSessionOrdersResponse, CheckoutSessionPaymentResponse, CheckoutSessionSetupResponse, SessionConfiguration } from '../../types';
1
+ import { CheckoutSession, CheckoutSessionBalanceResponse, CheckoutSessionDetailsResponse, CheckoutSessionOrdersResponse, CheckoutSessionPaymentResponse, CheckoutSessionSetupResponse, SessionConfiguration, SetupSessionOptions } from '../../types';
2
2
  import { onOrderCancelData } from '../../components/Dropin/types';
3
3
  declare class Session {
4
4
  private readonly session;
@@ -16,7 +16,7 @@ declare class Session {
16
16
  /**
17
17
  * Fetches data from a session
18
18
  */
19
- setupSession(options: any): Promise<CheckoutSessionSetupResponse>;
19
+ setupSession(options: SetupSessionOptions): Promise<CheckoutSessionSetupResponse>;
20
20
  /**
21
21
  * Submits a session payment
22
22
  */
@@ -1,4 +1,4 @@
1
1
  import Session from '../../CheckoutSession';
2
- import { CheckoutSessionSetupResponse } from '../../../types';
3
- declare function setupSession(session: Session, options: any): Promise<CheckoutSessionSetupResponse>;
2
+ import { CheckoutSessionSetupResponse, SetupSessionOptions } from '../../../types';
3
+ declare function setupSession(session: Session, options: SetupSessionOptions): Promise<CheckoutSessionSetupResponse>;
4
4
  export default setupSession;
@@ -278,3 +278,7 @@ export type CheckoutSessionOrdersResponse = {
278
278
  orderData: string;
279
279
  pspReference: string;
280
280
  };
281
+ export type SetupSessionOptions = {
282
+ browserInfo?: BrowserInfo;
283
+ order?: Order;
284
+ };
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "./dist/es/adyen.css": "./dist/es/adyen.css",
26
26
  "./package.json": "./package.json"
27
27
  },
28
- "version": "5.68.1",
28
+ "version": "5.69.0",
29
29
  "license": "MIT",
30
30
  "homepage": "https://docs.adyen.com/checkout",
31
31
  "repository": "github:Adyen/adyen-web",