@paykka/card-checkout-ui 0.18.0 → 0.21.2
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/README.md +3 -3
- package/dist/card-checkout-ui.js +15 -15
- package/dist/card-checkout-ui.umd.cjs +15 -15
- package/dist/es/api/modules/apple-pay/index.js +6 -2
- 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/ApplePay/index.js +5 -3
- 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/polyfill.js +165 -165
- package/dist/es/style.css +1 -1
- package/dist/es/utils/date.js +5 -1
- package/dist/polyfill.js +165 -165
- package/dist/style.css +1 -1
- package/dist/types/api/modules/apple-pay/index.d.ts +3 -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/Doku/Doku.d.ts +2 -2
- package/dist/types/components/wallets/DragonPay/DragonPay.d.ts +1 -1
- package/dist/types/components/wallets/GoPay/GoPay.d.ts +0 -1
- package/dist/types/components/wallets/IDeal/IDeal.d.ts +1 -1
- package/dist/types/components/wallets/LinkAja/LinkAja.d.ts +2 -2
- package/dist/types/components/wallets/MyBank/MyBank.d.ts +0 -1
- package/dist/types/components/wallets/OnlineBankingEstonia/OnlineBankingEstonia.d.ts +0 -1
- package/dist/types/components/wallets/OnlineBankingFinland/OnlineBankingFinland.d.ts +0 -1
- package/dist/types/components/wallets/P24/P24.d.ts +1 -1
- package/dist/types/components/wallets/PayU/PayU.d.ts +1 -1
- package/dist/types/components/wallets/Twint/Twint.d.ts +0 -1
- 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 +81 -81
- 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;
|
|
@@ -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,81 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@paykka/card-checkout-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/paykka-card-checkout-ui.umd.js",
|
|
6
|
-
"module": "dist/es/index.js",
|
|
7
|
-
"typings": "dist/types/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/es/index.js",
|
|
11
|
-
"require": "./dist/paykka-card-checkout-ui.umd.js",
|
|
12
|
-
"types": "./dist/types/index.d.ts"
|
|
13
|
-
},
|
|
14
|
-
"./*": "./dist/*"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"dev": "vite --host",
|
|
21
|
-
"build": "pnpm type-check && pnpm build:npm && pnpm build:inner && pnpm copy-dist-to-cdn && pnpm build:outer",
|
|
22
|
-
"build:npm": "tsx ./build/run.ts",
|
|
23
|
-
"build:inner": "tsx ./build/runInner.ts",
|
|
24
|
-
"build:outer": "tsx ./build/runOuter.ts",
|
|
25
|
-
"build:type": "tsc -p ./tsconfig.build.json",
|
|
26
|
-
"copy-dist-to-cdn": "tsx ./build/copyDist2CDN.ts",
|
|
27
|
-
"changeset": "changeset",
|
|
28
|
-
"changeset:fat-enter": "changeset pre enter beta",
|
|
29
|
-
"changeset:dev-enter": "changeset pre enter alpha",
|
|
30
|
-
"changeset:sandbox-enter": "changeset pre enter rc",
|
|
31
|
-
"changeset:fat": "changeset publish --tag beta",
|
|
32
|
-
"changeset:dev": "changeset publish --tag alpha",
|
|
33
|
-
"changeset:sandbox": "changeset publish --tag rc",
|
|
34
|
-
"changeset:pre-exit": "changeset pre exit",
|
|
35
|
-
"changeset:version": "changeset version",
|
|
36
|
-
"changeset:release": "changeset publish",
|
|
37
|
-
"release:dev": "node scripts/release.cjs dev",
|
|
38
|
-
"release:fat": "node scripts/release.cjs fat",
|
|
39
|
-
"release:sandbox": "node scripts/release.cjs sandbox",
|
|
40
|
-
"release:noprod": "node scripts/release.cjs noprod",
|
|
41
|
-
"release:npm": "node scripts/release.cjs npm",
|
|
42
|
-
"release:prod": "node scripts/release.cjs prod",
|
|
43
|
-
"type-check": "tsc --noEmit -p tsconfig.json --composite false",
|
|
44
|
-
"prepack": "node scripts/npm-readme.cjs enable",
|
|
45
|
-
"postpack": "node scripts/npm-readme.cjs disable"
|
|
46
|
-
},
|
|
47
|
-
"publishConfig": {
|
|
48
|
-
"registry": "https://packages.aliyun.com/640edee5a84870ae9d591e48/npm/npm-registry/"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@ctrl/tinycolor": "^4.0.3",
|
|
52
|
-
"@fingerprintjs/fingerprintjs": "^4.2.2",
|
|
53
|
-
"@noble/ciphers": "^2.1.1",
|
|
54
|
-
"@preact/signals": "^1.3.0",
|
|
55
|
-
"@types/applepayjs": "^14.0.9",
|
|
56
|
-
"@types/googlepay": "^0.7.7",
|
|
57
|
-
"@types/qrcode": "^1.5.5",
|
|
58
|
-
"preact": "^10.24.3",
|
|
59
|
-
"qrcode": "^1.5.4",
|
|
60
|
-
"ts-toolbelt": "^9.6.0",
|
|
61
|
-
"unfetch": "^5.0.0",
|
|
62
|
-
"vconsole": "^3.15.1",
|
|
63
|
-
"vue-tsc": "^2.1.10"
|
|
64
|
-
},
|
|
65
|
-
"devDependencies": {
|
|
66
|
-
"@babel/core": "^7.29.0",
|
|
67
|
-
"@babel/preset-env": "^7.29.2",
|
|
68
|
-
"@changesets/cli": "^2.27.1",
|
|
69
|
-
"@preact/preset-vite": "^2.9.1",
|
|
70
|
-
"@types/node": "^20.12.7",
|
|
71
|
-
"autoprefixer": "^10.4.18",
|
|
72
|
-
"core-js": "^3.49.0",
|
|
73
|
-
"execa": "^8.0.1",
|
|
74
|
-
"fast-glob": "^3.3.2",
|
|
75
|
-
"sass": "^1.71.1",
|
|
76
|
-
"terser": "^5.42.0",
|
|
77
|
-
"tsx": "^4.7.3",
|
|
78
|
-
"typescript": "^5.4.5",
|
|
79
|
-
"vite": "^5.2.10"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@paykka/card-checkout-ui",
|
|
3
|
+
"version": "0.21.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/paykka-card-checkout-ui.umd.js",
|
|
6
|
+
"module": "dist/es/index.js",
|
|
7
|
+
"typings": "dist/types/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/es/index.js",
|
|
11
|
+
"require": "./dist/paykka-card-checkout-ui.umd.js",
|
|
12
|
+
"types": "./dist/types/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./*": "./dist/*"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite --host",
|
|
21
|
+
"build": "pnpm type-check && pnpm build:npm && pnpm build:inner && pnpm copy-dist-to-cdn && pnpm build:outer",
|
|
22
|
+
"build:npm": "tsx ./build/run.ts",
|
|
23
|
+
"build:inner": "tsx ./build/runInner.ts",
|
|
24
|
+
"build:outer": "tsx ./build/runOuter.ts",
|
|
25
|
+
"build:type": "tsc -p ./tsconfig.build.json",
|
|
26
|
+
"copy-dist-to-cdn": "tsx ./build/copyDist2CDN.ts",
|
|
27
|
+
"changeset": "changeset",
|
|
28
|
+
"changeset:fat-enter": "changeset pre enter beta",
|
|
29
|
+
"changeset:dev-enter": "changeset pre enter alpha",
|
|
30
|
+
"changeset:sandbox-enter": "changeset pre enter rc",
|
|
31
|
+
"changeset:fat": "changeset publish --tag beta",
|
|
32
|
+
"changeset:dev": "changeset publish --tag alpha",
|
|
33
|
+
"changeset:sandbox": "changeset publish --tag rc",
|
|
34
|
+
"changeset:pre-exit": "changeset pre exit",
|
|
35
|
+
"changeset:version": "changeset version",
|
|
36
|
+
"changeset:release": "changeset publish",
|
|
37
|
+
"release:dev": "node scripts/release.cjs dev",
|
|
38
|
+
"release:fat": "node scripts/release.cjs fat",
|
|
39
|
+
"release:sandbox": "node scripts/release.cjs sandbox",
|
|
40
|
+
"release:noprod": "node scripts/release.cjs noprod",
|
|
41
|
+
"release:npm": "node scripts/release.cjs npm",
|
|
42
|
+
"release:prod": "node scripts/release.cjs prod",
|
|
43
|
+
"type-check": "tsc --noEmit -p tsconfig.json --composite false",
|
|
44
|
+
"prepack": "node scripts/npm-readme.cjs enable",
|
|
45
|
+
"postpack": "node scripts/npm-readme.cjs disable"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"registry": "https://packages.aliyun.com/640edee5a84870ae9d591e48/npm/npm-registry/"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@ctrl/tinycolor": "^4.0.3",
|
|
52
|
+
"@fingerprintjs/fingerprintjs": "^4.2.2",
|
|
53
|
+
"@noble/ciphers": "^2.1.1",
|
|
54
|
+
"@preact/signals": "^1.3.0",
|
|
55
|
+
"@types/applepayjs": "^14.0.9",
|
|
56
|
+
"@types/googlepay": "^0.7.7",
|
|
57
|
+
"@types/qrcode": "^1.5.5",
|
|
58
|
+
"preact": "^10.24.3",
|
|
59
|
+
"qrcode": "^1.5.4",
|
|
60
|
+
"ts-toolbelt": "^9.6.0",
|
|
61
|
+
"unfetch": "^5.0.0",
|
|
62
|
+
"vconsole": "^3.15.1",
|
|
63
|
+
"vue-tsc": "^2.1.10"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@babel/core": "^7.29.0",
|
|
67
|
+
"@babel/preset-env": "^7.29.2",
|
|
68
|
+
"@changesets/cli": "^2.27.1",
|
|
69
|
+
"@preact/preset-vite": "^2.9.1",
|
|
70
|
+
"@types/node": "^20.12.7",
|
|
71
|
+
"autoprefixer": "^10.4.18",
|
|
72
|
+
"core-js": "^3.49.0",
|
|
73
|
+
"execa": "^8.0.1",
|
|
74
|
+
"fast-glob": "^3.3.2",
|
|
75
|
+
"sass": "^1.71.1",
|
|
76
|
+
"terser": "^5.42.0",
|
|
77
|
+
"tsx": "^4.7.3",
|
|
78
|
+
"typescript": "^5.4.5",
|
|
79
|
+
"vite": "^5.2.10"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -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
|