@paykka/card-checkout-ui 0.18.0 → 0.21.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/card-checkout-ui.js +15 -15
- package/dist/card-checkout-ui.umd.cjs +15 -15
- package/dist/es/api/modules/checkout/map.js +1 -1
- package/dist/es/api/modules/get-browser-params.js +1 -1
- package/dist/es/components/Card/index.js +48 -31
- package/dist/es/components/DropIn/index.js +21 -5
- package/dist/es/components/GuideCard/index.js +7 -50
- package/dist/es/components/Sepa/index.js +2 -1
- package/dist/es/components/business/QRCodeContent/QRCodeContent.js +68 -0
- package/dist/es/components/business/QRCodeContent/index.js +8 -0
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +5 -44
- package/dist/es/components/business/QRCodeModal/index.js +2 -1
- package/dist/es/components/business/index.js +2 -1
- package/dist/es/components/index.js +3 -1
- package/dist/es/components/internal/Button/Button2.js +2 -2
- package/dist/es/components/internal/icons/IconAlipay.js +43 -0
- package/dist/es/components/internal/icons/IconAlipayHK.js +66 -0
- package/dist/es/components/wallets/Alipay/Alipay.js +148 -0
- package/dist/es/components/wallets/Alipay/index.js +1 -0
- package/dist/es/components/wallets/Alipay/type.js +1 -0
- package/dist/es/components/wallets/AlipayHK/AlipayHK.js +148 -0
- package/dist/es/components/wallets/AlipayHK/alipay-hk.js +1 -0
- package/dist/es/components/wallets/AlipayHK/index.js +1 -0
- package/dist/es/components/wallets/AlipayHK/type.js +1 -0
- package/dist/es/components/wallets/{AliPay/AliPay.js → AlipayPlus/AlipayPlus.js} +13 -15
- package/dist/es/components/wallets/AlipayPlus/ali-pay-plus.js +1 -0
- package/dist/es/components/wallets/AlipayPlus/index.js +1 -0
- package/dist/es/components/wallets/AlipayPlus/type.js +1 -0
- package/dist/es/components/wallets/Bancontact/Bancontact.js +4 -3
- package/dist/es/components/wallets/Blik/Blik.js +4 -3
- package/dist/es/components/wallets/Doku/Doku.js +2 -1
- package/dist/es/components/wallets/EPS/EPS.js +4 -3
- package/dist/es/components/wallets/GCash/GCash.js +2 -0
- package/dist/es/components/wallets/GoPay/GoPay.js +2 -1
- package/dist/es/components/wallets/IDeal/IDeal.js +4 -3
- package/dist/es/components/wallets/Jenius/Jenius.js +2 -1
- package/dist/es/components/wallets/LinkAja/LinkAja.js +2 -1
- package/dist/es/components/wallets/NuPay/NuPay.js +2 -1
- package/dist/es/components/wallets/OVO/OVO.js +2 -1
- package/dist/es/components/wallets/P24/P24.js +2 -1
- package/dist/es/components/wallets/PayByBank/PayByBank.js +2 -1
- package/dist/es/components/wallets/PayU/PayU.js +2 -1
- package/dist/es/components/wallets/Skrill/Skrill.js +2 -1
- package/dist/es/components/wallets/Trustly/Trustly.js +2 -1
- package/dist/es/components/wallets/Twint/Twint.js +2 -1
- package/dist/es/components/wallets/Vietqr/Vietqr.js +2 -0
- package/dist/es/components/wallets/WechatPay/WechatPay.js +4 -2
- package/dist/es/components/wallets/Zalopay/Zalopay.js +2 -0
- package/dist/es/components/wallets/index.js +3 -1
- package/dist/es/constant.js +15 -3
- package/dist/es/core/environment.js +17 -3
- package/dist/es/core/logger.js +1 -1
- package/dist/es/hooks/useBaseWallet.js +13 -5
- package/dist/es/hooks/useRetry.js +6 -0
- package/dist/es/i18n/locales/cs-CZ.js +8 -1
- package/dist/es/i18n/locales/da-DK.js +8 -1
- package/dist/es/i18n/locales/de-DE.js +8 -1
- package/dist/es/i18n/locales/en-GB.js +8 -1
- package/dist/es/i18n/locales/es-ES.js +8 -1
- package/dist/es/i18n/locales/fi-FI.js +8 -1
- package/dist/es/i18n/locales/fil-PH.js +8 -1
- package/dist/es/i18n/locales/fr-FR.js +8 -1
- package/dist/es/i18n/locales/hi-IN.js +8 -1
- package/dist/es/i18n/locales/id-ID.js +8 -1
- package/dist/es/i18n/locales/it-IT.js +8 -1
- package/dist/es/i18n/locales/ja-JP.js +8 -1
- package/dist/es/i18n/locales/ko-KR.js +8 -1
- package/dist/es/i18n/locales/ms-MY.js +8 -1
- package/dist/es/i18n/locales/nb-NO.js +8 -1
- package/dist/es/i18n/locales/nl-NL.js +8 -1
- package/dist/es/i18n/locales/pl-PL.js +8 -1
- package/dist/es/i18n/locales/pt-PT.js +8 -1
- package/dist/es/i18n/locales/ru-RU.js +8 -1
- package/dist/es/i18n/locales/sv-SE.js +8 -1
- package/dist/es/i18n/locales/th-TH.js +8 -1
- package/dist/es/i18n/locales/zh-CN.js +8 -1
- package/dist/es/i18n/locales/zh-HK.js +8 -1
- package/dist/es/i18n/locales/zh-TW.js +8 -1
- package/dist/es/index.js +6 -2
- package/dist/es/style.css +1 -1
- package/dist/es/utils/date.js +5 -1
- package/dist/style.css +1 -1
- package/dist/types/components/DropIn/type.d.ts +1 -1
- package/dist/types/components/business/QRCodeContent/QRCodeContent.d.ts +3 -0
- package/dist/types/components/business/QRCodeContent/index.d.ts +2 -0
- package/dist/types/components/business/QRCodeContent/type.d.ts +23 -0
- package/dist/types/components/business/QRCodeModal/QRCodeModal.d.ts +0 -1
- package/dist/types/components/business/QRCodeModal/type.d.ts +2 -28
- package/dist/types/components/business/index.d.ts +1 -0
- package/dist/types/components/internal/Button/type.d.ts +1 -0
- package/dist/types/components/internal/icons/IconAlipay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconAlipayHK.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +2 -0
- package/dist/types/components/wallets/Alipay/Alipay.d.ts +15 -0
- package/dist/types/components/wallets/Alipay/index.d.ts +2 -0
- package/dist/types/components/wallets/{AliPay → Alipay}/type.d.ts +2 -2
- package/dist/types/components/wallets/AlipayHK/AlipayHK.d.ts +15 -0
- package/dist/types/components/wallets/AlipayHK/index.d.ts +2 -0
- package/dist/types/components/wallets/AlipayHK/type.d.ts +7 -0
- package/dist/types/components/wallets/AlipayPlus/AlipayPlus.d.ts +15 -0
- package/dist/types/components/wallets/AlipayPlus/index.d.ts +2 -0
- package/dist/types/components/wallets/AlipayPlus/type.d.ts +7 -0
- package/dist/types/components/wallets/index.d.ts +3 -1
- package/dist/types/constant.d.ts +6 -2
- package/dist/types/hooks/useBaseWallet.d.ts +13 -0
- package/dist/types/hooks/useRetry.d.ts +2 -0
- package/dist/types/i18n/locales/cs-CZ.d.ts +7 -0
- package/dist/types/i18n/locales/da-DK.d.ts +7 -0
- package/dist/types/i18n/locales/de-DE.d.ts +7 -0
- package/dist/types/i18n/locales/en-GB.d.ts +7 -0
- package/dist/types/i18n/locales/es-ES.d.ts +7 -0
- package/dist/types/i18n/locales/fi-FI.d.ts +7 -0
- package/dist/types/i18n/locales/fil-PH.d.ts +7 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +7 -0
- package/dist/types/i18n/locales/hi-IN.d.ts +7 -0
- package/dist/types/i18n/locales/id-ID.d.ts +7 -0
- package/dist/types/i18n/locales/it-IT.d.ts +7 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +7 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +7 -0
- package/dist/types/i18n/locales/ms-MY.d.ts +7 -0
- package/dist/types/i18n/locales/nb-NO.d.ts +7 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +7 -0
- package/dist/types/i18n/locales/pl-PL.d.ts +7 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +7 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +7 -0
- package/dist/types/i18n/locales/sv-SE.d.ts +7 -0
- package/dist/types/i18n/locales/th-TH.d.ts +7 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +7 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +7 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +7 -0
- package/dist/types/utils/date.d.ts +1 -0
- package/package.json +1 -1
- package/dist/es/components/RecurringTip/index.js +0 -21
- package/dist/es/components/wallets/AliPay/index.js +0 -1
- package/dist/types/components/RecurringTip/RecurringTip.d.ts +0 -2
- package/dist/types/components/RecurringTip/index.d.ts +0 -1
- package/dist/types/components/wallets/AliPay/AliPay.d.ts +0 -15
- package/dist/types/components/wallets/AliPay/index.d.ts +0 -2
- /package/dist/es/components/business/{QRCodeModal/qr-code-modal.js → QRCodeContent/qr-code-content.js} +0 -0
- /package/dist/es/components/{wallets/AliPay → business/QRCodeContent}/type.js +0 -0
- /package/dist/es/components/wallets/{AliPay → Alipay}/ali-pay.js +0 -0
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -43,7 +43,9 @@ declare const _default: {
|
|
|
43
43
|
'dropIn.onlineBankingLithuania.label': string;
|
|
44
44
|
'dropIn.onlineBankingIndonesia.label': string;
|
|
45
45
|
'dropIn.onlineBankingThailand.label': string;
|
|
46
|
+
'dropIn.aliPayPlus.label': string;
|
|
46
47
|
'dropIn.aliPay.label': string;
|
|
48
|
+
'dropIn.aliPayHK.label': string;
|
|
47
49
|
'dropIn.wechatPay.label': string;
|
|
48
50
|
'dropIn.sepaDebit.label': string;
|
|
49
51
|
'dropIn.swish.label': string;
|
|
@@ -76,9 +78,14 @@ declare const _default: {
|
|
|
76
78
|
'common.paySuccess': string;
|
|
77
79
|
'common.payTimeout': string;
|
|
78
80
|
'common.pay3DSIncomplete': string;
|
|
81
|
+
'common.paymentTimeout': string;
|
|
82
|
+
'common.repay': string;
|
|
79
83
|
'common.queryTimeout': string;
|
|
80
84
|
'common.recurringTip': string;
|
|
81
85
|
'common.recurringTip2': string;
|
|
86
|
+
'common.save': string;
|
|
87
|
+
'common.storePaymentTip': string;
|
|
88
|
+
'common.recurringStoreTip': string;
|
|
82
89
|
'common.noData': string;
|
|
83
90
|
'common.netError': string;
|
|
84
91
|
'common.unknownError': string;
|
|
@@ -5,5 +5,6 @@ declare const timeTemplateMap: {
|
|
|
5
5
|
datetime: string;
|
|
6
6
|
};
|
|
7
7
|
type TimeTemplate = keyof typeof timeTemplateMap;
|
|
8
|
+
export declare const getTimeDiff: (endTime: Numeric | Date, startTime?: Numeric | Date) => number;
|
|
8
9
|
export declare const formatTime: (value?: Numeric | Date, template?: StringUnion<TimeTemplate>) => string;
|
|
9
10
|
export {};
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { u } from "../../core.js";
|
|
2
|
-
import { CoreContext } from "../../core/context.js";
|
|
3
|
-
import "../../utils/card-brand/brands.js";
|
|
4
|
-
import "../../utils/system-info/get-browser-info.js";
|
|
5
|
-
import "../../out/fraud-detection.js";
|
|
6
|
-
import { useBEM } from "../../hooks/useBEM.js";
|
|
7
|
-
import "../../core/logger.js";
|
|
8
|
-
import { IconInfo } from "../internal/icons/IconInfo.js";
|
|
9
|
-
const { bem } = useBEM("recurring-tip");
|
|
10
|
-
function RecurringTip(isCard = true) {
|
|
11
|
-
return /* @__PURE__ */ u(CoreContext.Consumer, { children: (value) => {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
return /* @__PURE__ */ u("div", { className: bem(), children: [
|
|
14
|
-
/* @__PURE__ */ u("div", { className: bem("icon"), children: IconInfo({ size: 16 }) }),
|
|
15
|
-
/* @__PURE__ */ u("div", { className: bem("text"), children: isCard ? (_a = value == null ? void 0 : value.i18n) == null ? void 0 : _a.get("common.recurringTip") : (_b = value == null ? void 0 : value.i18n) == null ? void 0 : _b.get("common.recurringTip2") })
|
|
16
|
-
] });
|
|
17
|
-
} });
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
RecurringTip
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./AliPay.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RecurringTip';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './ali-pay.scss';
|
|
2
|
-
import type { AliPayProps, AliPayRef } from './type';
|
|
3
|
-
/**
|
|
4
|
-
* AliPay 支付方式
|
|
5
|
-
* - 表单:邮箱,地址
|
|
6
|
-
* - 支付:直接跳转
|
|
7
|
-
*/
|
|
8
|
-
export declare const AliPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<AliPayProps & import("../../../types").PayKKaCommonConfig & {
|
|
9
|
-
session: import("../../../core").Session;
|
|
10
|
-
core: import("../../../core").PayKKaCheckout;
|
|
11
|
-
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
12
|
-
isDropIn?: boolean | undefined;
|
|
13
|
-
}> & {
|
|
14
|
-
ref?: import("preact").Ref<AliPayRef> | undefined;
|
|
15
|
-
}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|