@paykka/card-checkout-ui 0.11.6 → 0.13.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 +19 -19
- package/dist/card-checkout-ui.umd.cjs +19 -19
- package/dist/es/_commonjsHelpers.js +82 -1
- package/dist/es/api/index.js +1 -0
- package/dist/es/api/modules/address/index.js +9 -9
- package/dist/es/api/modules/ali-pay/index.js +10 -49
- package/dist/es/api/modules/apple-pay/index.js +13 -59
- package/dist/es/api/modules/boost/index.js +8 -48
- package/dist/es/api/modules/card/index.js +10 -54
- package/dist/es/api/modules/checkout/index.js +11 -9
- package/dist/es/api/modules/checkout/map.js +25 -18
- package/dist/es/api/modules/encrypted-card/index.js +3 -2
- package/dist/es/api/modules/gcash/index.js +8 -48
- package/dist/es/api/modules/get-browser-params.js +4 -1
- package/dist/es/api/modules/google-pay/index.js +10 -56
- package/dist/es/api/modules/grab-pay/index.js +8 -48
- package/dist/es/api/modules/index.js +1 -0
- package/dist/es/api/modules/line-pay/index.js +8 -48
- package/dist/es/api/modules/map.js +17 -11
- package/dist/es/api/modules/may-bank-qr-pay/index.js +8 -48
- package/dist/es/api/modules/nine-pay/index.js +8 -48
- package/dist/es/api/modules/paymaya/index.js +8 -48
- package/dist/es/api/modules/risk/index.js +2 -1
- package/dist/es/api/modules/sepa/index.js +10 -51
- package/dist/es/api/modules/shopee-pay/index.js +8 -48
- package/dist/es/api/modules/threeDS/index.js +3 -0
- package/dist/es/api/modules/tng-wallet/index.js +8 -48
- package/dist/es/api/modules/wechat-pay/index.js +10 -51
- package/dist/es/api/modules/zalopay/index.js +16 -0
- package/dist/es/api/utils/index.js +59 -0
- package/dist/es/components/AddressField/index.js +37 -37
- package/dist/es/components/AliPay/index.js +158 -111
- package/dist/es/components/ApplePay/index.js +99 -67
- package/dist/es/components/Boost/index.js +91 -70
- package/dist/es/components/Card/index.js +114 -107
- package/dist/es/components/CardSelector/index.js +1 -1
- package/dist/es/components/DropIn/index.js +12 -4
- package/dist/es/components/EncryptedCard/index.js +6 -2
- package/dist/es/components/GooglePay/index.js +94 -60
- package/dist/es/components/GrabPay/index.js +91 -70
- package/dist/es/components/GuideCard/index.js +10 -7
- package/dist/es/components/LinePay/index.js +91 -70
- package/dist/es/components/MayBankQRPay/index.js +302 -275
- package/dist/es/components/NinePay/index.js +91 -70
- package/dist/es/components/SecuredFieldsProvider/index.js +26 -9
- package/dist/es/components/SecuredIframe/index.js +40 -61
- package/dist/es/components/Sepa/index.js +72 -53
- package/dist/es/components/ShopeePay/index.js +91 -70
- package/dist/es/components/SubmitButton/index.js +8 -7
- package/dist/es/components/TNGWallet/index.js +91 -70
- package/dist/es/components/ThreeDS/index.js +32 -7
- package/dist/es/components/WechatPay/index.js +151 -102
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +26 -6
- package/dist/es/components/index.js +1 -0
- package/dist/es/components/internal/Form/FormItem.js +1 -1
- package/dist/es/components/internal/Form/util.js +1 -1
- package/dist/es/components/internal/Modal/Modal.js +1 -1
- package/dist/es/components/internal/Select/Select.js +19 -8
- package/dist/es/components/internal/Select/SelectMenu.js +2 -2
- package/dist/es/components/internal/Select/SelectMenuItem.js +12 -4
- package/dist/es/components/internal/icons/IconError.js +7 -4
- package/dist/es/components/internal/icons/IconZalopay.js +47 -0
- package/dist/es/components/internal/icons/IconZalopayComplete.js +48 -0
- package/dist/es/components/wallets/GCash/GCash.js +80 -56
- package/dist/es/components/wallets/Paymaya/Paymaya.js +91 -70
- package/dist/es/components/wallets/Zalopay/Zalopay.js +381 -0
- package/dist/es/components/wallets/Zalopay/index.js +1 -0
- package/dist/es/components/wallets/Zalopay/type.js +1 -0
- package/dist/es/components/wallets/Zalopay/zalopay2.js +1 -0
- package/dist/es/config.js +5 -5
- package/dist/es/constant.js +8 -2
- package/dist/es/core/{Address.js → address.js} +8 -16
- package/dist/es/core/{PayKKaCheckout.js → checkout.js} +101 -27
- package/dist/es/core/create.js +1 -1
- package/dist/es/core/query.js +3 -2
- package/dist/es/core/{Session.js → session.js} +28 -32
- package/dist/es/core/theme.js +65 -0
- package/dist/es/core.js +0 -4
- package/dist/es/hooks/usePayment.js +14 -0
- package/dist/es/i18n/locales/de-DE.js +3 -1
- package/dist/es/i18n/locales/en-GB.js +3 -1
- package/dist/es/i18n/locales/es-ES.js +3 -1
- package/dist/es/i18n/locales/fr-FR.js +3 -1
- package/dist/es/i18n/locales/ja-JP.js +3 -1
- package/dist/es/i18n/locales/ko-KR.js +3 -1
- package/dist/es/i18n/locales/nl-NL.js +3 -1
- package/dist/es/i18n/locales/pt-PT.js +3 -1
- package/dist/es/i18n/locales/ru-RU.js +3 -1
- package/dist/es/i18n/locales/zh-CN.js +3 -1
- package/dist/es/i18n/locales/zh-HK.js +3 -1
- package/dist/es/i18n/locales/zh-TW.js +3 -1
- package/dist/es/index.js +21 -7
- package/dist/es/style.css +1 -1
- package/dist/es/types/index.js +7 -0
- package/dist/es/utils/colors.js +5 -1
- package/dist/es/utils/format.js +0 -5
- package/dist/es/utils/object.js +31 -1
- package/dist/es/utils/payment.js +82 -0
- package/dist/es/utils/redirect.js +4 -4
- package/dist/es/utils/string.js +10 -0
- package/dist/es/utils/system-info/is-ua-webview.js +14 -12
- package/dist/es/utils/theme.js +7 -0
- package/dist/style.css +1 -1
- package/dist/types/api/modules/address/index.d.ts +15 -6
- package/dist/types/api/modules/ali-pay/index.d.ts +3 -19
- package/dist/types/api/modules/apple-pay/index.d.ts +4 -14
- package/dist/types/api/modules/boost/index.d.ts +3 -23
- package/dist/types/api/modules/card/index.d.ts +3 -30
- package/dist/types/api/modules/checkout/index.d.ts +3 -3
- package/dist/types/api/modules/checkout/map.d.ts +3 -3
- package/dist/types/api/modules/checkout/type.d.ts +33 -4
- package/dist/types/api/modules/gcash/index.d.ts +3 -23
- package/dist/types/api/modules/get-browser-params.d.ts +1 -0
- package/dist/types/api/modules/google-pay/index.d.ts +3 -13
- package/dist/types/api/modules/grab-pay/index.d.ts +3 -23
- package/dist/types/api/modules/index.d.ts +1 -0
- package/dist/types/api/modules/line-pay/index.d.ts +3 -23
- package/dist/types/api/modules/map.d.ts +2 -2
- package/dist/types/api/modules/may-bank-qr-pay/index.d.ts +3 -23
- package/dist/types/api/modules/nine-pay/index.d.ts +3 -23
- package/dist/types/api/modules/paymaya/index.d.ts +3 -23
- package/dist/types/api/modules/sepa/index.d.ts +3 -24
- package/dist/types/api/modules/shopee-pay/index.d.ts +3 -23
- package/dist/types/api/modules/tng-wallet/index.d.ts +3 -23
- package/dist/types/api/modules/type.d.ts +74 -21
- package/dist/types/api/modules/wechat-pay/index.d.ts +3 -20
- package/dist/types/api/modules/zalopay/index.d.ts +4 -0
- package/dist/types/api/utils/index.d.ts +48 -0
- package/dist/types/components/AddressField/type.d.ts +3 -9
- package/dist/types/components/AliPay/AliPay.d.ts +6 -2
- package/dist/types/components/AliPay/type.d.ts +15 -2
- package/dist/types/components/ApplePay/ApplePay.d.ts +6 -2
- package/dist/types/components/ApplePay/type.d.ts +10 -14
- package/dist/types/components/ApplePay/utils.d.ts +1 -1
- package/dist/types/components/Boost/Boost.d.ts +6 -2
- package/dist/types/components/Boost/type.d.ts +2 -24
- package/dist/types/components/Card/Card.d.ts +6 -2
- package/dist/types/components/Card/type.d.ts +3 -43
- package/dist/types/components/DropIn/DropIn.d.ts +6 -2
- package/dist/types/components/DropIn/type.d.ts +4 -10
- package/dist/types/components/GooglePay/GooglePay.d.ts +6 -2
- package/dist/types/components/GooglePay/createGooglePay.d.ts +2 -1
- package/dist/types/components/GooglePay/type.d.ts +10 -26
- package/dist/types/components/GrabPay/GrabPay.d.ts +6 -2
- package/dist/types/components/GrabPay/type.d.ts +3 -25
- package/dist/types/components/LinePay/LinePay.d.ts +6 -2
- package/dist/types/components/LinePay/type.d.ts +3 -25
- package/dist/types/components/MayBankQRPay/MayBankQRPay.d.ts +6 -2
- package/dist/types/components/MayBankQRPay/type.d.ts +3 -25
- package/dist/types/components/NinePay/NinePay.d.ts +6 -2
- package/dist/types/components/NinePay/type.d.ts +3 -25
- package/dist/types/components/SecuredFieldsProvider/type.d.ts +5 -0
- package/dist/types/components/SecuredIframe/HiddenIframe.d.ts +3 -1
- package/dist/types/components/Sepa/Sepa.d.ts +6 -2
- package/dist/types/components/Sepa/type.d.ts +3 -2
- package/dist/types/components/ShopeePay/ShopeePay.d.ts +6 -2
- package/dist/types/components/ShopeePay/type.d.ts +3 -25
- package/dist/types/components/TNGWallet/TNGWallet.d.ts +6 -2
- package/dist/types/components/TNGWallet/type.d.ts +3 -25
- package/dist/types/components/ThreeDS/components/ThreeDSAuth/type.d.ts +2 -0
- package/dist/types/components/WechatPay/WechatPay.d.ts +6 -2
- package/dist/types/components/WechatPay/type.d.ts +15 -2
- package/dist/types/components/business/QRCodeModal/type.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/internal/Loading/Loading.d.ts +1 -0
- package/dist/types/components/internal/Select/SelectMenu.d.ts +1 -1
- package/dist/types/components/internal/icons/IconZalopay.d.ts +2 -0
- package/dist/types/components/internal/icons/IconZalopayComplete.d.ts +2 -0
- package/dist/types/components/internal/icons/index.d.ts +3 -0
- package/dist/types/components/wallets/GCash/GCash.d.ts +6 -2
- package/dist/types/components/wallets/GCash/type.d.ts +3 -35
- package/dist/types/components/wallets/Paymaya/Paymaya.d.ts +6 -2
- package/dist/types/components/wallets/Paymaya/type.d.ts +3 -25
- package/dist/types/components/wallets/Zalopay/Zalopay.d.ts +10 -0
- package/dist/types/components/wallets/Zalopay/index.d.ts +2 -0
- package/dist/types/components/wallets/Zalopay/type.d.ts +39 -0
- package/dist/types/config.d.ts +2 -4
- package/dist/types/constant.d.ts +3 -1
- package/dist/types/core/{Address.d.ts → address.d.ts} +23 -24
- package/dist/types/core/{PayKKaCheckout.d.ts → checkout.d.ts} +9 -3
- package/dist/types/core/context.d.ts +3 -2
- package/dist/types/core/index.d.ts +3 -2
- package/dist/types/core/query.d.ts +2 -2
- package/dist/types/core/session.d.ts +23 -0
- package/dist/types/core/theme.d.ts +7 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/usePayment.d.ts +8 -0
- package/dist/types/i18n/locales/de-DE.d.ts +2 -0
- package/dist/types/i18n/locales/en-GB.d.ts +2 -0
- package/dist/types/i18n/locales/es-ES.d.ts +2 -0
- package/dist/types/i18n/locales/fr-FR.d.ts +2 -0
- package/dist/types/i18n/locales/ja-JP.d.ts +2 -0
- package/dist/types/i18n/locales/ko-KR.d.ts +2 -0
- package/dist/types/i18n/locales/nl-NL.d.ts +2 -0
- package/dist/types/i18n/locales/pt-PT.d.ts +2 -0
- package/dist/types/i18n/locales/ru-RU.d.ts +2 -0
- package/dist/types/i18n/locales/zh-CN.d.ts +2 -0
- package/dist/types/i18n/locales/zh-HK.d.ts +2 -0
- package/dist/types/i18n/locales/zh-TW.d.ts +2 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/types/index.d.ts +70 -32
- package/dist/types/types/message.d.ts +30 -25
- package/dist/types/utils/card-brand/index.d.ts +3 -3
- package/dist/types/utils/colors.d.ts +1 -0
- package/dist/types/utils/index.d.ts +4 -2
- package/dist/types/utils/object.d.ts +7 -0
- package/dist/types/utils/payment.d.ts +37 -0
- package/dist/types/utils/string.d.ts +1 -0
- package/dist/types/utils/style.d.ts +1 -1
- package/dist/types/utils/system-info/is-ua-webview.d.ts +1 -1
- package/dist/types/utils/theme.d.ts +4 -0
- package/package.json +3 -3
- package/dist/es/utils/deep-freeze.js +0 -13
- package/dist/es/utils/obj.js +0 -22
- package/dist/types/core/Session.d.ts +0 -16
- package/dist/types/utils/deep-freeze.d.ts +0 -1
- package/dist/types/utils/obj.d.ts +0 -6
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getBoostPayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const boostPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getBoostPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,31 +1,4 @@
|
|
|
1
1
|
import { type RequestOptions } from '../../http';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
payment: {
|
|
6
|
-
paymentMethod: string;
|
|
7
|
-
cardNo?: string;
|
|
8
|
-
expYear?: string;
|
|
9
|
-
expMonth?: string;
|
|
10
|
-
cvv: string;
|
|
11
|
-
holderName?: string;
|
|
12
|
-
storePaymentMethod?: boolean;
|
|
13
|
-
tokenUsage?: string;
|
|
14
|
-
token?: string;
|
|
15
|
-
};
|
|
16
|
-
bill: {
|
|
17
|
-
email: string;
|
|
18
|
-
country?: string | null;
|
|
19
|
-
province?: string | null;
|
|
20
|
-
city?: string | null;
|
|
21
|
-
area?: string | null;
|
|
22
|
-
postCode?: string | null;
|
|
23
|
-
address1?: string | null;
|
|
24
|
-
address2?: string | null;
|
|
25
|
-
};
|
|
26
|
-
browser: Recordable;
|
|
27
|
-
}, extraParams?: Recordable, options?: RequestOptions): Promise<import("..").PayRes>;
|
|
28
|
-
export declare function getCardPayInfo({ sessionId, clientKey }: {
|
|
29
|
-
sessionId: string;
|
|
30
|
-
clientKey?: string;
|
|
31
|
-
}, options?: RequestOptions): Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const cardPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getCardPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RequestOptions } from '../../http';
|
|
2
|
-
import type { CheckoutRes,
|
|
2
|
+
import type { CheckoutRes, CheckoutInitParams } from './type';
|
|
3
3
|
export * from './type';
|
|
4
4
|
export * from './map';
|
|
5
|
-
export declare const getCheckoutInfo: (
|
|
6
|
-
export declare const onceGetCheckoutInfo: (params:
|
|
5
|
+
export declare const getCheckoutInfo: (params: CheckoutInitParams, extraParams?: Recordable, options?: RequestOptions) => Promise<CheckoutRes>;
|
|
6
|
+
export declare const onceGetCheckoutInfo: (params: CheckoutInitParams, extraParams?: Recordable, options?: RequestOptions) => Promise<CheckoutRes>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AmountBreakdown, CheckoutRes } from './type';
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
4
|
-
export declare
|
|
2
|
+
export declare const formatPaymentMethodInfo: (paymentMethods?: Recordable[]) => Pick<CheckoutRes, 'supportMethods' | 'channelParams'>;
|
|
3
|
+
export declare const formatAmountBreakdown: (info?: Recordable) => AmountBreakdown;
|
|
4
|
+
export declare const checkoutMap: (res?: Recordable) => CheckoutRes;
|
|
@@ -50,27 +50,56 @@ export interface ChannelParams {
|
|
|
50
50
|
aliPay?: WalletChannelParams;
|
|
51
51
|
}
|
|
52
52
|
export interface CheckoutRes {
|
|
53
|
+
/** 商户 ID */
|
|
53
54
|
merchantId: string;
|
|
54
|
-
|
|
55
|
+
/** 支持的支付方式 */
|
|
56
|
+
supportMethods: PaymentMethod[];
|
|
57
|
+
/** 支付方式 */
|
|
58
|
+
paymentMethod: PaymentMethod;
|
|
59
|
+
/** 会话 ID */
|
|
55
60
|
sessionId: string;
|
|
61
|
+
/** 收银台状态 */
|
|
56
62
|
status: 'PROCESSING' | 'SUCCESS' | 'EXPIRED';
|
|
63
|
+
/** 交易金额 */
|
|
57
64
|
transAmount: Amount;
|
|
65
|
+
/** 过期时间 */
|
|
58
66
|
expireTime: string;
|
|
67
|
+
/** 会话模式 */
|
|
59
68
|
sessionMode: `${SessionMode}`;
|
|
69
|
+
/** 商户名称 */
|
|
60
70
|
merchantName: string;
|
|
71
|
+
/** 返回 URL */
|
|
61
72
|
returnUrl: string;
|
|
73
|
+
/** 取消 URL */
|
|
74
|
+
cancelUrl?: string;
|
|
75
|
+
/** 语言 */
|
|
62
76
|
locale?: string;
|
|
77
|
+
/** 商品 */
|
|
63
78
|
goods: Recordable[];
|
|
79
|
+
/** 主题 */
|
|
64
80
|
theme: CheckoutTheme;
|
|
81
|
+
/** 地址 */
|
|
65
82
|
bill: CheckoutBill;
|
|
83
|
+
/** 支付类型 */
|
|
66
84
|
paymentType: 'PURCHASE' | 'PREPARE_AUTHORIZE' | 'RECURRING' | 'REFUND';
|
|
85
|
+
/** 渠道参数 */
|
|
67
86
|
channelParams?: ChannelParams;
|
|
87
|
+
/** 支付令牌(快捷支付) */
|
|
68
88
|
tokens?: CardTokenInfo[];
|
|
89
|
+
/** 存储支付方式 */
|
|
69
90
|
storePaymentMethod?: boolean;
|
|
91
|
+
/** 字段状态(地址、邮箱、持卡人姓名展示状态) */
|
|
70
92
|
field: FieldStatusConfig;
|
|
93
|
+
/** 国家 */
|
|
71
94
|
country?: string;
|
|
72
|
-
|
|
95
|
+
/** 金额明细 */
|
|
73
96
|
amountBreakdown?: AmountBreakdown;
|
|
97
|
+
/** 订单 ID */
|
|
98
|
+
orderId?: string;
|
|
99
|
+
/** 支付完成时间 */
|
|
100
|
+
finishTime?: string;
|
|
101
|
+
/** 原始响应信息,一些业务字段,组件用不到,但外部会用到,可以从这里获取 */
|
|
102
|
+
rawResponse: Recordable;
|
|
74
103
|
}
|
|
75
104
|
export interface AmountBreakdown {
|
|
76
105
|
goodsTax?: Amount;
|
|
@@ -89,8 +118,8 @@ export interface FieldStatus {
|
|
|
89
118
|
required: boolean;
|
|
90
119
|
disabled?: boolean;
|
|
91
120
|
}
|
|
92
|
-
export interface
|
|
93
|
-
sessionId
|
|
121
|
+
export interface CheckoutInitParams {
|
|
122
|
+
sessionId?: string;
|
|
94
123
|
clientKey?: string;
|
|
95
124
|
}
|
|
96
125
|
export {};
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getGcashPayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const gcashPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getGcashPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
import type {
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
clientKey?: string;
|
|
7
|
-
token: string;
|
|
8
|
-
bill: PayBill;
|
|
9
|
-
browser: Recordable;
|
|
10
|
-
}, core: PayKKaCheckout, options?: RequestOptions): Promise<import("../type").PayRes>;
|
|
11
|
-
export declare function getGooglePayInfo({ sessionId, clientKey }: {
|
|
12
|
-
sessionId: string;
|
|
13
|
-
clientKey?: string;
|
|
14
|
-
}, options?: RequestOptions): Promise<import("../type").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const googlePay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getGooglePayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getGrabPayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const grabPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getGrabPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getLinePayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const linePay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getLinePayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Amount, PayRes } from './type';
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
2
|
+
export declare const amountMap: (res?: Recordable) => Amount;
|
|
3
|
+
export declare const payResMap: (res: Recordable) => PayRes;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getMayBankQRPayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const mayBankQRPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getMayBankQRPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getNinePayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const ninePay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getNinePayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
2
2
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
export declare const paymayaPay: (
|
|
4
|
-
|
|
5
|
-
clientKey?: string;
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getPaymayaPayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
3
|
+
export declare const paymayaPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getPaymayaPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
iban: string;
|
|
8
|
-
holderName?: string;
|
|
9
|
-
};
|
|
10
|
-
bill: {
|
|
11
|
-
email: string;
|
|
12
|
-
country?: string | null;
|
|
13
|
-
province?: string | null;
|
|
14
|
-
city?: string | null;
|
|
15
|
-
area?: string | null;
|
|
16
|
-
postCode?: string | null;
|
|
17
|
-
address1?: string | null;
|
|
18
|
-
address2?: string | null;
|
|
19
|
-
};
|
|
20
|
-
browser: Recordable;
|
|
21
|
-
}, core: PayKKaCheckout, options?: RequestOptions): Promise<import("..").PayRes>;
|
|
22
|
-
export declare function getSepaPayInfo({ sessionId, clientKey }: {
|
|
23
|
-
sessionId: string;
|
|
24
|
-
clientKey?: string;
|
|
25
|
-
}, options?: RequestOptions): Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const sepaPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getSepaPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getShopeePayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const shopeePay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getShopeePayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
payment: {
|
|
7
|
-
paymentMethod: string;
|
|
8
|
-
};
|
|
9
|
-
bill: {
|
|
10
|
-
email: string;
|
|
11
|
-
country?: string | null;
|
|
12
|
-
province?: string | null;
|
|
13
|
-
city?: string | null;
|
|
14
|
-
area?: string | null;
|
|
15
|
-
postCode?: string | null;
|
|
16
|
-
address1?: string | null;
|
|
17
|
-
address2?: string | null;
|
|
18
|
-
};
|
|
19
|
-
browser: Recordable;
|
|
20
|
-
}, core: PayKKaCheckout, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
21
|
-
export declare const getTNGWalletPayInfo: ({ sessionId, clientKey }: {
|
|
22
|
-
sessionId: string;
|
|
23
|
-
clientKey?: string;
|
|
24
|
-
}, options?: RequestOptions) => Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const tngWalletPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getTNGWalletPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -1,35 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import type { PaymentMethod } from '../../constant';
|
|
2
|
+
import type { BasePaymentInfo } from '../../types';
|
|
3
|
+
export interface CheckoutPaymentParams {
|
|
4
|
+
/** 会话 ID */
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
/** 客户端密钥 */
|
|
7
|
+
clientKey?: string;
|
|
8
|
+
/** 账单信息 */
|
|
9
|
+
bill?: PaymentBill;
|
|
10
|
+
/** 浏览器信息 */
|
|
11
|
+
browser: Recordable;
|
|
12
|
+
/** 用户标识,微信为 openid(必填),支付宝为 user_id(非必填) */
|
|
13
|
+
channelUserId?: string;
|
|
14
|
+
/** 支付信息 */
|
|
15
|
+
payment: {
|
|
16
|
+
/** 支付方式 */
|
|
17
|
+
paymentMethod: PaymentMethod;
|
|
18
|
+
/**
|
|
19
|
+
* 是否存储卡信息
|
|
20
|
+
* 若 payment_type 为 PURCHASE,此字段为 True 代表允许顾客选择是否保存支付信息以开启未来快捷支付
|
|
21
|
+
* 若 payment_type 为 RECURRING,此字段为 True 代表告知顾客在当前订单支付完成时将保存支付用于后续循环
|
|
22
|
+
*/
|
|
23
|
+
storePaymentMethod?: boolean;
|
|
24
|
+
/** googlePay/applePay 交易原始授权 json 信息 */
|
|
25
|
+
tokenData?: string;
|
|
26
|
+
/** iban, 可用于直接借记, SEPA 支付方式下必填 */
|
|
27
|
+
iban?: string;
|
|
28
|
+
/** 卡令牌, BANKCARD 支付方式下 token, cardNo, encrypted_card_no 三选一 */
|
|
29
|
+
token?: string;
|
|
30
|
+
/** 银行卡号, BANKCARD 支付方式下 token, cardNo, encrypted_card_no 三选一 */
|
|
31
|
+
cardNo?: string;
|
|
32
|
+
/** 有效期年, 若填写了 cardNo,则 expYear 必填 */
|
|
33
|
+
expYear?: string;
|
|
34
|
+
/** 有效期月, 若填写了 cardNo,则 expMonth 必填 */
|
|
35
|
+
expMonth?: string;
|
|
36
|
+
/** cvv, 若填写了 cardNo,则 cvv 必填 */
|
|
37
|
+
cvv?: string;
|
|
38
|
+
/** 持卡人姓名 */
|
|
39
|
+
holderName?: string;
|
|
40
|
+
};
|
|
20
41
|
}
|
|
21
|
-
export interface
|
|
42
|
+
export interface PaymentBill {
|
|
43
|
+
/** 名 */
|
|
22
44
|
firstName?: string;
|
|
45
|
+
/** 中间名 */
|
|
23
46
|
middleName?: string;
|
|
47
|
+
/** 姓 */
|
|
24
48
|
lastName?: string;
|
|
49
|
+
/** 地址行1 */
|
|
25
50
|
addressLine1?: string;
|
|
51
|
+
/** 地址行2 */
|
|
26
52
|
addressLine2?: string;
|
|
53
|
+
/** 国家 */
|
|
27
54
|
country?: string;
|
|
55
|
+
/** 州 */
|
|
28
56
|
state?: string;
|
|
57
|
+
/** 城市 */
|
|
29
58
|
city?: string;
|
|
59
|
+
/** 区 */
|
|
60
|
+
district?: string;
|
|
61
|
+
/** 邮箱 */
|
|
30
62
|
email?: string;
|
|
63
|
+
/** 邮政编码 */
|
|
31
64
|
postalCode?: string;
|
|
65
|
+
/** 区号 */
|
|
32
66
|
areaCode?: string;
|
|
67
|
+
/** 电话号码 */
|
|
33
68
|
phoneNumber?: string;
|
|
34
|
-
descriptor?: string;
|
|
35
69
|
}
|
|
70
|
+
export interface CheckoutQueryParams {
|
|
71
|
+
/** 会话 ID */
|
|
72
|
+
sessionId?: string;
|
|
73
|
+
/** 客户端密钥 */
|
|
74
|
+
clientKey?: string;
|
|
75
|
+
/** 浏览器信息 */
|
|
76
|
+
browser?: Recordable;
|
|
77
|
+
/** 支付方式,除了普通卡支付外,其他支付方式必传,如果是快捷支付传 BANKCARD */
|
|
78
|
+
paymentMethod?: PaymentMethod;
|
|
79
|
+
}
|
|
80
|
+
export interface Amount {
|
|
81
|
+
amount: number;
|
|
82
|
+
currency: string;
|
|
83
|
+
symbol: string;
|
|
84
|
+
digits: number;
|
|
85
|
+
}
|
|
86
|
+
export type SessionStatus = 'PROCESSING' | 'SUCCESS' | 'EXPIRED';
|
|
87
|
+
export type OrderStatus = 'PROCESSING' | 'AUTHORIZED' | 'SUCCESS' | 'FAILURE' | 'IN_THREED' | 'IN_PREVIOUS_THREED' | 'CANCELED';
|
|
88
|
+
export type PayRes = BasePaymentInfo;
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import type { PayKKaCheckout } from '../../../core';
|
|
2
1
|
import { type RequestOptions } from '../../http';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
bill: {
|
|
7
|
-
email: string;
|
|
8
|
-
country?: string | null;
|
|
9
|
-
province?: string | null;
|
|
10
|
-
city?: string | null;
|
|
11
|
-
area?: string | null;
|
|
12
|
-
postCode?: string | null;
|
|
13
|
-
address1?: string | null;
|
|
14
|
-
address2?: string | null;
|
|
15
|
-
};
|
|
16
|
-
channelUserId?: string;
|
|
17
|
-
}, core: PayKKaCheckout, options?: RequestOptions): Promise<import("..").PayRes>;
|
|
18
|
-
export declare function getWechatPayInfo({ sessionId, clientKey }: {
|
|
19
|
-
sessionId: string;
|
|
20
|
-
clientKey?: string;
|
|
21
|
-
}, options?: RequestOptions): Promise<import("..").PayRes>;
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const wechatPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getWechatPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type RequestOptions } from '../../http';
|
|
2
|
+
import type { CheckoutPaymentParams, CheckoutQueryParams } from '../type';
|
|
3
|
+
export declare const zalopayPay: (params: CheckoutPaymentParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
4
|
+
export declare const getZalopayPayInfo: (params: CheckoutQueryParams, extraParams?: Recordable, options?: RequestOptions) => Promise<import("../../..").BasePaymentInfo>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { CheckoutInitParams, CheckoutQueryParams } from '../modules';
|
|
2
|
+
import { type CheckoutPaymentParams } from '../modules/type';
|
|
3
|
+
/** 构建收银台初始化参数 */
|
|
4
|
+
export declare const buildInitParams: (params: CheckoutInitParams, extraParams?: Recordable) => {
|
|
5
|
+
session_id: string | undefined;
|
|
6
|
+
client_key: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
/** 构建收银台支付参数 */
|
|
9
|
+
export declare const buildPaymentParams: (params: CheckoutPaymentParams, extraParams?: Recordable) => {
|
|
10
|
+
session_id: string | undefined;
|
|
11
|
+
client_key: string | undefined;
|
|
12
|
+
channel_user_id: string | undefined;
|
|
13
|
+
payment: {
|
|
14
|
+
payment_method: import("../..").PaymentMethod;
|
|
15
|
+
store_payment_method: boolean | undefined;
|
|
16
|
+
token_data: string | undefined;
|
|
17
|
+
iban: string | undefined;
|
|
18
|
+
token: string | undefined;
|
|
19
|
+
card_no: string | undefined;
|
|
20
|
+
exp_year: string | undefined;
|
|
21
|
+
exp_month: string | undefined;
|
|
22
|
+
cvv: string | undefined;
|
|
23
|
+
holder_name: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
browser: Recordable<any>;
|
|
26
|
+
bill: {
|
|
27
|
+
first_name: string | undefined;
|
|
28
|
+
middle_name: string | undefined;
|
|
29
|
+
last_name: string | undefined;
|
|
30
|
+
email: string | undefined;
|
|
31
|
+
country: string | undefined;
|
|
32
|
+
state: string | undefined;
|
|
33
|
+
city: string | undefined;
|
|
34
|
+
postal_code: string | undefined;
|
|
35
|
+
address_line1: string | undefined;
|
|
36
|
+
address_line2: string | undefined;
|
|
37
|
+
district: string | undefined;
|
|
38
|
+
area_code: string | undefined;
|
|
39
|
+
phone_number: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/** 构建收银台查询参数 */
|
|
43
|
+
export declare const buildQueryParams: (params: CheckoutQueryParams, extraParams?: Recordable) => {
|
|
44
|
+
session_id: string | undefined;
|
|
45
|
+
client_key: string | undefined;
|
|
46
|
+
payment_method: import("../..").PaymentMethod | undefined;
|
|
47
|
+
browser: Recordable<any> | undefined;
|
|
48
|
+
};
|