@paykka/card-checkout-ui 0.13.2 → 0.13.5
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 +20 -20
- package/dist/card-checkout-ui.umd.cjs +19 -19
- package/dist/es/_commonjsHelpers.js +1 -1
- package/dist/es/api/modules/opay-wallet/index.js +16 -0
- package/dist/es/api/modules/paga-wallet/index.js +16 -0
- package/dist/es/api/modules/pic-pay/index.js +16 -0
- package/dist/es/api/modules/pix/index.js +16 -0
- package/dist/es/api/modules/vietqr/index.js +4 -0
- package/dist/es/components/DropIn/index.js +42 -2
- package/dist/es/components/GuideCard/index.js +6 -1
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +6 -6
- package/dist/es/components/index.js +5 -0
- package/dist/es/components/internal/icons/IconOpayWallet.js +71 -0
- package/dist/es/components/internal/icons/IconPagaWallet.js +141 -0
- package/dist/es/components/internal/icons/IconPaymaya.js +42 -86
- package/dist/es/components/internal/icons/IconPicPay.js +49 -0
- package/dist/es/components/internal/icons/IconPix.js +75 -0
- package/dist/es/components/internal/icons/IconVietqr.js +45 -0
- package/dist/es/components/internal/icons/IconVietqrComplete.js +49 -0
- package/dist/es/components/wallets/OpayWallet/OpayWallet.js +346 -0
- package/dist/es/components/wallets/OpayWallet/index.js +1 -0
- package/dist/es/components/wallets/OpayWallet/opay-wallet.js +1 -0
- package/dist/es/components/wallets/OpayWallet/type.js +1 -0
- package/dist/es/components/wallets/PagaWallet/PagaWallet.js +346 -0
- package/dist/es/components/wallets/PagaWallet/index.js +1 -0
- package/dist/es/components/wallets/PagaWallet/paga-wallet.js +1 -0
- package/dist/es/components/wallets/PagaWallet/type.js +1 -0
- package/dist/es/components/wallets/PicPay/PicPay.js +346 -0
- package/dist/es/components/wallets/PicPay/index.js +1 -0
- package/dist/es/components/wallets/PicPay/pic-pay.js +1 -0
- package/dist/es/components/wallets/PicPay/type.js +1 -0
- package/dist/es/components/wallets/Pix/Pix.js +346 -0
- package/dist/es/components/wallets/Pix/index.js +1 -0
- package/dist/es/components/wallets/Pix/pix2.js +1 -0
- package/dist/es/components/wallets/Pix/type.js +1 -0
- package/dist/es/components/wallets/Vietqr/Vietqr.js +380 -0
- package/dist/es/components/wallets/Vietqr/index.js +1 -0
- package/dist/es/components/wallets/Vietqr/type.js +1 -0
- package/dist/es/components/wallets/Vietqr/vietqr2.js +1 -0
- package/dist/es/components/wallets/Zalopay/Zalopay.js +1 -0
- package/dist/es/components/wallets/index.js +8 -0
- package/dist/es/constant.js +32 -2
- package/dist/es/core.js +34 -34
- package/dist/es/i18n/locales/de-DE.js +8 -2
- package/dist/es/i18n/locales/en-GB.js +8 -2
- package/dist/es/i18n/locales/es-ES.js +8 -2
- package/dist/es/i18n/locales/fr-FR.js +8 -2
- package/dist/es/i18n/locales/ja-JP.js +8 -2
- package/dist/es/i18n/locales/ko-KR.js +8 -2
- package/dist/es/i18n/locales/nl-NL.js +8 -2
- package/dist/es/i18n/locales/pt-PT.js +8 -2
- package/dist/es/i18n/locales/ru-RU.js +8 -2
- package/dist/es/i18n/locales/zh-CN.js +10 -4
- package/dist/es/i18n/locales/zh-HK.js +10 -4
- package/dist/es/i18n/locales/zh-TW.js +10 -4
- package/dist/es/index.js +10 -0
- package/dist/es/style.css +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/modules/index.d.ts +5 -0
- package/dist/types/api/modules/opay-wallet/index.d.ts +4 -0
- package/dist/types/api/modules/paga-wallet/index.d.ts +4 -0
- package/dist/types/api/modules/pic-pay/index.d.ts +4 -0
- package/dist/types/api/modules/pix/index.d.ts +4 -0
- package/dist/types/api/modules/vietqr/index.d.ts +4 -0
- package/dist/types/components/DropIn/type.d.ts +3 -2
- package/dist/types/components/business/QRCodeModal/type.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -3
- package/dist/types/components/internal/icons/IconOpayWallet.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPagaWallet.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPicPay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconPix.d.ts +2 -0
- package/dist/types/components/internal/icons/IconVietqr.d.ts +2 -0
- package/dist/types/components/internal/icons/IconVietqrComplete.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +6 -0
- package/dist/types/components/wallets/OpayWallet/OpayWallet.d.ts +10 -0
- package/dist/types/components/wallets/OpayWallet/index.d.ts +2 -0
- package/dist/types/components/wallets/OpayWallet/type.d.ts +40 -0
- package/dist/types/components/wallets/PagaWallet/PagaWallet.d.ts +10 -0
- package/dist/types/components/wallets/PagaWallet/index.d.ts +2 -0
- package/dist/types/components/wallets/PagaWallet/type.d.ts +40 -0
- package/dist/types/components/wallets/PicPay/PicPay.d.ts +10 -0
- package/dist/types/components/wallets/PicPay/index.d.ts +2 -0
- package/dist/types/components/wallets/PicPay/type.d.ts +40 -0
- package/dist/types/components/wallets/Pix/Pix.d.ts +10 -0
- package/dist/types/components/wallets/Pix/index.d.ts +2 -0
- package/dist/types/components/wallets/Pix/type.d.ts +40 -0
- package/dist/types/components/wallets/Vietqr/Vietqr.d.ts +10 -0
- package/dist/types/components/wallets/Vietqr/index.d.ts +2 -0
- package/dist/types/components/wallets/Vietqr/type.d.ts +39 -0
- package/dist/types/components/wallets/index.d.ts +8 -0
- package/dist/types/components/wallets/type.d.ts +9 -0
- package/dist/types/constant.d.ts +11 -1
- package/dist/types/i18n/locales/de-DE.d.ts +6 -0
- package/dist/types/i18n/locales/en-GB.d.ts +6 -0
- package/dist/types/i18n/locales/es-ES.d.ts +6 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +6 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +6 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +6 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +6 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +6 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +6 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +6 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +6 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +6 -0
- package/package.json +67 -67
|
@@ -34,3 +34,9 @@ export * from './IconPaymaya';
|
|
|
34
34
|
export * from './IconGcashComplete';
|
|
35
35
|
export * from './IconZalopay';
|
|
36
36
|
export * from './IconZalopayComplete';
|
|
37
|
+
export * from './IconVietqr';
|
|
38
|
+
export * from './IconVietqrComplete';
|
|
39
|
+
export * from './IconPix';
|
|
40
|
+
export * from './IconPicPay';
|
|
41
|
+
export * from './IconOpayWallet';
|
|
42
|
+
export * from './IconPagaWallet';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OpayWalletProps, OpayWalletRef } from './type';
|
|
2
|
+
import './opay-wallet.scss';
|
|
3
|
+
export declare const OpayWallet: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<OpayWalletProps & import("../../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../../core").Session;
|
|
5
|
+
core: import("../../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
9
|
+
ref?: import("preact").Ref<OpayWalletRef> | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../../types';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
import type { WalletRedirectProps } from '../type';
|
|
5
|
+
export interface OpayWalletProps extends PayKKaCommonConfig, WalletRedirectProps {
|
|
6
|
+
/**
|
|
7
|
+
* 是否展示邮箱
|
|
8
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
9
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
10
|
+
*/
|
|
11
|
+
showEmail?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否展示邮箱
|
|
14
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
15
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
16
|
+
*/
|
|
17
|
+
showAddress?: boolean;
|
|
18
|
+
/** 提交表单时触发 */
|
|
19
|
+
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
20
|
+
/** 支付成功后触发 */
|
|
21
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
22
|
+
/** 支付失败时触发 */
|
|
23
|
+
onError?: (error: PayKKaError) => void;
|
|
24
|
+
/** 支付超时时触发 */
|
|
25
|
+
onTimeout?: () => void;
|
|
26
|
+
/** 收银台已过期时触发 */
|
|
27
|
+
onExpired?: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface OpayWalletRef {
|
|
30
|
+
/** 停止轮询支付结果 */
|
|
31
|
+
stopRetry: () => void;
|
|
32
|
+
/** 开始轮询支付结果 */
|
|
33
|
+
startRetry: (timeout?: number) => void;
|
|
34
|
+
/** 更新表单地址 */
|
|
35
|
+
updateAddress: () => void;
|
|
36
|
+
/** 更新表单邮箱 */
|
|
37
|
+
updateEmail: () => void;
|
|
38
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
39
|
+
payment: () => void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PagaWalletProps, PagaWalletRef } from './type';
|
|
2
|
+
import './paga-wallet.scss';
|
|
3
|
+
export declare const PagaWallet: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PagaWalletProps & import("../../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../../core").Session;
|
|
5
|
+
core: import("../../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
9
|
+
ref?: import("preact").Ref<PagaWalletRef> | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../../types';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
import type { WalletRedirectProps } from '../type';
|
|
5
|
+
export interface PagaWalletProps extends PayKKaCommonConfig, WalletRedirectProps {
|
|
6
|
+
/**
|
|
7
|
+
* 是否展示邮箱
|
|
8
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
9
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
10
|
+
*/
|
|
11
|
+
showEmail?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否展示邮箱
|
|
14
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
15
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
16
|
+
*/
|
|
17
|
+
showAddress?: boolean;
|
|
18
|
+
/** 提交表单时触发 */
|
|
19
|
+
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
20
|
+
/** 支付成功后触发 */
|
|
21
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
22
|
+
/** 支付失败时触发 */
|
|
23
|
+
onError?: (error: PayKKaError) => void;
|
|
24
|
+
/** 支付超时时触发 */
|
|
25
|
+
onTimeout?: () => void;
|
|
26
|
+
/** 收银台已过期时触发 */
|
|
27
|
+
onExpired?: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface PagaWalletRef {
|
|
30
|
+
/** 停止轮询支付结果 */
|
|
31
|
+
stopRetry: () => void;
|
|
32
|
+
/** 开始轮询支付结果 */
|
|
33
|
+
startRetry: (timeout?: number) => void;
|
|
34
|
+
/** 更新表单地址 */
|
|
35
|
+
updateAddress: () => void;
|
|
36
|
+
/** 更新表单邮箱 */
|
|
37
|
+
updateEmail: () => void;
|
|
38
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
39
|
+
payment: () => void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PicPayProps, PicPayRef } from './type';
|
|
2
|
+
import './pic-pay.scss';
|
|
3
|
+
export declare const PicPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PicPayProps & import("../../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../../core").Session;
|
|
5
|
+
core: import("../../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
9
|
+
ref?: import("preact").Ref<PicPayRef> | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../../types';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
import type { WalletRedirectProps } from '../type';
|
|
5
|
+
export interface PicPayProps extends PayKKaCommonConfig, WalletRedirectProps {
|
|
6
|
+
/**
|
|
7
|
+
* 是否展示邮箱
|
|
8
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
9
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
10
|
+
*/
|
|
11
|
+
showEmail?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否展示邮箱
|
|
14
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
15
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
16
|
+
*/
|
|
17
|
+
showAddress?: boolean;
|
|
18
|
+
/** 提交表单时触发 */
|
|
19
|
+
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
20
|
+
/** 支付成功后触发 */
|
|
21
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
22
|
+
/** 支付失败时触发 */
|
|
23
|
+
onError?: (error: PayKKaError) => void;
|
|
24
|
+
/** 支付超时时触发 */
|
|
25
|
+
onTimeout?: () => void;
|
|
26
|
+
/** 收银台已过期时触发 */
|
|
27
|
+
onExpired?: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface PicPayRef {
|
|
30
|
+
/** 停止轮询支付结果 */
|
|
31
|
+
stopRetry: () => void;
|
|
32
|
+
/** 开始轮询支付结果 */
|
|
33
|
+
startRetry: (timeout?: number) => void;
|
|
34
|
+
/** 更新表单地址 */
|
|
35
|
+
updateAddress: () => void;
|
|
36
|
+
/** 更新表单邮箱 */
|
|
37
|
+
updateEmail: () => void;
|
|
38
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
39
|
+
payment: () => void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PixProps, PixRef } from './type';
|
|
2
|
+
import './pix.scss';
|
|
3
|
+
export declare const Pix: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<PixProps & import("../../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../../core").Session;
|
|
5
|
+
core: import("../../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
9
|
+
ref?: import("preact").Ref<PixRef> | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../../types';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
import type { WalletRedirectProps } from '../type';
|
|
5
|
+
export interface PixProps extends PayKKaCommonConfig, WalletRedirectProps {
|
|
6
|
+
/**
|
|
7
|
+
* 是否展示邮箱
|
|
8
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
9
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
10
|
+
*/
|
|
11
|
+
showEmail?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否展示邮箱
|
|
14
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
15
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
16
|
+
*/
|
|
17
|
+
showAddress?: boolean;
|
|
18
|
+
/** 提交表单时触发 */
|
|
19
|
+
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
20
|
+
/** 支付成功后触发 */
|
|
21
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
22
|
+
/** 支付失败时触发 */
|
|
23
|
+
onError?: (error: PayKKaError) => void;
|
|
24
|
+
/** 支付超时时触发 */
|
|
25
|
+
onTimeout?: () => void;
|
|
26
|
+
/** 收银台已过期时触发 */
|
|
27
|
+
onExpired?: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface PixRef {
|
|
30
|
+
/** 停止轮询支付结果 */
|
|
31
|
+
stopRetry: () => void;
|
|
32
|
+
/** 开始轮询支付结果 */
|
|
33
|
+
startRetry: (timeout?: number) => void;
|
|
34
|
+
/** 更新表单地址 */
|
|
35
|
+
updateAddress: () => void;
|
|
36
|
+
/** 更新表单邮箱 */
|
|
37
|
+
updateEmail: () => void;
|
|
38
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
39
|
+
payment: () => void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VietqrProps, VietqrRef } from './type';
|
|
2
|
+
import './vietqr.scss';
|
|
3
|
+
export declare const Vietqr: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<VietqrProps & import("../../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../../core").Session;
|
|
5
|
+
core: import("../../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
9
|
+
ref?: import("preact").Ref<VietqrRef> | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PayKKaError } from '../../..';
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../../types';
|
|
3
|
+
import type { FormValidateError } from '../../internal/Form';
|
|
4
|
+
export interface VietqrProps extends PayKKaCommonConfig {
|
|
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?: (data: PaymentInfo) => void;
|
|
21
|
+
/** 支付失败时触发 */
|
|
22
|
+
onError?: (error: PayKKaError) => void;
|
|
23
|
+
/** 支付超时时触发 */
|
|
24
|
+
onTimeout?: (type: 'retry' | 'channel') => void;
|
|
25
|
+
/** 收银台已过期时触发 */
|
|
26
|
+
onExpired?: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface VietqrRef {
|
|
29
|
+
/** 停止轮询支付结果 */
|
|
30
|
+
stopRetry: () => void;
|
|
31
|
+
/** 开始轮询支付结果 */
|
|
32
|
+
startRetry: (timeout?: number) => void;
|
|
33
|
+
/** 更新表单地址 */
|
|
34
|
+
updateAddress: () => void;
|
|
35
|
+
/** 更新表单邮箱 */
|
|
36
|
+
updateEmail: () => void;
|
|
37
|
+
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
38
|
+
payment: () => void;
|
|
39
|
+
}
|
package/dist/types/constant.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ export declare enum PaymentMethod {
|
|
|
28
28
|
GCASH = "G_CASH",
|
|
29
29
|
PAYMAYA = "PAYMAYA",
|
|
30
30
|
ZALOPAY = "ZALOPAY",
|
|
31
|
+
VIETQR = "VIETQR",
|
|
32
|
+
PIX = "PIX",
|
|
33
|
+
PIC_PAY = "PIC_PAY",
|
|
34
|
+
OPAY_WALLET = "OPAY_WALLET",
|
|
35
|
+
PAGA_WALLET = "PAGA_WALLET",
|
|
31
36
|
/** 目前没用 */
|
|
32
37
|
SEPA_DEBIT = "SEPA_DEBIT"
|
|
33
38
|
}
|
|
@@ -50,7 +55,12 @@ export declare enum PaymentCategory {
|
|
|
50
55
|
NINE_PAY = "ninePay",
|
|
51
56
|
GCASH = "gcash",
|
|
52
57
|
PAYMAYA = "paymaya",
|
|
53
|
-
|
|
58
|
+
VIETQR = "vietqr",
|
|
59
|
+
ZALOPAY = "zalopay",
|
|
60
|
+
PIX = "pix",
|
|
61
|
+
PIC_PAY = "picPay",
|
|
62
|
+
OPAY_WALLET = "opayWallet",
|
|
63
|
+
PAGA_WALLET = "pagaWallet"
|
|
54
64
|
}
|
|
55
65
|
export declare const PaymentMethod2CategoryMap: Partial<Record<PaymentMethod, PaymentCategory>>;
|
|
56
66
|
export declare const PaymentCategory2MethodMap: Partial<Record<PaymentCategory, PaymentMethod[]>>;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|
|
@@ -13,6 +13,11 @@ declare const _default: {
|
|
|
13
13
|
'dropIn.gcash.label': string;
|
|
14
14
|
'dropIn.paymaya.label': string;
|
|
15
15
|
'dropIn.zalopay.label': string;
|
|
16
|
+
'dropIn.vietqr.label': string;
|
|
17
|
+
'dropIn.pix.label': string;
|
|
18
|
+
'dropIn.picPay.label': string;
|
|
19
|
+
'dropIn.opayWallet.label': string;
|
|
20
|
+
'dropIn.pagaWallet.label': string;
|
|
16
21
|
'card.cardNumber.label': string;
|
|
17
22
|
'card.cardNumber.incomplete': string;
|
|
18
23
|
'card.cardNumber.invalid': string;
|
|
@@ -69,5 +74,6 @@ declare const _default: {
|
|
|
69
74
|
'qrCode.expired': string;
|
|
70
75
|
'qrCode.scanByGcash': string;
|
|
71
76
|
'qrCode.scanByZalopay': string;
|
|
77
|
+
'qrCode.scanByVietqr': string;
|
|
72
78
|
};
|
|
73
79
|
export default _default;
|