@adyen/adyen-web 5.22.0 → 5.24.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.css +29 -20
- package/dist/adyen.css.map +1 -1
- package/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/adyen.css +29 -20
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +29 -20
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +29 -20
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Ach/Ach.d.ts +41 -3
- package/dist/types/components/Ach/components/AchInput/types.d.ts +8 -4
- package/dist/types/components/Ach/types.d.ts +7 -0
- package/dist/types/components/BcmcMobile/BcmcMobile.d.ts +1 -0
- package/dist/types/components/Card/Bancontact.d.ts +13 -0
- package/dist/types/components/Card/Card.d.ts +29 -1
- package/dist/types/components/Card/ClickToPayHolder.d.ts +6 -0
- package/dist/types/components/Card/ClickToPayWrapper.d.ts +4 -0
- package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +1 -0
- package/dist/types/components/Card/components/CardInput/types.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/ClickToPayComponent.d.ts +6 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCards.d.ts +7 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +8 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPEmptyCardsList/CtPEmptyCardsList.d.ts +6 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPEmptyCardsList/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/CtPSingleCard.d.ts +8 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPSingleCard/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPLoader/CtPLoader.d.ts +4 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPLoader/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLogin.d.ts +4 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/CtPLoginInput.d.ts +18 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPLogin/validate.d.ts +2 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePassword.d.ts +4 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPOneTimePasswordInput.d.ts +20 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/CtPResendOtpLink.d.ts +7 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/CtPOneTimePasswordInput/validate.d.ts +2 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPOneTimePassword/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPLogoutLink.d.ts +4 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPSection/CtPSection.d.ts +7 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPSection/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +22 -0
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayProvider.d.ts +16 -0
- package/dist/types/components/Card/components/ClickToPay/context/useClickToPayContext.d.ts +3 -0
- package/dist/types/components/Card/components/ClickToPay/index.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/models/ShopperCard.d.ts +15 -0
- package/dist/types/components/Card/components/ClickToPay/services/ClickToPayService.d.ts +79 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/AbstractSrcInitiator.d.ts +75 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/MastercardSdk.d.ts +13 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/SrcSdkLoader.d.ts +15 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +16 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/VisaSdk.d.ts +13 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/config.d.ts +31 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +53 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/utils.d.ts +5 -0
- package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +40 -0
- package/dist/types/components/Card/components/ClickToPay/services/utils.d.ts +9 -0
- package/dist/types/components/Card/components/ClickToPay/utils.d.ts +7 -0
- package/dist/types/components/Card/types.d.ts +30 -0
- package/dist/types/components/Dragonpay/Dragonpay.d.ts +1 -0
- package/dist/types/components/Dropin/Dropin.d.ts +1 -0
- package/dist/types/components/Pix/Pix.d.ts +1 -0
- package/dist/types/components/Swish/Swish.d.ts +1 -0
- package/dist/types/components/UIElement.d.ts +1 -0
- package/dist/types/components/WeChat/WeChat.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/internal/Button/types.d.ts +3 -1
- package/dist/types/components/internal/ContentSeparator/ContentSeparator.d.ts +2 -1
- package/dist/types/components/internal/FormFields/Field/types.d.ts +2 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +4 -0
- package/dist/types/components/internal/Icon/Icon.d.ts +3 -1
- package/dist/types/components/internal/PayButton/PayButton.d.ts +7 -6
- package/dist/types/components/internal/PayButton/components/SecondaryButtonLabel.d.ts +6 -0
- package/dist/types/components/internal/PayButton/utils.d.ts +7 -0
- package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProvider.d.ts +4 -2
- package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/securedField/AbstractSecuredField.d.ts +3 -1
- package/dist/types/components/types.d.ts +3 -1
- package/dist/types/components/utils.d.ts +2 -2
- package/dist/types/core/types.d.ts +6 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/language/config.d.ts +33 -0
- package/dist/types/language/locales/index.d.ts +66 -0
- package/dist/types/types/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomTranslations, Locales } from '../language/types';
|
|
2
|
-
import {
|
|
2
|
+
import { PaymentMethods, PaymentMethodOptions, PaymentActionsType, PaymentAmountExtended } from '../types';
|
|
3
3
|
import { AnalyticsOptions } from './Analytics/types';
|
|
4
4
|
import { PaymentMethodsResponseObject } from './ProcessResponse/PaymentMethodsResponse/types';
|
|
5
5
|
import { RiskModuleOptions } from './RiskModule/RiskModule';
|
|
@@ -32,7 +32,11 @@ export interface CoreOptions {
|
|
|
32
32
|
/**
|
|
33
33
|
* Amount of the payment
|
|
34
34
|
*/
|
|
35
|
-
amount?:
|
|
35
|
+
amount?: PaymentAmountExtended;
|
|
36
|
+
/**
|
|
37
|
+
* Secondary amount of the payment - alternative currency & value converted according to rate
|
|
38
|
+
*/
|
|
39
|
+
secondaryAmount?: PaymentAmountExtended;
|
|
36
40
|
/**
|
|
37
41
|
* The shopper's country code. A valid value is an ISO two-character country code (e.g. 'NL').
|
|
38
42
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const FALLBACK_LOCALE = "en-US";
|
|
|
5
5
|
export declare const defaultTranslation: {
|
|
6
6
|
payButton: string;
|
|
7
7
|
"payButton.redirecting": string;
|
|
8
|
+
"payButton.with": string;
|
|
8
9
|
storeDetails: string;
|
|
9
10
|
"creditCard.holderName": string;
|
|
10
11
|
"creditCard.holderName.placeholder": string;
|
|
@@ -222,4 +223,36 @@ export declare const defaultTranslation: {
|
|
|
222
223
|
"upi.qrCodeWaitingMessage": string;
|
|
223
224
|
"upi.vpaWaitingMessage": string;
|
|
224
225
|
"onlineBanking.termsAndConditions": string;
|
|
226
|
+
"ctp.loading.poweredByCtp": string;
|
|
227
|
+
"ctp.loading.intro": string;
|
|
228
|
+
"ctp.login.title": string;
|
|
229
|
+
"ctp.login.subtitle": string;
|
|
230
|
+
"ctp.login.inputLabel": string;
|
|
231
|
+
"ctp.logout.notYou": string;
|
|
232
|
+
"ctp.logout.notYouCards": string;
|
|
233
|
+
"ctp.otp.fieldLabel": string;
|
|
234
|
+
"ctp.otp.resendCode": string;
|
|
235
|
+
"ctp.otp.codeResent": string;
|
|
236
|
+
"ctp.otp.title": string;
|
|
237
|
+
"ctp.otp.subtitle": string;
|
|
238
|
+
"ctp.emptyCardsView.title": string;
|
|
239
|
+
"ctp.emptyCardsView.subtitle": string;
|
|
240
|
+
"ctp.emptyCardsView.button": string;
|
|
241
|
+
"ctp.separatorText": string;
|
|
242
|
+
"ctp.cards.title": string;
|
|
243
|
+
"ctp.cards.subtitle": string;
|
|
244
|
+
"ctp.cards.cardSelector": string;
|
|
245
|
+
"ctp.manualCardEntry": string;
|
|
246
|
+
"ctp.errors.AUTH_INVALID": string;
|
|
247
|
+
"ctp.errors.NOT_FOUND": string;
|
|
248
|
+
"ctp.errors.ID_FORMAT_UNSUPPORTED": string;
|
|
249
|
+
"ctp.errors.FRAUD": string;
|
|
250
|
+
"ctp.errors.CONSUMER_ID_MISSING": string;
|
|
251
|
+
"ctp.errors.ACCT_INACCESSIBLE": string;
|
|
252
|
+
"ctp.errors.UNKNOWN_ERROR": string;
|
|
253
|
+
"ctp.errors.CODE_INVALID": string;
|
|
254
|
+
"ctp.errors.CODE_EXPIRED": string;
|
|
255
|
+
"ctp.errors.INVALID_PARAMETER": string;
|
|
256
|
+
"ctp.errors.RETRIES_EXCEEDED": string;
|
|
257
|
+
"ctp.errors.OTP_SEND_FAILED": string;
|
|
225
258
|
};
|
|
@@ -2197,6 +2197,7 @@ declare const _default: {
|
|
|
2197
2197
|
default: {
|
|
2198
2198
|
payButton: string;
|
|
2199
2199
|
"payButton.redirecting": string;
|
|
2200
|
+
"payButton.with": string;
|
|
2200
2201
|
storeDetails: string;
|
|
2201
2202
|
"creditCard.holderName": string;
|
|
2202
2203
|
"creditCard.holderName.placeholder": string;
|
|
@@ -2414,9 +2415,42 @@ declare const _default: {
|
|
|
2414
2415
|
"upi.qrCodeWaitingMessage": string;
|
|
2415
2416
|
"upi.vpaWaitingMessage": string;
|
|
2416
2417
|
"onlineBanking.termsAndConditions": string;
|
|
2418
|
+
"ctp.loading.poweredByCtp": string;
|
|
2419
|
+
"ctp.loading.intro": string;
|
|
2420
|
+
"ctp.login.title": string;
|
|
2421
|
+
"ctp.login.subtitle": string;
|
|
2422
|
+
"ctp.login.inputLabel": string;
|
|
2423
|
+
"ctp.logout.notYou": string;
|
|
2424
|
+
"ctp.logout.notYouCards": string;
|
|
2425
|
+
"ctp.otp.fieldLabel": string;
|
|
2426
|
+
"ctp.otp.resendCode": string;
|
|
2427
|
+
"ctp.otp.codeResent": string;
|
|
2428
|
+
"ctp.otp.title": string;
|
|
2429
|
+
"ctp.otp.subtitle": string;
|
|
2430
|
+
"ctp.emptyCardsView.title": string;
|
|
2431
|
+
"ctp.emptyCardsView.subtitle": string;
|
|
2432
|
+
"ctp.emptyCardsView.button": string;
|
|
2433
|
+
"ctp.separatorText": string;
|
|
2434
|
+
"ctp.cards.title": string;
|
|
2435
|
+
"ctp.cards.subtitle": string;
|
|
2436
|
+
"ctp.cards.cardSelector": string;
|
|
2437
|
+
"ctp.manualCardEntry": string;
|
|
2438
|
+
"ctp.errors.AUTH_INVALID": string;
|
|
2439
|
+
"ctp.errors.NOT_FOUND": string;
|
|
2440
|
+
"ctp.errors.ID_FORMAT_UNSUPPORTED": string;
|
|
2441
|
+
"ctp.errors.FRAUD": string;
|
|
2442
|
+
"ctp.errors.CONSUMER_ID_MISSING": string;
|
|
2443
|
+
"ctp.errors.ACCT_INACCESSIBLE": string;
|
|
2444
|
+
"ctp.errors.UNKNOWN_ERROR": string;
|
|
2445
|
+
"ctp.errors.CODE_INVALID": string;
|
|
2446
|
+
"ctp.errors.CODE_EXPIRED": string;
|
|
2447
|
+
"ctp.errors.INVALID_PARAMETER": string;
|
|
2448
|
+
"ctp.errors.RETRIES_EXCEEDED": string;
|
|
2449
|
+
"ctp.errors.OTP_SEND_FAILED": string;
|
|
2417
2450
|
};
|
|
2418
2451
|
payButton: string;
|
|
2419
2452
|
"payButton.redirecting": string;
|
|
2453
|
+
"payButton.with": string;
|
|
2420
2454
|
storeDetails: string;
|
|
2421
2455
|
"creditCard.holderName": string;
|
|
2422
2456
|
"creditCard.holderName.placeholder": string;
|
|
@@ -2634,6 +2668,38 @@ declare const _default: {
|
|
|
2634
2668
|
"upi.qrCodeWaitingMessage": string;
|
|
2635
2669
|
"upi.vpaWaitingMessage": string;
|
|
2636
2670
|
"onlineBanking.termsAndConditions": string;
|
|
2671
|
+
"ctp.loading.poweredByCtp": string;
|
|
2672
|
+
"ctp.loading.intro": string;
|
|
2673
|
+
"ctp.login.title": string;
|
|
2674
|
+
"ctp.login.subtitle": string;
|
|
2675
|
+
"ctp.login.inputLabel": string;
|
|
2676
|
+
"ctp.logout.notYou": string;
|
|
2677
|
+
"ctp.logout.notYouCards": string;
|
|
2678
|
+
"ctp.otp.fieldLabel": string;
|
|
2679
|
+
"ctp.otp.resendCode": string;
|
|
2680
|
+
"ctp.otp.codeResent": string;
|
|
2681
|
+
"ctp.otp.title": string;
|
|
2682
|
+
"ctp.otp.subtitle": string;
|
|
2683
|
+
"ctp.emptyCardsView.title": string;
|
|
2684
|
+
"ctp.emptyCardsView.subtitle": string;
|
|
2685
|
+
"ctp.emptyCardsView.button": string;
|
|
2686
|
+
"ctp.separatorText": string;
|
|
2687
|
+
"ctp.cards.title": string;
|
|
2688
|
+
"ctp.cards.subtitle": string;
|
|
2689
|
+
"ctp.cards.cardSelector": string;
|
|
2690
|
+
"ctp.manualCardEntry": string;
|
|
2691
|
+
"ctp.errors.AUTH_INVALID": string;
|
|
2692
|
+
"ctp.errors.NOT_FOUND": string;
|
|
2693
|
+
"ctp.errors.ID_FORMAT_UNSUPPORTED": string;
|
|
2694
|
+
"ctp.errors.FRAUD": string;
|
|
2695
|
+
"ctp.errors.CONSUMER_ID_MISSING": string;
|
|
2696
|
+
"ctp.errors.ACCT_INACCESSIBLE": string;
|
|
2697
|
+
"ctp.errors.UNKNOWN_ERROR": string;
|
|
2698
|
+
"ctp.errors.CODE_INVALID": string;
|
|
2699
|
+
"ctp.errors.CODE_EXPIRED": string;
|
|
2700
|
+
"ctp.errors.INVALID_PARAMETER": string;
|
|
2701
|
+
"ctp.errors.RETRIES_EXCEEDED": string;
|
|
2702
|
+
"ctp.errors.OTP_SEND_FAILED": string;
|
|
2637
2703
|
}>;
|
|
2638
2704
|
'es-ES': () => Promise<{
|
|
2639
2705
|
default: {
|
|
@@ -147,6 +147,14 @@ export interface PaymentAmount {
|
|
|
147
147
|
value: number;
|
|
148
148
|
currency: string;
|
|
149
149
|
}
|
|
150
|
+
export interface PaymentAmountExtended extends PaymentAmount {
|
|
151
|
+
/**
|
|
152
|
+
* Adds currencyDisplay prop - as a way for the merchant to influence the final display of the amount on the pay button.
|
|
153
|
+
* Defaults to 'symbol'.
|
|
154
|
+
* see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#currencydisplay
|
|
155
|
+
*/
|
|
156
|
+
currencyDisplay?: string;
|
|
157
|
+
}
|
|
150
158
|
export declare type AddressField = typeof ADDRESS_SCHEMA[number];
|
|
151
159
|
export declare type AddressData = {
|
|
152
160
|
[key in AddressField]?: string;
|
package/package.json
CHANGED