@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.
- package/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Dropin/elements/filters.d.ts +5 -1
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
- package/dist/types/core/Analytics/constants.d.ts +1 -0
- package/dist/types/core/CheckoutSession/CheckoutSession.d.ts +2 -2
- package/dist/types/core/Services/sessions/setup-session.d.ts +2 -2
- package/dist/types/types/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { PaymentMethod } from '../../../types';
|
|
2
2
|
export declare const UNSUPPORTED_PAYMENT_METHODS: string[];
|
|
3
|
-
|
|
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.
|
|
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[];
|
|
@@ -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:
|
|
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:
|
|
2
|
+
import { CheckoutSessionSetupResponse, SetupSessionOptions } from '../../../types';
|
|
3
|
+
declare function setupSession(session: Session, options: SetupSessionOptions): Promise<CheckoutSessionSetupResponse>;
|
|
4
4
|
export default setupSession;
|
package/package.json
CHANGED