@adyen/adyen-web 5.28.3 → 5.29.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 +7 -6
- 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 +7 -6
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +7 -6
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/ar.js +1 -1
- package/dist/es/cs-CZ.js +1 -1
- package/dist/es/da-DK.js +1 -1
- package/dist/es/de-DE.js +1 -1
- package/dist/es/el-GR.js +1 -1
- package/dist/es/es-ES.js +1 -1
- package/dist/es/fi-FI.js +1 -1
- package/dist/es/fr-FR.js +1 -1
- package/dist/es/hr-HR.js +1 -1
- package/dist/es/hu-HU.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/it-IT.js +1 -1
- package/dist/es/ja-JP.js +1 -1
- package/dist/es/ko-KR.js +1 -1
- package/dist/es/nl-NL.js +1 -1
- package/dist/es/no-NO.js +1 -1
- package/dist/es/pl-PL.js +1 -1
- package/dist/es/pt-BR.js +1 -1
- package/dist/es/pt-PT.js +1 -1
- package/dist/es/ro-RO.js +1 -1
- package/dist/es/ru-RU.js +1 -1
- package/dist/es/sk-SK.js +1 -1
- package/dist/es/sl-SI.js +1 -1
- package/dist/es/sv-SE.js +1 -1
- package/dist/es/zh-CN.js +1 -1
- package/dist/es/zh-TW.js +1 -1
- package/dist/es.modern/adyen.css +7 -6
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/ar.js +1 -1
- package/dist/es.modern/cs-CZ.js +1 -1
- package/dist/es.modern/da-DK.js +1 -1
- package/dist/es.modern/de-DE.js +1 -1
- package/dist/es.modern/el-GR.js +1 -1
- package/dist/es.modern/es-ES.js +1 -1
- package/dist/es.modern/fi-FI.js +1 -1
- package/dist/es.modern/fr-FR.js +1 -1
- package/dist/es.modern/hr-HR.js +1 -1
- package/dist/es.modern/hu-HU.js +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/es.modern/it-IT.js +1 -1
- package/dist/es.modern/ja-JP.js +1 -1
- package/dist/es.modern/ko-KR.js +1 -1
- package/dist/es.modern/nl-NL.js +1 -1
- package/dist/es.modern/no-NO.js +1 -1
- package/dist/es.modern/pl-PL.js +1 -1
- package/dist/es.modern/pt-BR.js +1 -1
- package/dist/es.modern/pt-PT.js +1 -1
- package/dist/es.modern/ro-RO.js +1 -1
- package/dist/es.modern/ru-RU.js +1 -1
- package/dist/es.modern/sk-SK.js +1 -1
- package/dist/es.modern/sl-SI.js +1 -1
- package/dist/es.modern/sv-SE.js +1 -1
- package/dist/es.modern/zh-CN.js +1 -1
- package/dist/es.modern/zh-TW.js +1 -1
- package/dist/types/components/Blik/Blik.d.ts +5 -0
- package/dist/types/components/Card/components/ClickToPay/components/CtPCards/CtPCardsList/CtPCardsList.d.ts +1 -0
- package/dist/types/components/Card/components/ClickToPay/context/ClickToPayContext.d.ts +2 -2
- package/dist/types/components/Card/components/ClickToPay/context/useClickToPayContext.d.ts +2 -2
- package/dist/types/components/Card/components/ClickToPay/models/ShopperCard.d.ts +4 -0
- package/dist/types/components/Card/components/ClickToPay/services/sdks/SrciError.d.ts +2 -1
- package/dist/types/components/Card/components/ClickToPay/services/sdks/types.d.ts +2 -0
- package/dist/types/components/Card/components/ClickToPay/services/types.d.ts +6 -3
- package/dist/types/components/Card/components/ClickToPay/services/utils.d.ts +3 -0
- package/dist/types/components/Dropin/Dropin.d.ts +6 -0
- package/dist/types/components/Giftcard/Giftcard.d.ts +2 -2
- package/dist/types/components/PayNow/PayNow.d.ts +46 -0
- package/dist/types/components/PayNow/config.d.ts +7 -0
- package/dist/types/components/PayNow/index.d.ts +1 -0
- package/dist/types/components/PromptPay/PromptPay.d.ts +46 -0
- package/dist/types/components/PromptPay/config.d.ts +7 -0
- package/dist/types/components/PromptPay/index.d.ts +1 -0
- package/dist/types/components/UIElement.d.ts +15 -6
- package/dist/types/components/index.d.ts +4 -0
- 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 +1 -4
- package/dist/types/core/types.d.ts +2 -1
- package/dist/types/language/config.d.ts +1 -0
- package/dist/types/language/locales/index.d.ts +52 -0
- package/dist/types/types/index.d.ts +2 -2
- package/dist/types/utils/Script.d.ts +8 -3
- package/package.json +7 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomTranslations, Locales } from '../language/types';
|
|
2
|
-
import { PaymentMethods, PaymentMethodOptions, PaymentActionsType, PaymentAmountExtended } from '../types';
|
|
2
|
+
import { PaymentMethods, PaymentMethodOptions, PaymentActionsType, PaymentAmountExtended, Order } from '../types';
|
|
3
3
|
import { AnalyticsOptions } from './Analytics/types';
|
|
4
4
|
import { PaymentMethodsResponseObject } from './ProcessResponse/PaymentMethodsResponse/types';
|
|
5
5
|
import { RiskModuleOptions } from './RiskModule/RiskModule';
|
|
@@ -55,6 +55,7 @@ export interface CoreOptions {
|
|
|
55
55
|
removePaymentMethods?: string[];
|
|
56
56
|
analytics?: AnalyticsOptions;
|
|
57
57
|
risk?: RiskModuleOptions;
|
|
58
|
+
order?: Order;
|
|
58
59
|
[key: string]: any;
|
|
59
60
|
}
|
|
60
61
|
export declare type PaymentMethodsConfiguration = {
|
|
@@ -257,6 +257,7 @@ export declare const defaultTranslation: {
|
|
|
257
257
|
"ctp.cards.title": string;
|
|
258
258
|
"ctp.cards.subtitle": string;
|
|
259
259
|
"ctp.cards.cardSelector": string;
|
|
260
|
+
"ctp.cards.expiredCard": string;
|
|
260
261
|
"ctp.manualCardEntry": string;
|
|
261
262
|
"ctp.errors.AUTH_INVALID": string;
|
|
262
263
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -254,6 +254,7 @@ declare const _default: {
|
|
|
254
254
|
"ctp.cards.title": string;
|
|
255
255
|
"ctp.cards.subtitle": string;
|
|
256
256
|
"ctp.cards.cardSelector": string;
|
|
257
|
+
"ctp.cards.expiredCard": string;
|
|
257
258
|
"ctp.manualCardEntry": string;
|
|
258
259
|
"ctp.errors.AUTH_INVALID": string;
|
|
259
260
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -521,6 +522,7 @@ declare const _default: {
|
|
|
521
522
|
"ctp.cards.title": string;
|
|
522
523
|
"ctp.cards.subtitle": string;
|
|
523
524
|
"ctp.cards.cardSelector": string;
|
|
525
|
+
"ctp.cards.expiredCard": string;
|
|
524
526
|
"ctp.manualCardEntry": string;
|
|
525
527
|
"ctp.errors.AUTH_INVALID": string;
|
|
526
528
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -789,6 +791,7 @@ declare const _default: {
|
|
|
789
791
|
"ctp.cards.title": string;
|
|
790
792
|
"ctp.cards.subtitle": string;
|
|
791
793
|
"ctp.cards.cardSelector": string;
|
|
794
|
+
"ctp.cards.expiredCard": string;
|
|
792
795
|
"ctp.manualCardEntry": string;
|
|
793
796
|
"ctp.errors.AUTH_INVALID": string;
|
|
794
797
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -1055,6 +1058,7 @@ declare const _default: {
|
|
|
1055
1058
|
"ctp.cards.title": string;
|
|
1056
1059
|
"ctp.cards.subtitle": string;
|
|
1057
1060
|
"ctp.cards.cardSelector": string;
|
|
1061
|
+
"ctp.cards.expiredCard": string;
|
|
1058
1062
|
"ctp.manualCardEntry": string;
|
|
1059
1063
|
"ctp.errors.AUTH_INVALID": string;
|
|
1060
1064
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -1324,6 +1328,7 @@ declare const _default: {
|
|
|
1324
1328
|
"ctp.cards.title": string;
|
|
1325
1329
|
"ctp.cards.subtitle": string;
|
|
1326
1330
|
"ctp.cards.cardSelector": string;
|
|
1331
|
+
"ctp.cards.expiredCard": string;
|
|
1327
1332
|
"ctp.manualCardEntry": string;
|
|
1328
1333
|
"ctp.errors.AUTH_INVALID": string;
|
|
1329
1334
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -1591,6 +1596,7 @@ declare const _default: {
|
|
|
1591
1596
|
"ctp.cards.title": string;
|
|
1592
1597
|
"ctp.cards.subtitle": string;
|
|
1593
1598
|
"ctp.cards.cardSelector": string;
|
|
1599
|
+
"ctp.cards.expiredCard": string;
|
|
1594
1600
|
"ctp.manualCardEntry": string;
|
|
1595
1601
|
"ctp.errors.AUTH_INVALID": string;
|
|
1596
1602
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -1859,6 +1865,7 @@ declare const _default: {
|
|
|
1859
1865
|
"ctp.cards.title": string;
|
|
1860
1866
|
"ctp.cards.subtitle": string;
|
|
1861
1867
|
"ctp.cards.cardSelector": string;
|
|
1868
|
+
"ctp.cards.expiredCard": string;
|
|
1862
1869
|
"ctp.manualCardEntry": string;
|
|
1863
1870
|
"ctp.errors.AUTH_INVALID": string;
|
|
1864
1871
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -2125,6 +2132,7 @@ declare const _default: {
|
|
|
2125
2132
|
"ctp.cards.title": string;
|
|
2126
2133
|
"ctp.cards.subtitle": string;
|
|
2127
2134
|
"ctp.cards.cardSelector": string;
|
|
2135
|
+
"ctp.cards.expiredCard": string;
|
|
2128
2136
|
"ctp.manualCardEntry": string;
|
|
2129
2137
|
"ctp.errors.AUTH_INVALID": string;
|
|
2130
2138
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -2393,6 +2401,7 @@ declare const _default: {
|
|
|
2393
2401
|
"ctp.cards.title": string;
|
|
2394
2402
|
"ctp.cards.subtitle": string;
|
|
2395
2403
|
"ctp.cards.cardSelector": string;
|
|
2404
|
+
"ctp.cards.expiredCard": string;
|
|
2396
2405
|
"ctp.manualCardEntry": string;
|
|
2397
2406
|
"ctp.errors.AUTH_INVALID": string;
|
|
2398
2407
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -2659,6 +2668,7 @@ declare const _default: {
|
|
|
2659
2668
|
"ctp.cards.title": string;
|
|
2660
2669
|
"ctp.cards.subtitle": string;
|
|
2661
2670
|
"ctp.cards.cardSelector": string;
|
|
2671
|
+
"ctp.cards.expiredCard": string;
|
|
2662
2672
|
"ctp.manualCardEntry": string;
|
|
2663
2673
|
"ctp.errors.AUTH_INVALID": string;
|
|
2664
2674
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -2929,6 +2939,7 @@ declare const _default: {
|
|
|
2929
2939
|
"ctp.cards.title": string;
|
|
2930
2940
|
"ctp.cards.subtitle": string;
|
|
2931
2941
|
"ctp.cards.cardSelector": string;
|
|
2942
|
+
"ctp.cards.expiredCard": string;
|
|
2932
2943
|
"ctp.manualCardEntry": string;
|
|
2933
2944
|
"ctp.errors.AUTH_INVALID": string;
|
|
2934
2945
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -3197,6 +3208,7 @@ declare const _default: {
|
|
|
3197
3208
|
"ctp.cards.title": string;
|
|
3198
3209
|
"ctp.cards.subtitle": string;
|
|
3199
3210
|
"ctp.cards.cardSelector": string;
|
|
3211
|
+
"ctp.cards.expiredCard": string;
|
|
3200
3212
|
"ctp.manualCardEntry": string;
|
|
3201
3213
|
"ctp.errors.AUTH_INVALID": string;
|
|
3202
3214
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -3460,6 +3472,7 @@ declare const _default: {
|
|
|
3460
3472
|
"ctp.cards.title": string;
|
|
3461
3473
|
"ctp.cards.subtitle": string;
|
|
3462
3474
|
"ctp.cards.cardSelector": string;
|
|
3475
|
+
"ctp.cards.expiredCard": string;
|
|
3463
3476
|
"ctp.manualCardEntry": string;
|
|
3464
3477
|
"ctp.errors.AUTH_INVALID": string;
|
|
3465
3478
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -3721,6 +3734,7 @@ declare const _default: {
|
|
|
3721
3734
|
"ctp.cards.title": string;
|
|
3722
3735
|
"ctp.cards.subtitle": string;
|
|
3723
3736
|
"ctp.cards.cardSelector": string;
|
|
3737
|
+
"ctp.cards.expiredCard": string;
|
|
3724
3738
|
"ctp.manualCardEntry": string;
|
|
3725
3739
|
"ctp.errors.AUTH_INVALID": string;
|
|
3726
3740
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -3989,6 +4003,7 @@ declare const _default: {
|
|
|
3989
4003
|
"ctp.cards.title": string;
|
|
3990
4004
|
"ctp.cards.subtitle": string;
|
|
3991
4005
|
"ctp.cards.cardSelector": string;
|
|
4006
|
+
"ctp.cards.expiredCard": string;
|
|
3992
4007
|
"ctp.manualCardEntry": string;
|
|
3993
4008
|
"ctp.errors.AUTH_INVALID": string;
|
|
3994
4009
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -4255,6 +4270,7 @@ declare const _default: {
|
|
|
4255
4270
|
"ctp.cards.title": string;
|
|
4256
4271
|
"ctp.cards.subtitle": string;
|
|
4257
4272
|
"ctp.cards.cardSelector": string;
|
|
4273
|
+
"ctp.cards.expiredCard": string;
|
|
4258
4274
|
"ctp.manualCardEntry": string;
|
|
4259
4275
|
"ctp.errors.AUTH_INVALID": string;
|
|
4260
4276
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -4523,6 +4539,7 @@ declare const _default: {
|
|
|
4523
4539
|
"ctp.cards.title": string;
|
|
4524
4540
|
"ctp.cards.subtitle": string;
|
|
4525
4541
|
"ctp.cards.cardSelector": string;
|
|
4542
|
+
"ctp.cards.expiredCard": string;
|
|
4526
4543
|
"ctp.manualCardEntry": string;
|
|
4527
4544
|
"ctp.errors.AUTH_INVALID": string;
|
|
4528
4545
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -4789,6 +4806,7 @@ declare const _default: {
|
|
|
4789
4806
|
"ctp.cards.title": string;
|
|
4790
4807
|
"ctp.cards.subtitle": string;
|
|
4791
4808
|
"ctp.cards.cardSelector": string;
|
|
4809
|
+
"ctp.cards.expiredCard": string;
|
|
4792
4810
|
"ctp.manualCardEntry": string;
|
|
4793
4811
|
"ctp.errors.AUTH_INVALID": string;
|
|
4794
4812
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -5057,6 +5075,7 @@ declare const _default: {
|
|
|
5057
5075
|
"ctp.cards.title": string;
|
|
5058
5076
|
"ctp.cards.subtitle": string;
|
|
5059
5077
|
"ctp.cards.cardSelector": string;
|
|
5078
|
+
"ctp.cards.expiredCard": string;
|
|
5060
5079
|
"ctp.manualCardEntry": string;
|
|
5061
5080
|
"ctp.errors.AUTH_INVALID": string;
|
|
5062
5081
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -5323,6 +5342,7 @@ declare const _default: {
|
|
|
5323
5342
|
"ctp.cards.title": string;
|
|
5324
5343
|
"ctp.cards.subtitle": string;
|
|
5325
5344
|
"ctp.cards.cardSelector": string;
|
|
5345
|
+
"ctp.cards.expiredCard": string;
|
|
5326
5346
|
"ctp.manualCardEntry": string;
|
|
5327
5347
|
"ctp.errors.AUTH_INVALID": string;
|
|
5328
5348
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -5591,6 +5611,7 @@ declare const _default: {
|
|
|
5591
5611
|
"ctp.cards.title": string;
|
|
5592
5612
|
"ctp.cards.subtitle": string;
|
|
5593
5613
|
"ctp.cards.cardSelector": string;
|
|
5614
|
+
"ctp.cards.expiredCard": string;
|
|
5594
5615
|
"ctp.manualCardEntry": string;
|
|
5595
5616
|
"ctp.errors.AUTH_INVALID": string;
|
|
5596
5617
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -5857,6 +5878,7 @@ declare const _default: {
|
|
|
5857
5878
|
"ctp.cards.title": string;
|
|
5858
5879
|
"ctp.cards.subtitle": string;
|
|
5859
5880
|
"ctp.cards.cardSelector": string;
|
|
5881
|
+
"ctp.cards.expiredCard": string;
|
|
5860
5882
|
"ctp.manualCardEntry": string;
|
|
5861
5883
|
"ctp.errors.AUTH_INVALID": string;
|
|
5862
5884
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -6123,6 +6145,7 @@ declare const _default: {
|
|
|
6123
6145
|
"ctp.cards.title": string;
|
|
6124
6146
|
"ctp.cards.subtitle": string;
|
|
6125
6147
|
"ctp.cards.cardSelector": string;
|
|
6148
|
+
"ctp.cards.expiredCard": string;
|
|
6126
6149
|
"ctp.manualCardEntry": string;
|
|
6127
6150
|
"ctp.errors.AUTH_INVALID": string;
|
|
6128
6151
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -6387,6 +6410,7 @@ declare const _default: {
|
|
|
6387
6410
|
"ctp.cards.title": string;
|
|
6388
6411
|
"ctp.cards.subtitle": string;
|
|
6389
6412
|
"ctp.cards.cardSelector": string;
|
|
6413
|
+
"ctp.cards.expiredCard": string;
|
|
6390
6414
|
"ctp.manualCardEntry": string;
|
|
6391
6415
|
"ctp.errors.AUTH_INVALID": string;
|
|
6392
6416
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -6655,6 +6679,7 @@ declare const _default: {
|
|
|
6655
6679
|
"ctp.cards.title": string;
|
|
6656
6680
|
"ctp.cards.subtitle": string;
|
|
6657
6681
|
"ctp.cards.cardSelector": string;
|
|
6682
|
+
"ctp.cards.expiredCard": string;
|
|
6658
6683
|
"ctp.manualCardEntry": string;
|
|
6659
6684
|
"ctp.errors.AUTH_INVALID": string;
|
|
6660
6685
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -6921,6 +6946,7 @@ declare const _default: {
|
|
|
6921
6946
|
"ctp.cards.title": string;
|
|
6922
6947
|
"ctp.cards.subtitle": string;
|
|
6923
6948
|
"ctp.cards.cardSelector": string;
|
|
6949
|
+
"ctp.cards.expiredCard": string;
|
|
6924
6950
|
"ctp.manualCardEntry": string;
|
|
6925
6951
|
"ctp.errors.AUTH_INVALID": string;
|
|
6926
6952
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -7189,6 +7215,7 @@ declare const _default: {
|
|
|
7189
7215
|
"ctp.cards.title": string;
|
|
7190
7216
|
"ctp.cards.subtitle": string;
|
|
7191
7217
|
"ctp.cards.cardSelector": string;
|
|
7218
|
+
"ctp.cards.expiredCard": string;
|
|
7192
7219
|
"ctp.manualCardEntry": string;
|
|
7193
7220
|
"ctp.errors.AUTH_INVALID": string;
|
|
7194
7221
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -7455,6 +7482,7 @@ declare const _default: {
|
|
|
7455
7482
|
"ctp.cards.title": string;
|
|
7456
7483
|
"ctp.cards.subtitle": string;
|
|
7457
7484
|
"ctp.cards.cardSelector": string;
|
|
7485
|
+
"ctp.cards.expiredCard": string;
|
|
7458
7486
|
"ctp.manualCardEntry": string;
|
|
7459
7487
|
"ctp.errors.AUTH_INVALID": string;
|
|
7460
7488
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -7723,6 +7751,7 @@ declare const _default: {
|
|
|
7723
7751
|
"ctp.cards.title": string;
|
|
7724
7752
|
"ctp.cards.subtitle": string;
|
|
7725
7753
|
"ctp.cards.cardSelector": string;
|
|
7754
|
+
"ctp.cards.expiredCard": string;
|
|
7726
7755
|
"ctp.manualCardEntry": string;
|
|
7727
7756
|
"ctp.errors.AUTH_INVALID": string;
|
|
7728
7757
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -7989,6 +8018,7 @@ declare const _default: {
|
|
|
7989
8018
|
"ctp.cards.title": string;
|
|
7990
8019
|
"ctp.cards.subtitle": string;
|
|
7991
8020
|
"ctp.cards.cardSelector": string;
|
|
8021
|
+
"ctp.cards.expiredCard": string;
|
|
7992
8022
|
"ctp.manualCardEntry": string;
|
|
7993
8023
|
"ctp.errors.AUTH_INVALID": string;
|
|
7994
8024
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -8257,6 +8287,7 @@ declare const _default: {
|
|
|
8257
8287
|
"ctp.cards.title": string;
|
|
8258
8288
|
"ctp.cards.subtitle": string;
|
|
8259
8289
|
"ctp.cards.cardSelector": string;
|
|
8290
|
+
"ctp.cards.expiredCard": string;
|
|
8260
8291
|
"ctp.manualCardEntry": string;
|
|
8261
8292
|
"ctp.errors.AUTH_INVALID": string;
|
|
8262
8293
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -8523,6 +8554,7 @@ declare const _default: {
|
|
|
8523
8554
|
"ctp.cards.title": string;
|
|
8524
8555
|
"ctp.cards.subtitle": string;
|
|
8525
8556
|
"ctp.cards.cardSelector": string;
|
|
8557
|
+
"ctp.cards.expiredCard": string;
|
|
8526
8558
|
"ctp.manualCardEntry": string;
|
|
8527
8559
|
"ctp.errors.AUTH_INVALID": string;
|
|
8528
8560
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -8791,6 +8823,7 @@ declare const _default: {
|
|
|
8791
8823
|
"ctp.cards.title": string;
|
|
8792
8824
|
"ctp.cards.subtitle": string;
|
|
8793
8825
|
"ctp.cards.cardSelector": string;
|
|
8826
|
+
"ctp.cards.expiredCard": string;
|
|
8794
8827
|
"ctp.manualCardEntry": string;
|
|
8795
8828
|
"ctp.errors.AUTH_INVALID": string;
|
|
8796
8829
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -9057,6 +9090,7 @@ declare const _default: {
|
|
|
9057
9090
|
"ctp.cards.title": string;
|
|
9058
9091
|
"ctp.cards.subtitle": string;
|
|
9059
9092
|
"ctp.cards.cardSelector": string;
|
|
9093
|
+
"ctp.cards.expiredCard": string;
|
|
9060
9094
|
"ctp.manualCardEntry": string;
|
|
9061
9095
|
"ctp.errors.AUTH_INVALID": string;
|
|
9062
9096
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -9323,6 +9357,7 @@ declare const _default: {
|
|
|
9323
9357
|
"ctp.cards.title": string;
|
|
9324
9358
|
"ctp.cards.subtitle": string;
|
|
9325
9359
|
"ctp.cards.cardSelector": string;
|
|
9360
|
+
"ctp.cards.expiredCard": string;
|
|
9326
9361
|
"ctp.manualCardEntry": string;
|
|
9327
9362
|
"ctp.errors.AUTH_INVALID": string;
|
|
9328
9363
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -9587,6 +9622,7 @@ declare const _default: {
|
|
|
9587
9622
|
"ctp.cards.title": string;
|
|
9588
9623
|
"ctp.cards.subtitle": string;
|
|
9589
9624
|
"ctp.cards.cardSelector": string;
|
|
9625
|
+
"ctp.cards.expiredCard": string;
|
|
9590
9626
|
"ctp.manualCardEntry": string;
|
|
9591
9627
|
"ctp.errors.AUTH_INVALID": string;
|
|
9592
9628
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -9857,6 +9893,7 @@ declare const _default: {
|
|
|
9857
9893
|
"ctp.cards.title": string;
|
|
9858
9894
|
"ctp.cards.subtitle": string;
|
|
9859
9895
|
"ctp.cards.cardSelector": string;
|
|
9896
|
+
"ctp.cards.expiredCard": string;
|
|
9860
9897
|
"ctp.manualCardEntry": string;
|
|
9861
9898
|
"ctp.errors.AUTH_INVALID": string;
|
|
9862
9899
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -10125,6 +10162,7 @@ declare const _default: {
|
|
|
10125
10162
|
"ctp.cards.title": string;
|
|
10126
10163
|
"ctp.cards.subtitle": string;
|
|
10127
10164
|
"ctp.cards.cardSelector": string;
|
|
10165
|
+
"ctp.cards.expiredCard": string;
|
|
10128
10166
|
"ctp.manualCardEntry": string;
|
|
10129
10167
|
"ctp.errors.AUTH_INVALID": string;
|
|
10130
10168
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -10393,6 +10431,7 @@ declare const _default: {
|
|
|
10393
10431
|
"ctp.cards.title": string;
|
|
10394
10432
|
"ctp.cards.subtitle": string;
|
|
10395
10433
|
"ctp.cards.cardSelector": string;
|
|
10434
|
+
"ctp.cards.expiredCard": string;
|
|
10396
10435
|
"ctp.manualCardEntry": string;
|
|
10397
10436
|
"ctp.errors.AUTH_INVALID": string;
|
|
10398
10437
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -10659,6 +10698,7 @@ declare const _default: {
|
|
|
10659
10698
|
"ctp.cards.title": string;
|
|
10660
10699
|
"ctp.cards.subtitle": string;
|
|
10661
10700
|
"ctp.cards.cardSelector": string;
|
|
10701
|
+
"ctp.cards.expiredCard": string;
|
|
10662
10702
|
"ctp.manualCardEntry": string;
|
|
10663
10703
|
"ctp.errors.AUTH_INVALID": string;
|
|
10664
10704
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -10924,6 +10964,7 @@ declare const _default: {
|
|
|
10924
10964
|
"ctp.cards.title": string;
|
|
10925
10965
|
"ctp.cards.subtitle": string;
|
|
10926
10966
|
"ctp.cards.cardSelector": string;
|
|
10967
|
+
"ctp.cards.expiredCard": string;
|
|
10927
10968
|
"ctp.manualCardEntry": string;
|
|
10928
10969
|
"ctp.errors.AUTH_INVALID": string;
|
|
10929
10970
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -11187,6 +11228,7 @@ declare const _default: {
|
|
|
11187
11228
|
"ctp.cards.title": string;
|
|
11188
11229
|
"ctp.cards.subtitle": string;
|
|
11189
11230
|
"ctp.cards.cardSelector": string;
|
|
11231
|
+
"ctp.cards.expiredCard": string;
|
|
11190
11232
|
"ctp.manualCardEntry": string;
|
|
11191
11233
|
"ctp.errors.AUTH_INVALID": string;
|
|
11192
11234
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -11455,6 +11497,7 @@ declare const _default: {
|
|
|
11455
11497
|
"ctp.cards.title": string;
|
|
11456
11498
|
"ctp.cards.subtitle": string;
|
|
11457
11499
|
"ctp.cards.cardSelector": string;
|
|
11500
|
+
"ctp.cards.expiredCard": string;
|
|
11458
11501
|
"ctp.manualCardEntry": string;
|
|
11459
11502
|
"ctp.errors.AUTH_INVALID": string;
|
|
11460
11503
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -11721,6 +11764,7 @@ declare const _default: {
|
|
|
11721
11764
|
"ctp.cards.title": string;
|
|
11722
11765
|
"ctp.cards.subtitle": string;
|
|
11723
11766
|
"ctp.cards.cardSelector": string;
|
|
11767
|
+
"ctp.cards.expiredCard": string;
|
|
11724
11768
|
"ctp.manualCardEntry": string;
|
|
11725
11769
|
"ctp.errors.AUTH_INVALID": string;
|
|
11726
11770
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -11989,6 +12033,7 @@ declare const _default: {
|
|
|
11989
12033
|
"ctp.cards.title": string;
|
|
11990
12034
|
"ctp.cards.subtitle": string;
|
|
11991
12035
|
"ctp.cards.cardSelector": string;
|
|
12036
|
+
"ctp.cards.expiredCard": string;
|
|
11992
12037
|
"ctp.manualCardEntry": string;
|
|
11993
12038
|
"ctp.errors.AUTH_INVALID": string;
|
|
11994
12039
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -12255,6 +12300,7 @@ declare const _default: {
|
|
|
12255
12300
|
"ctp.cards.title": string;
|
|
12256
12301
|
"ctp.cards.subtitle": string;
|
|
12257
12302
|
"ctp.cards.cardSelector": string;
|
|
12303
|
+
"ctp.cards.expiredCard": string;
|
|
12258
12304
|
"ctp.manualCardEntry": string;
|
|
12259
12305
|
"ctp.errors.AUTH_INVALID": string;
|
|
12260
12306
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -12523,6 +12569,7 @@ declare const _default: {
|
|
|
12523
12569
|
"ctp.cards.title": string;
|
|
12524
12570
|
"ctp.cards.subtitle": string;
|
|
12525
12571
|
"ctp.cards.cardSelector": string;
|
|
12572
|
+
"ctp.cards.expiredCard": string;
|
|
12526
12573
|
"ctp.manualCardEntry": string;
|
|
12527
12574
|
"ctp.errors.AUTH_INVALID": string;
|
|
12528
12575
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -12789,6 +12836,7 @@ declare const _default: {
|
|
|
12789
12836
|
"ctp.cards.title": string;
|
|
12790
12837
|
"ctp.cards.subtitle": string;
|
|
12791
12838
|
"ctp.cards.cardSelector": string;
|
|
12839
|
+
"ctp.cards.expiredCard": string;
|
|
12792
12840
|
"ctp.manualCardEntry": string;
|
|
12793
12841
|
"ctp.errors.AUTH_INVALID": string;
|
|
12794
12842
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -13056,6 +13104,7 @@ declare const _default: {
|
|
|
13056
13104
|
"ctp.cards.title": string;
|
|
13057
13105
|
"ctp.cards.subtitle": string;
|
|
13058
13106
|
"ctp.cards.cardSelector": string;
|
|
13107
|
+
"ctp.cards.expiredCard": string;
|
|
13059
13108
|
"ctp.manualCardEntry": string;
|
|
13060
13109
|
"ctp.errors.AUTH_INVALID": string;
|
|
13061
13110
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -13321,6 +13370,7 @@ declare const _default: {
|
|
|
13321
13370
|
"ctp.cards.title": string;
|
|
13322
13371
|
"ctp.cards.subtitle": string;
|
|
13323
13372
|
"ctp.cards.cardSelector": string;
|
|
13373
|
+
"ctp.cards.expiredCard": string;
|
|
13324
13374
|
"ctp.manualCardEntry": string;
|
|
13325
13375
|
"ctp.errors.AUTH_INVALID": string;
|
|
13326
13376
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -13589,6 +13639,7 @@ declare const _default: {
|
|
|
13589
13639
|
"ctp.cards.title": string;
|
|
13590
13640
|
"ctp.cards.subtitle": string;
|
|
13591
13641
|
"ctp.cards.cardSelector": string;
|
|
13642
|
+
"ctp.cards.expiredCard": string;
|
|
13592
13643
|
"ctp.manualCardEntry": string;
|
|
13593
13644
|
"ctp.errors.AUTH_INVALID": string;
|
|
13594
13645
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -13855,6 +13906,7 @@ declare const _default: {
|
|
|
13855
13906
|
"ctp.cards.title": string;
|
|
13856
13907
|
"ctp.cards.subtitle": string;
|
|
13857
13908
|
"ctp.cards.cardSelector": string;
|
|
13909
|
+
"ctp.cards.expiredCard": string;
|
|
13858
13910
|
"ctp.manualCardEntry": string;
|
|
13859
13911
|
"ctp.errors.AUTH_INVALID": string;
|
|
13860
13912
|
"ctp.errors.NOT_FOUND": string;
|
|
@@ -236,13 +236,13 @@ export declare type CheckoutSessionSetupResponse = {
|
|
|
236
236
|
export declare type CheckoutSessionPaymentResponse = {
|
|
237
237
|
sessionData: string;
|
|
238
238
|
status?: string;
|
|
239
|
-
resultCode
|
|
239
|
+
resultCode: string;
|
|
240
240
|
action?: PaymentAction;
|
|
241
241
|
};
|
|
242
242
|
export declare type CheckoutSessionDetailsResponse = {
|
|
243
243
|
sessionData: string;
|
|
244
244
|
status?: string;
|
|
245
|
-
resultCode
|
|
245
|
+
resultCode: string;
|
|
246
246
|
action?: PaymentAction;
|
|
247
247
|
};
|
|
248
248
|
export declare type CheckoutSessionBalanceResponse = {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
interface IScript {
|
|
2
|
+
load(): Promise<any>;
|
|
3
|
+
remove(): HTMLScriptElement;
|
|
4
|
+
}
|
|
1
5
|
/**
|
|
2
6
|
* Creates a script element from a certain source in the passed node selector.
|
|
3
7
|
* If no selector is passed it will add the script element in the body.
|
|
@@ -11,14 +15,15 @@
|
|
|
11
15
|
* script.remove();
|
|
12
16
|
* ```
|
|
13
17
|
*/
|
|
14
|
-
declare class Script {
|
|
15
|
-
private readonly script;
|
|
18
|
+
declare class Script implements IScript {
|
|
16
19
|
private readonly src;
|
|
17
20
|
private readonly node;
|
|
18
21
|
private readonly attributes;
|
|
19
22
|
private readonly dataAttributes;
|
|
23
|
+
private isScriptLoadCalled;
|
|
24
|
+
private script;
|
|
20
25
|
constructor(src: any, node?: string, attributes?: Partial<HTMLScriptElement>, dataAttributes?: Record<string, string | undefined>);
|
|
21
|
-
load: () => Promise<
|
|
26
|
+
load: () => Promise<void>;
|
|
22
27
|
remove: () => HTMLScriptElement;
|
|
23
28
|
}
|
|
24
29
|
export default Script;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./dist/adyen.css": "./dist/adyen.css",
|
|
24
24
|
"./package.json": "./package.json"
|
|
25
25
|
},
|
|
26
|
-
"version": "5.
|
|
26
|
+
"version": "5.29.0",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"homepage": "https://docs.adyen.com/checkout",
|
|
29
29
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -60,9 +60,11 @@
|
|
|
60
60
|
"@rollup/plugin-eslint": "^8.0.1",
|
|
61
61
|
"@rollup/plugin-json": "^4.1.0",
|
|
62
62
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
63
|
-
"@rollup/plugin-replace": "^
|
|
63
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
64
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
64
65
|
"@testing-library/preact": "^2.0.1",
|
|
65
66
|
"@testing-library/preact-hooks": "^1.1.0",
|
|
67
|
+
"@testing-library/user-event": "^14.4.3",
|
|
66
68
|
"@types/jest": "^27.4.1",
|
|
67
69
|
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
68
70
|
"@typescript-eslint/parser": "^5.39.0",
|
|
@@ -78,10 +80,12 @@
|
|
|
78
80
|
"eslint-plugin-import": "^2.26.0",
|
|
79
81
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
80
82
|
"eslint-plugin-react": "^7.31.8",
|
|
83
|
+
"eslint-plugin-testing-library": "^5.9.1",
|
|
81
84
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
82
85
|
"filesize": "^9.0.11",
|
|
83
86
|
"gzip-size": "^6.0.0",
|
|
84
87
|
"jest": "^26.6.3",
|
|
88
|
+
"jest-mock-extended": "^3.0.1",
|
|
85
89
|
"node-sass": "^6.0.1",
|
|
86
90
|
"postcss": "^8.4.7",
|
|
87
91
|
"postcss-reporter": "^7.0.5",
|
|
@@ -94,7 +98,7 @@
|
|
|
94
98
|
"stylelint": "^13.13.1",
|
|
95
99
|
"stylelint-config-recommended": "^5.0.0",
|
|
96
100
|
"ts-jest": "^26.5.6",
|
|
97
|
-
"tslib": "^2.
|
|
101
|
+
"tslib": "^2.4.1",
|
|
98
102
|
"typescript": "^4.4.4",
|
|
99
103
|
"whatwg-fetch": "^3.6.2"
|
|
100
104
|
},
|