@paykka/card-checkout-ui 0.8.0 → 0.11.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/dist/card-checkout-ui.js +21 -14
- package/dist/card-checkout-ui.umd.cjs +21 -14
- package/dist/es/_commonjsHelpers.js +1 -0
- package/dist/es/api/http.js +19 -21
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/modules/ali-pay/index.js +19 -11
- package/dist/es/api/modules/apple-pay/index.js +10 -26
- package/dist/es/api/modules/boost/index.js +56 -0
- package/dist/es/api/modules/card/index.js +17 -11
- package/dist/es/api/modules/checkout/index.js +6 -6
- package/dist/es/api/modules/checkout/map.js +23 -6
- package/dist/es/api/modules/gcash/index.js +56 -0
- package/dist/es/api/modules/get-browser-params.js +2 -2
- package/dist/es/api/modules/google-pay/index.js +10 -26
- package/dist/es/api/modules/grab-pay/index.js +56 -0
- package/dist/es/api/modules/index.js +1 -1
- package/dist/es/api/modules/line-pay/index.js +56 -0
- package/dist/es/api/modules/may-bank-qr-pay/index.js +56 -0
- package/dist/es/api/modules/nine-pay/index.js +56 -0
- package/dist/es/api/modules/paymaya/index.js +56 -0
- package/dist/es/api/modules/risk/index.js +13 -0
- package/dist/es/api/modules/sepa/index.js +19 -11
- package/dist/es/api/modules/shopee-pay/index.js +56 -0
- package/dist/es/api/modules/threeDS/index.js +1 -0
- package/dist/es/api/modules/tng-wallet/index.js +56 -0
- package/dist/es/api/modules/wechat-pay/index.js +18 -31
- package/dist/es/components/AccordionItem/AccordionItem.js +37 -0
- package/dist/es/components/AccountNameField/index.js +1 -0
- package/dist/es/components/AddressField/index.js +1 -0
- package/dist/es/components/AliPay/index.js +28 -40
- package/dist/es/components/ApplePay/index.js +18 -39
- package/dist/es/components/Boost/index.js +324 -0
- package/dist/es/components/Card/index.js +80 -48
- package/dist/es/components/CardBrands/index.js +3 -2
- package/dist/es/components/CardExpireDateField/index.js +1 -0
- package/dist/es/components/CardHolderNameField/index.js +1 -0
- package/dist/es/components/CardIBANField/index.js +1 -0
- package/dist/es/components/CardNo/index.js +1 -0
- package/dist/es/components/CardNumberField/index.js +124 -106
- package/dist/es/components/CardSecurityCodeField/index.js +1 -0
- package/dist/es/components/CardSelector/index.js +1 -0
- package/dist/es/components/CombinedCardInfo/index.js +4 -0
- package/dist/es/components/DropIn/index.js +206 -50
- package/dist/es/components/EmailField/EmailField.js +14 -15
- package/dist/es/components/EncryptedCard/index.js +1 -0
- package/dist/es/components/GooglePay/index.js +7 -6
- package/dist/es/components/GrabPay/index.js +324 -0
- package/dist/es/components/GuideCard/index.js +44 -0
- package/dist/es/components/LinePay/index.js +324 -0
- package/dist/es/components/MayBankQRPay/index.js +324 -0
- package/dist/es/components/NinePay/index.js +324 -0
- package/dist/es/components/RecurringTip/index.js +1 -0
- package/dist/es/components/SecuredFieldsProvider/index.js +2 -1
- package/dist/es/components/SecuredIframe/index.js +57 -4
- package/dist/es/components/Sepa/index.js +7 -10
- package/dist/es/components/ShopeePay/index.js +324 -0
- package/dist/es/components/SubmitButton/index.js +7 -20
- package/dist/es/components/TNGWallet/index.js +324 -0
- package/dist/es/components/ThreeDS/index.js +1 -0
- package/dist/es/components/WechatPay/index.js +30 -49
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +42 -0
- package/dist/es/components/business/QRCodeModal/index.js +7 -0
- package/dist/es/components/business/QRCodeModal/qr-code-modal.js +1 -0
- package/dist/es/components/business/QRCodeModal/type.js +1 -0
- package/dist/es/components/business/index.js +7 -0
- package/dist/es/components/index.js +10 -0
- package/dist/es/components/internal/Accordion/Accordion.js +14 -0
- package/dist/es/components/internal/Accordion/accordion2.js +1 -0
- package/dist/es/components/internal/Accordion/accordionTransition.js +26 -0
- package/dist/es/components/internal/Accordion/index.js +8 -0
- package/dist/es/components/internal/Accordion/type.js +10 -0
- package/dist/es/components/internal/Button/Button.js +1 -0
- package/dist/es/components/internal/Button/index.js +1 -0
- package/dist/es/components/internal/CheckBox/CheckBox.js +1 -0
- package/dist/es/components/internal/CheckBox/index.js +1 -0
- package/dist/es/components/internal/Form/type.js +1 -0
- package/dist/es/components/internal/Info/Info.js +1 -0
- package/dist/es/components/internal/Info/index.js +1 -0
- package/dist/es/components/internal/Input/type.js +1 -0
- package/dist/es/components/internal/LoadingCheck/LoadingCheck.js +1 -0
- package/dist/es/components/internal/LoadingCheck/index.js +1 -0
- package/dist/es/components/internal/Modal/Modal.js +18 -3
- package/dist/es/components/internal/Modal/index.js +1 -0
- package/dist/es/components/internal/Modal/type.js +1 -0
- package/dist/es/components/internal/QRCode/QRCode.js +32 -0
- package/dist/es/components/internal/QRCode/index.js +5 -0
- package/dist/es/components/internal/QRCode/type.js +1 -0
- package/dist/es/components/internal/Select/Select.js +11 -9
- package/dist/es/components/internal/Select/SelectMenu.js +1 -0
- package/dist/es/components/internal/Select/SelectMenuItem.js +1 -0
- package/dist/es/components/internal/icons/IconBoost.js +63 -0
- package/dist/es/components/internal/icons/IconCard.js +1 -40
- package/dist/es/components/internal/icons/IconCard2.js +60 -0
- package/dist/es/components/internal/icons/IconGCash.js +196 -0
- package/dist/es/components/internal/icons/IconGcashComplete.js +184 -0
- package/dist/es/components/internal/icons/IconGrabPay.js +59 -0
- package/dist/es/components/internal/icons/IconLinePay.js +99 -0
- package/dist/es/components/internal/icons/IconMayBankQRPay.js +69 -0
- package/dist/es/components/internal/icons/IconNinePay.js +255 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +114 -0
- package/dist/es/components/internal/icons/IconRedirect.js +58 -0
- package/dist/es/components/internal/icons/IconScan.js +102 -0
- package/dist/es/components/internal/icons/IconShopeePay.js +108 -0
- package/dist/es/components/internal/icons/IconTNGWallet.js +119 -0
- package/dist/es/components/internal/icons/IconUnionPay.js +65 -0
- package/dist/es/components/wallets/GCash/GCash.js +368 -0
- package/dist/es/components/wallets/GCash/g-cash.js +1 -0
- package/dist/es/components/wallets/GCash/index.js +1 -0
- package/dist/es/components/wallets/GCash/type.js +1 -0
- package/dist/es/components/wallets/Paymaya/Paymaya.js +325 -0
- package/dist/es/components/wallets/Paymaya/index.js +1 -0
- package/dist/es/components/wallets/Paymaya/paymaya2.js +1 -0
- package/dist/es/components/wallets/Paymaya/type.js +1 -0
- package/dist/es/config.js +12 -12
- package/dist/es/constant.js +84 -4
- package/dist/es/core/PayKKaCheckout.js +35 -5
- package/dist/es/core/Session.js +24 -23
- package/dist/es/core/error.js +7 -0
- package/dist/es/core/index.js +1 -0
- package/dist/es/core/query.js +3 -3
- package/dist/es/core.js +2082 -70
- package/dist/es/hooks/index.js +1 -0
- package/dist/es/hooks/useI18n.js +1 -0
- package/dist/es/hooks/usePayState.js +7 -5
- package/dist/es/i18n/I18n.js +8 -2
- package/dist/es/i18n/locales/de-DE.js +16 -1
- package/dist/es/i18n/locales/en-GB.js +16 -1
- package/dist/es/i18n/locales/es-ES.js +16 -1
- package/dist/es/i18n/locales/fr-FR.js +16 -1
- package/dist/es/i18n/locales/index.js +2 -1
- package/dist/es/i18n/locales/ja-JP.js +16 -1
- package/dist/es/i18n/locales/ko-KR.js +16 -1
- package/dist/es/i18n/locales/nl-NL.js +88 -0
- package/dist/es/i18n/locales/pt-PT.js +16 -1
- package/dist/es/i18n/locales/ru-RU.js +16 -1
- package/dist/es/i18n/locales/zh-CN.js +16 -1
- package/dist/es/i18n/locales/zh-HK.js +16 -1
- package/dist/es/i18n/locales/zh-TW.js +16 -1
- package/dist/es/i18n/util.js +12 -3
- package/dist/es/index.js +22 -0
- package/dist/es/out/fraud-detection.js +39 -13
- package/dist/es/out/worldpay-ddc.js +143 -0
- package/dist/es/style.css +1 -1192
- package/dist/es/types/event.js +15 -0
- package/dist/es/types/fraud-detection.js +1 -0
- package/dist/es/types/index.js +1 -0
- package/dist/es/types/message.js +3 -0
- package/dist/es/utils/array.js +9 -0
- package/dist/es/utils/card-brand/brands.js +11 -1
- package/dist/es/utils/card-brand/index.js +4 -3
- package/dist/es/utils/card-brand/luhn.js +25 -0
- package/dist/es/utils/date.js +25 -0
- package/dist/es/utils/detect.js +6 -0
- package/dist/es/utils/format.js +28 -12
- package/dist/es/utils/iframe.js +1 -1
- package/dist/es/utils/index.js +9 -1
- package/dist/es/utils/location.js +37 -0
- package/dist/es/utils/object.js +14 -0
- package/dist/es/utils/redirect.js +32 -0
- package/dist/es/utils/reg-exp.js +4 -0
- package/dist/es/utils/system-info/get-browser-info.js +4 -4
- package/dist/es/utils/system-info/get-system-info.js +11 -7
- package/dist/es/utils/system-info/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/api/http.d.ts +4 -10
- package/dist/types/api/modules/ali-pay/index.d.ts +2 -1
- package/dist/types/api/modules/apple-pay/index.d.ts +2 -1
- package/dist/types/api/modules/boost/index.d.ts +24 -0
- package/dist/types/api/modules/card/index.d.ts +1 -1
- package/dist/types/api/modules/checkout/index.d.ts +2 -2
- package/dist/types/api/modules/checkout/type.d.ts +9 -0
- package/dist/types/api/modules/gcash/index.d.ts +24 -0
- package/dist/types/api/modules/get-browser-params.d.ts +2 -2
- package/dist/types/api/modules/google-pay/index.d.ts +2 -1
- package/dist/types/api/modules/grab-pay/index.d.ts +24 -0
- package/dist/types/api/modules/index.d.ts +11 -0
- package/dist/types/api/modules/line-pay/index.d.ts +24 -0
- package/dist/types/api/modules/may-bank-qr-pay/index.d.ts +24 -0
- package/dist/types/api/modules/nine-pay/index.d.ts +24 -0
- package/dist/types/api/modules/paymaya/index.d.ts +24 -0
- package/dist/types/api/modules/risk/index.d.ts +8 -0
- package/dist/types/api/modules/sepa/index.d.ts +2 -1
- package/dist/types/api/modules/shopee-pay/index.d.ts +24 -0
- package/dist/types/api/modules/threeDS/index.d.ts +3 -0
- package/dist/types/api/modules/tng-wallet/index.d.ts +24 -0
- package/dist/types/api/modules/wechat-pay/index.d.ts +2 -1
- package/dist/types/components/Boost/Boost.d.ts +7 -0
- package/dist/types/components/Boost/index.d.ts +2 -0
- package/dist/types/components/Boost/type.d.ts +61 -0
- package/dist/types/components/CardNumberField/type.d.ts +7 -1
- package/dist/types/components/CombinedCardInfo/type.d.ts +1 -0
- package/dist/types/components/DropIn/components/PaymentTabs/type.d.ts +1 -1
- package/dist/types/components/DropIn/config.d.ts +7 -0
- package/dist/types/components/DropIn/type.d.ts +11 -3
- package/dist/types/components/GrabPay/GrabPay.d.ts +7 -0
- package/dist/types/components/GrabPay/index.d.ts +2 -0
- package/dist/types/components/GrabPay/type.d.ts +61 -0
- package/dist/types/components/GuideCard/GuideCard.d.ts +3 -0
- package/dist/types/components/GuideCard/index.d.ts +2 -0
- package/dist/types/components/GuideCard/type.d.ts +4 -0
- package/dist/types/components/LinePay/LinePay.d.ts +7 -0
- package/dist/types/components/LinePay/index.d.ts +2 -0
- package/dist/types/components/LinePay/type.d.ts +61 -0
- package/dist/types/components/MayBankQRPay/MayBankQRPay.d.ts +6 -0
- package/dist/types/components/MayBankQRPay/index.d.ts +2 -0
- package/dist/types/components/MayBankQRPay/type.d.ts +61 -0
- package/dist/types/components/NinePay/NinePay.d.ts +6 -0
- package/dist/types/components/NinePay/index.d.ts +2 -0
- package/dist/types/components/NinePay/type.d.ts +61 -0
- package/dist/types/components/SecuredFieldsProvider/type.d.ts +1 -1
- package/dist/types/components/SecuredIframe/useSecuredInput.d.ts +1 -1
- package/dist/types/components/ShopeePay/ShopeePay.d.ts +7 -0
- package/dist/types/components/ShopeePay/index.d.ts +2 -0
- package/dist/types/components/ShopeePay/type.d.ts +61 -0
- package/dist/types/components/SubmitButton/SubmitButton.d.ts +1 -1
- package/dist/types/components/TNGWallet/TNGWallet.d.ts +7 -0
- package/dist/types/components/TNGWallet/index.d.ts +2 -0
- package/dist/types/components/TNGWallet/type.d.ts +61 -0
- package/dist/types/components/ThreeDS/components/ThreeDSIframe/ThreeDSIframe.d.ts +1 -0
- package/dist/types/components/ThreeDS/components/ThreeDSIframe/output.d.ts +1 -1
- package/dist/types/components/ThreeDS/components/ThreeDSIframe/type.d.ts +13 -3
- package/dist/types/components/business/QRCodeModal/QRCodeModal.d.ts +3 -0
- package/dist/types/components/business/QRCodeModal/index.d.ts +2 -0
- package/dist/types/components/business/QRCodeModal/type.d.ts +18 -0
- package/dist/types/components/business/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts +3 -0
- package/dist/types/components/internal/Accordion/accordionTransition.d.ts +8 -0
- package/dist/types/components/internal/Accordion/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/types/components/internal/Accordion/components/AccordionItem/index.d.ts +2 -0
- package/dist/types/components/internal/Accordion/components/AccordionItem/type.d.ts +18 -0
- package/dist/types/components/internal/Accordion/index.d.ts +3 -0
- package/dist/types/components/internal/Accordion/type.d.ts +18 -0
- package/dist/types/components/internal/Modal/type.d.ts +2 -0
- package/dist/types/components/internal/QRCode/QRCode.d.ts +2 -0
- package/dist/types/components/internal/QRCode/index.d.ts +2 -0
- package/dist/types/components/internal/QRCode/type.d.ts +9 -0
- package/dist/types/components/internal/Select/Select.d.ts +1 -17
- package/dist/types/components/internal/Select/type.d.ts +26 -1
- package/dist/types/components/internal/icons/IconBoost.d.ts +2 -0
- package/dist/types/components/internal/icons/IconCard2.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGCash.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGcashComplete.d.ts +2 -0
- package/dist/types/components/internal/icons/IconGrabPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconLinePay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconMayBankQRPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconNinePay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPaymaya.d.ts +2 -0
- package/dist/types/components/internal/icons/IconRedirect.d.ts +2 -0
- package/dist/types/components/internal/icons/IconScan.d.ts +2 -0
- package/dist/types/components/internal/icons/IconShopeePay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconTNGWallet.d.ts +2 -0
- package/dist/types/components/internal/icons/IconUnionPay.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +13 -0
- package/dist/types/components/wallets/GCash/GCash.d.ts +6 -0
- package/dist/types/components/wallets/GCash/index.d.ts +2 -0
- package/dist/types/components/wallets/GCash/type.d.ts +71 -0
- package/dist/types/components/wallets/Paymaya/Paymaya.d.ts +6 -0
- package/dist/types/components/wallets/Paymaya/index.d.ts +2 -0
- package/dist/types/components/wallets/Paymaya/type.d.ts +61 -0
- package/dist/types/config.d.ts +9 -9
- package/dist/types/constant.d.ts +28 -3
- package/dist/types/core/PayKKaCheckout.d.ts +10 -0
- package/dist/types/core/Session.d.ts +2 -0
- package/dist/types/core/error.d.ts +15 -2
- package/dist/types/core/query.d.ts +2 -2
- package/dist/types/hooks/usePayState.d.ts +5 -5
- package/dist/types/i18n/I18n.d.ts +1 -1
- package/dist/types/i18n/locales/de-DE.d.ts +13 -0
- package/dist/types/i18n/locales/en-GB.d.ts +13 -0
- package/dist/types/i18n/locales/es-ES.d.ts +13 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +13 -0
- package/dist/types/i18n/locales/index.d.ts +2 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +13 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +13 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +71 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +13 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +13 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +13 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +13 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +13 -0
- package/dist/types/i18n/util.d.ts +5 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/out/fraud-detection.d.ts +5 -1
- package/dist/types/out/types.d.ts +4 -0
- package/dist/types/out/worldpay-ddc-iframe.d.ts +1 -0
- package/dist/types/out/worldpay-ddc.d.ts +37 -0
- package/dist/types/types/event.d.ts +26 -0
- package/dist/types/types/fraud-detection.d.ts +3 -1
- package/dist/types/types/index.d.ts +23 -4
- package/dist/types/types/message.d.ts +22 -2
- package/dist/types/utils/array.d.ts +1 -0
- package/dist/types/utils/card-brand/brands.d.ts +4 -3
- package/dist/types/utils/card-brand/index.d.ts +9 -6
- package/dist/types/utils/card-brand/luhn.d.ts +9 -0
- package/dist/types/utils/date.d.ts +9 -0
- package/dist/types/utils/detect.d.ts +1 -0
- package/dist/types/utils/format.d.ts +7 -1
- package/dist/types/utils/iframe.d.ts +1 -1
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/types/utils/location.d.ts +7 -0
- package/dist/types/utils/object.d.ts +1 -0
- package/dist/types/utils/redirect.d.ts +5 -0
- package/dist/types/utils/reg-exp.d.ts +1 -0
- package/dist/types/utils/system-info/get-browser-info.d.ts +1 -1
- package/dist/types/utils/system-info/get-system-info.d.ts +3 -2
- package/dist/types/utils/system-info/index.d.ts +3 -3
- package/package.json +6 -2
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayRes } from '../../../api';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
export interface GCashProps {
|
|
5
|
+
/**
|
|
6
|
+
* 是否展示邮箱
|
|
7
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
8
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
9
|
+
*/
|
|
10
|
+
showEmail?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 是否展示邮箱
|
|
13
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
14
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
15
|
+
*/
|
|
16
|
+
showAddress?: boolean;
|
|
17
|
+
/** 提交表单时触发 */
|
|
18
|
+
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
19
|
+
/** 支付成功后触发 */
|
|
20
|
+
onSuccess?: (...args: any[]) => void;
|
|
21
|
+
/** 支付失败时触发 */
|
|
22
|
+
onError?: (error: PayKKaError) => void;
|
|
23
|
+
/** 支付超时时触发 */
|
|
24
|
+
onTimeout?: () => void;
|
|
25
|
+
/** 收银台已过期时触发 */
|
|
26
|
+
onExpired?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* 请求支付接口成功后返回跳转链接
|
|
30
|
+
*/
|
|
31
|
+
onSubmitResponse?: (payRes: PayRes) => void;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* 跳转模式,钱包支付时需要跳转到第三方页面进行支付,流程结束在返回收银台
|
|
35
|
+
* auto: 自动跳转
|
|
36
|
+
* manual: 需要在 onSubmitResponse 中接收跳转链接并手动跳转
|
|
37
|
+
*/
|
|
38
|
+
redirectMode?: 'auto' | 'manual';
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* 从第三方支付页面跳转回来时,是否自动查询支付结果
|
|
42
|
+
*/
|
|
43
|
+
autoQuery?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* 是否展示引导卡片
|
|
47
|
+
*/
|
|
48
|
+
showGuideCard?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* 是否展示二维码弹窗
|
|
52
|
+
*/
|
|
53
|
+
enableQRCodeModal?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* 用户关闭支付弹窗时触发
|
|
57
|
+
*/
|
|
58
|
+
onCloseModal?: () => void;
|
|
59
|
+
}
|
|
60
|
+
export interface GCashRef {
|
|
61
|
+
/** 停止轮询支付结果 */
|
|
62
|
+
stopRetry: () => void;
|
|
63
|
+
/** 开始轮询支付结果 */
|
|
64
|
+
startRetry: (timeout?: number) => void;
|
|
65
|
+
/** 更新表单地址 */
|
|
66
|
+
updateAddress: () => void;
|
|
67
|
+
/** 更新表单邮箱 */
|
|
68
|
+
updateEmail: () => void;
|
|
69
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
70
|
+
payment: () => void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PaymayaProps, PaymayaRef } from './type';
|
|
2
|
+
import type { CoreProps } from '../../../types';
|
|
3
|
+
import './paymaya.scss';
|
|
4
|
+
export declare const Paymaya: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PaymayaProps & CoreProps> & {
|
|
5
|
+
ref?: import("preact").Ref<PaymayaRef> | undefined;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayRes } from '../../../api';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
export interface PaymayaProps {
|
|
5
|
+
/**
|
|
6
|
+
* 是否展示邮箱
|
|
7
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
8
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
9
|
+
*/
|
|
10
|
+
showEmail?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 是否展示邮箱
|
|
13
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
14
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
15
|
+
*/
|
|
16
|
+
showAddress?: boolean;
|
|
17
|
+
/** 提交表单时触发 */
|
|
18
|
+
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
19
|
+
/** 支付成功后触发 */
|
|
20
|
+
onSuccess?: (...args: any[]) => void;
|
|
21
|
+
/** 支付失败时触发 */
|
|
22
|
+
onError?: (error: PayKKaError) => void;
|
|
23
|
+
/** 支付超时时触发 */
|
|
24
|
+
onTimeout?: () => void;
|
|
25
|
+
/** 收银台已过期时触发 */
|
|
26
|
+
onExpired?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* 请求支付接口成功后返回跳转链接
|
|
30
|
+
*/
|
|
31
|
+
onSubmitResponse?: (payRes: PayRes) => void;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* 跳转模式,钱包支付时需要跳转到第三方页面进行支付,流程结束在返回收银台
|
|
35
|
+
* auto: 自动跳转
|
|
36
|
+
* manual: 需要在 onSubmitResponse 中接收跳转链接并手动跳转
|
|
37
|
+
*/
|
|
38
|
+
redirectMode?: 'auto' | 'manual';
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* 从第三方支付页面跳转回来时,是否自动查询支付结果
|
|
42
|
+
*/
|
|
43
|
+
autoQuery?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* 是否展示引导卡片
|
|
47
|
+
*/
|
|
48
|
+
showGuideCard?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface PaymayaRef {
|
|
51
|
+
/** 停止轮询支付结果 */
|
|
52
|
+
stopRetry: () => void;
|
|
53
|
+
/** 开始轮询支付结果 */
|
|
54
|
+
startRetry: (timeout?: number) => void;
|
|
55
|
+
/** 更新表单地址 */
|
|
56
|
+
updateAddress: () => void;
|
|
57
|
+
/** 更新表单邮箱 */
|
|
58
|
+
updateEmail: () => void;
|
|
59
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
60
|
+
payment: () => void;
|
|
61
|
+
}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type LocaleKeyType } from
|
|
2
|
-
import { type FraudDetectionEnv } from
|
|
1
|
+
import { type LocaleKeyType } from './i18n';
|
|
2
|
+
import { type FraudDetectionEnv } from './types';
|
|
3
3
|
export declare let apiUrl: string;
|
|
4
4
|
export declare let cdnOrigin: any;
|
|
5
5
|
export declare let cdnDir: any;
|
|
@@ -8,11 +8,11 @@ export declare let fraudDetectionEnv: FraudDetectionEnv | undefined;
|
|
|
8
8
|
export declare let customReqHeaders: Recordable;
|
|
9
9
|
export declare let customLocale: LocaleKeyType | undefined;
|
|
10
10
|
export declare let hidePaymentButton: boolean;
|
|
11
|
-
export declare
|
|
12
|
-
export declare
|
|
13
|
-
export declare
|
|
14
|
-
export declare
|
|
15
|
-
export declare
|
|
16
|
-
export declare
|
|
11
|
+
export declare const setApiUrl: (url: string) => void;
|
|
12
|
+
export declare const setCDNUrl: (url: string) => void;
|
|
13
|
+
export declare const setFraudDetectionEnv: (env: FraudDetectionEnv) => void;
|
|
14
|
+
export declare const setCustomReqHeaders: (headers: Recordable) => void;
|
|
15
|
+
export declare const setCustomLocale: (locale: LocaleKeyType) => void;
|
|
16
|
+
export declare const setCheckoutConfig: (params: {
|
|
17
17
|
hidePaymentButton?: boolean;
|
|
18
|
-
})
|
|
18
|
+
}) => void;
|
package/dist/types/constant.d.ts
CHANGED
|
@@ -3,10 +3,9 @@ export declare const COMMON_CLASS_NAME = "paykka-card-checkout";
|
|
|
3
3
|
/** 具体的,未分类的支付方式,来自后端 */
|
|
4
4
|
export declare enum PaymentMethod {
|
|
5
5
|
ALL = "ALL",
|
|
6
|
-
ALI_PAY = "ALIPAY_PLUS",
|
|
7
|
-
WECHAT_PAY = "WECHAT_PAY_GLOBAL",
|
|
8
6
|
APPLE_PAY = "APPLE_PAY",
|
|
9
7
|
GOOGLE_PAY = "GOOGLE_PAY",
|
|
8
|
+
/** 银行卡支付 */
|
|
10
9
|
BANKCARD = "BANKCARD",
|
|
11
10
|
VISA = "VISA",
|
|
12
11
|
MASTER_CARD = "MASTER_CARD",
|
|
@@ -15,6 +14,20 @@ export declare enum PaymentMethod {
|
|
|
15
14
|
DINERS_CLUB = "DINERS_CLUB",
|
|
16
15
|
DISCOVER = "DISCOVER",
|
|
17
16
|
BOC = "BOC",
|
|
17
|
+
CHINA_UNION_PAY = "CHINA_UNION_PAY",
|
|
18
|
+
/** 钱包 */
|
|
19
|
+
ALI_PAY = "ALIPAY_PLUS",
|
|
20
|
+
WECHAT_PAY = "WECHAT_PAY_GLOBAL",
|
|
21
|
+
BOOST = "BOOST",
|
|
22
|
+
GRAB_PAY = "GRABPAY",
|
|
23
|
+
TNG_WALLET = "TNG_EWALLET",
|
|
24
|
+
MAY_BANK_QR_PAY = "MAYBANK_QRPAY",
|
|
25
|
+
SHOPEE_PAY = "SHOPEE_PAY",
|
|
26
|
+
LINE_PAY = "LINE_PAY",
|
|
27
|
+
NINE_PAY = "NINE_PAY",
|
|
28
|
+
GCASH = "G_CASH",
|
|
29
|
+
PAYMAYA = "PAYMAYA",
|
|
30
|
+
/** 目前没用 */
|
|
18
31
|
SEPA_DEBIT = "SEPA_DEBIT"
|
|
19
32
|
}
|
|
20
33
|
/** 按照大类区分的支付方式 */
|
|
@@ -24,9 +37,21 @@ export declare enum PaymentCategory {
|
|
|
24
37
|
APPLE_PAY = "applePay",
|
|
25
38
|
GOOGLE_PAY = "googlePay",
|
|
26
39
|
SEPA_DEBIT = "sepaDebit",
|
|
40
|
+
/** 钱包 */
|
|
27
41
|
WECHAT_PAY = "wechatPay",
|
|
28
|
-
ALI_PAY = "aliPay"
|
|
42
|
+
ALI_PAY = "aliPay",
|
|
43
|
+
BOOST = "boost",
|
|
44
|
+
GRAB_PAY = "grabPay",
|
|
45
|
+
TNG_WALLET = "tngEWallet",
|
|
46
|
+
MAY_BANK_QR_PAY = "mayBankQRPay",
|
|
47
|
+
SHOPEE_PAY = "shopeePay",
|
|
48
|
+
LINE_PAY = "linePay",
|
|
49
|
+
NINE_PAY = "ninePay",
|
|
50
|
+
GCASH = "gcash",
|
|
51
|
+
PAYMAYA = "paymaya"
|
|
29
52
|
}
|
|
53
|
+
export declare const PaymentMethod2CategoryMap: Partial<Record<PaymentMethod, PaymentCategory>>;
|
|
54
|
+
export declare const PaymentCategory2MethodMap: Partial<Record<PaymentCategory, PaymentMethod[]>>;
|
|
30
55
|
export declare const CardPaymentMethods: PaymentMethod[];
|
|
31
56
|
export declare enum PaymentType {
|
|
32
57
|
PURCHASE = "PURCHASE",
|
|
@@ -3,6 +3,7 @@ import type { CoreProps, PayKKaEnvConfig, PayKKaInitConfiguration } from '../typ
|
|
|
3
3
|
import { type ComponentInst } from './create';
|
|
4
4
|
import { Session } from './Session';
|
|
5
5
|
import getFraudDetectionInstance from '../out/fraud-detection';
|
|
6
|
+
import type { PaymentMethod } from '../constant';
|
|
6
7
|
export type FraudDetectionType = ReturnType<typeof getFraudDetectionInstance>;
|
|
7
8
|
/**
|
|
8
9
|
* 收银台实例
|
|
@@ -10,6 +11,13 @@ export type FraudDetectionType = ReturnType<typeof getFraudDetectionInstance>;
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class PayKKaCheckout {
|
|
12
13
|
#private;
|
|
14
|
+
/** 当前正在处理的支付方式,在第三方支付页面跳回收银台时,会通过 url 参数传递过来 */
|
|
15
|
+
processingPaymentMethod: PaymentMethod | null;
|
|
16
|
+
/**
|
|
17
|
+
* 当前启用的支付方式(禁用则展示禁用样式)
|
|
18
|
+
* 在 DropIn 且有正在处理的支付方式时,会设置为当前支付方式,并把其他支付方式设为禁用
|
|
19
|
+
*/
|
|
20
|
+
enablePaymentMethod: import("@preact/signals").Signal<PaymentMethod | null>;
|
|
13
21
|
constructor(config: PayKKaInitConfiguration);
|
|
14
22
|
private init;
|
|
15
23
|
private initSession;
|
|
@@ -20,10 +28,12 @@ export declare class PayKKaCheckout {
|
|
|
20
28
|
private initEnv;
|
|
21
29
|
private initLocale;
|
|
22
30
|
private initExtraParams;
|
|
31
|
+
private initOtherData;
|
|
23
32
|
get session(): Session;
|
|
24
33
|
get envConfig(): PayKKaEnvConfig;
|
|
25
34
|
get config(): PayKKaInitConfiguration;
|
|
26
35
|
/** 创建组件,把 session 作为组件的 props 传递 */
|
|
27
36
|
create<P extends Recordable>(component: ComponentType<P> | ((props: P) => JSX.Element), props?: Partial<P> | null): ComponentInst<P>;
|
|
28
37
|
getCoreProps(): CoreProps;
|
|
38
|
+
resetEnablePaymentMethod(): void;
|
|
29
39
|
}
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
+
/** 前端错误信息枚举,为了防止与后端 code 冲突做的区分 */
|
|
2
|
+
export declare enum EPayKKaErrorMessage {
|
|
3
|
+
/** worldpay ddc 错误 */
|
|
4
|
+
DDC_ERROR = "DDC_ERROR",
|
|
5
|
+
/** worldpay ddc 超时 */
|
|
6
|
+
DDC_TIMEOUT = "DDC_TIMEOUT",
|
|
7
|
+
/** 欺诈检测数据转换错误 */
|
|
8
|
+
FRAUD_DETECTION_ID_FORMAT_ERROR = "FRAUD_DETECTION_ID_FORMAT_ERROR",
|
|
9
|
+
/** stripe radar 错误 */
|
|
10
|
+
STRIPE_RADAR_ERROR = "STRIPE_RADAR_ERROR"
|
|
11
|
+
}
|
|
1
12
|
export declare enum EPayKKaError {
|
|
2
13
|
/** 普通错误,基本是前端错误 */
|
|
3
14
|
ERROR = "ERROR",
|
|
4
15
|
/** 请求错误 */
|
|
5
|
-
API_ERROR = "API_ERROR"
|
|
16
|
+
API_ERROR = "API_ERROR",
|
|
17
|
+
/** 请求超时 */
|
|
18
|
+
TIMEOUT = "TIMEOUT"
|
|
6
19
|
}
|
|
7
20
|
export declare class PayKKaError extends Error {
|
|
8
21
|
/** 错误类型 */
|
|
9
22
|
type: keyof typeof EPayKKaError;
|
|
10
23
|
/** 错误代码 */
|
|
11
24
|
code?: string;
|
|
12
|
-
constructor(type: keyof typeof EPayKKaError, message?: string, info?: {
|
|
25
|
+
constructor(type: keyof typeof EPayKKaError, message?: string | EPayKKaErrorMessage, info?: {
|
|
13
26
|
code?: string;
|
|
14
27
|
cause?: any;
|
|
15
28
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type RequestOptions, type QueryCheckoutParams } from '../api';
|
|
2
|
-
export declare
|
|
1
|
+
import { type RequestOptions, type QueryCheckoutParams, type CheckoutRes } from '../api';
|
|
2
|
+
export declare const querySession: ({ sessionId, clientKey }: QueryCheckoutParams, options?: RequestOptions) => Promise<CheckoutRes>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare function usePayState(session: Session): {
|
|
1
|
+
import type { PayKKaCheckout, Session } from '../core';
|
|
2
|
+
export declare function usePayState(session: Session, core?: PayKKaCheckout): {
|
|
4
3
|
validated: boolean;
|
|
5
4
|
setValidated: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<boolean>>;
|
|
6
|
-
submitButtonStatus: SubmitButtonStatus;
|
|
7
|
-
setSubmitButtonStatus: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<SubmitButtonStatus>>;
|
|
8
5
|
errorMsg: string;
|
|
9
6
|
setErrorMsg: import("preact/hooks").Dispatch<import("preact/hooks").StateUpdater<string>>;
|
|
10
7
|
i18n: import("../i18n").I18n;
|
|
11
8
|
fraudDetection: {
|
|
12
9
|
fraudDetectionID: string;
|
|
10
|
+
getFraudDetectionId: (options?: {
|
|
11
|
+
bin?: string | undefined;
|
|
12
|
+
} | undefined) => Promise<string>;
|
|
13
13
|
createFraudDetection: () => Promise<void>;
|
|
14
14
|
} | null;
|
|
15
15
|
sessionReady: boolean;
|
|
@@ -11,7 +11,7 @@ export declare class I18n {
|
|
|
11
11
|
private currentLoadId;
|
|
12
12
|
private static instance;
|
|
13
13
|
constructor();
|
|
14
|
-
get(key: keyof Translation): string;
|
|
14
|
+
get(key: keyof Translation, params?: Record<string, string | number>): string;
|
|
15
15
|
get ready(): Signal<boolean>;
|
|
16
16
|
/** 加载国际化翻译文案 */
|
|
17
17
|
load(locale?: LocaleKeyType): void;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
4
|
+
'dropIn.card.label': string;
|
|
5
|
+
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
15
|
+
'card.cardNumber.label': string;
|
|
16
|
+
'card.cardNumber.incomplete': string;
|
|
17
|
+
'card.cardNumber.invalid': string;
|
|
18
|
+
'card.cardNumber.placeholder': string;
|
|
19
|
+
'card.cardExpireDate.label': string;
|
|
20
|
+
'card.cardExpireDate.placeholder': string;
|
|
21
|
+
'card.cardExpireDate.incomplete': string;
|
|
22
|
+
'card.cardExpireDate.expired': string;
|
|
23
|
+
'card.cardSecurityCode.label': string;
|
|
24
|
+
'card.cardSecurityCode.placeholder': string;
|
|
25
|
+
'card.cardSecurityCode.incomplete': string;
|
|
26
|
+
'card.cardHolderName.label': string;
|
|
27
|
+
'card.cardHolderName.placeholder': string;
|
|
28
|
+
'card.cardHolderName.incomplete': string;
|
|
29
|
+
'card.cardSelector.change': string;
|
|
30
|
+
'card.cardSelector.useOtherCard': string;
|
|
31
|
+
'card.storeInfo': string;
|
|
32
|
+
'card.info.label': string;
|
|
33
|
+
'common.pay': string;
|
|
34
|
+
'common.payProcessing': string;
|
|
35
|
+
'common.paySuccess': string;
|
|
36
|
+
'common.payTimeout': string;
|
|
37
|
+
'common.pay3DSIncomplete': string;
|
|
38
|
+
'common.queryTimeout': string;
|
|
39
|
+
'common.generateQrCode': string;
|
|
40
|
+
'common.recurringTip': string;
|
|
41
|
+
'common.noData': string;
|
|
42
|
+
'common.netError': string;
|
|
43
|
+
'common.unknownError': string;
|
|
44
|
+
'common.cancel': string;
|
|
45
|
+
'common.confirm': string;
|
|
46
|
+
'common.email.label': string;
|
|
47
|
+
'common.email.incomplete': string;
|
|
48
|
+
'common.email.incorrect': string;
|
|
49
|
+
'common.accountName.label': string;
|
|
50
|
+
'common.accountName.placeholder': string;
|
|
51
|
+
'common.accountName.incomplete': string;
|
|
52
|
+
'address.label': string;
|
|
53
|
+
'address.country': string;
|
|
54
|
+
'address.address1': string;
|
|
55
|
+
'address.address2': string;
|
|
56
|
+
'address.city': string;
|
|
57
|
+
'address.postCode': string;
|
|
58
|
+
'address.province': string;
|
|
59
|
+
'address.area': string;
|
|
60
|
+
'sepa.iban.label': string;
|
|
61
|
+
'sepa.iban.placeholder': string;
|
|
62
|
+
'sepa.iban.invalid': string;
|
|
63
|
+
'threeDS.paymentIncomplete': string;
|
|
64
|
+
'threeDS.completeFirst': string;
|
|
65
|
+
'threeDS.authenticationSuccessful': string;
|
|
66
|
+
'threeDS.authenticationFailed': string;
|
|
67
|
+
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
70
|
+
};
|
|
71
|
+
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
'guideCard.redirectDescription': string;
|
|
3
|
+
'guideCard.scanQRCode': string;
|
|
2
4
|
'dropIn.card.label': string;
|
|
3
5
|
'dropIn.otherPaymentMethod': string;
|
|
6
|
+
'dropIn.boost.label': string;
|
|
7
|
+
'dropIn.TNGWallet.label': string;
|
|
8
|
+
'dropIn.shopeePay.label': string;
|
|
9
|
+
'dropIn.mayBankQRPay.label': string;
|
|
10
|
+
'dropIn.grabPay.label': string;
|
|
11
|
+
'dropIn.linePay.label': string;
|
|
12
|
+
'dropIn.ninePay.label': string;
|
|
13
|
+
'dropIn.gcash.label': string;
|
|
14
|
+
'dropIn.paymaya.label': string;
|
|
4
15
|
'card.cardNumber.label': string;
|
|
5
16
|
'card.cardNumber.incomplete': string;
|
|
6
17
|
'card.cardNumber.invalid': string;
|
|
@@ -54,5 +65,7 @@ declare const _default: {
|
|
|
54
65
|
'threeDS.authenticationSuccessful': string;
|
|
55
66
|
'threeDS.authenticationFailed': string;
|
|
56
67
|
'threeDS.returnToCheckout': string;
|
|
68
|
+
'qrCode.expired': string;
|
|
69
|
+
'qrCode.scanByGcash': string;
|
|
57
70
|
};
|
|
58
71
|
export default _default;
|