@paykka/card-checkout-ui 0.11.6 → 0.13.1
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 +17 -17
- package/dist/card-checkout-ui.umd.cjs +17 -17
- 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/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 +143 -90
- package/dist/es/components/ApplePay/index.js +99 -67
- package/dist/es/components/Boost/index.js +66 -39
- package/dist/es/components/Card/index.js +90 -79
- 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 +1 -1
- package/dist/es/components/GooglePay/index.js +93 -60
- package/dist/es/components/GrabPay/index.js +66 -39
- package/dist/es/components/GuideCard/index.js +10 -7
- package/dist/es/components/LinePay/index.js +66 -39
- package/dist/es/components/MayBankQRPay/index.js +306 -273
- package/dist/es/components/NinePay/index.js +66 -39
- package/dist/es/components/SecuredFieldsProvider/index.js +3 -2
- package/dist/es/components/SecuredIframe/index.js +4 -2
- package/dist/es/components/Sepa/index.js +62 -39
- package/dist/es/components/ShopeePay/index.js +66 -39
- package/dist/es/components/SubmitButton/index.js +8 -7
- package/dist/es/components/TNGWallet/index.js +66 -39
- package/dist/es/components/WechatPay/index.js +146 -92
- package/dist/es/components/business/QRCodeModal/QRCodeModal.js +26 -6
- package/dist/es/components/index.js +1 -0
- 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/SelectMenuItem.js +12 -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 +68 -39
- package/dist/es/components/wallets/Paymaya/Paymaya.js +66 -39
- package/dist/es/components/wallets/Zalopay/Zalopay.js +386 -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} +78 -27
- package/dist/es/core/query.js +3 -2
- package/dist/es/core/{Session.js → session.js} +37 -20
- 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 +16 -4
- 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/payment.js +82 -0
- package/dist/es/utils/redirect.js +4 -4
- 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/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/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/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/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} +5 -3
- package/dist/types/core/context.d.ts +3 -2
- package/dist/types/core/index.d.ts +2 -2
- package/dist/types/core/query.d.ts +2 -2
- package/dist/types/core/session.d.ts +33 -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 +1 -0
- 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 +1 -0
- package/dist/types/utils/payment.d.ts +37 -0
- package/package.json +3 -3
- package/dist/types/core/Session.d.ts +0 -16
|
@@ -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
|
+
};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
+
import type { AddressMode } from '../../types';
|
|
2
|
+
import type { Address } from '../../core/address';
|
|
1
3
|
export interface AddressFieldProps {
|
|
2
4
|
value: Address;
|
|
3
5
|
onAddressChange: (value: Address) => void;
|
|
4
6
|
country?: string;
|
|
5
|
-
|
|
6
|
-
export interface Address {
|
|
7
|
-
country: string;
|
|
8
|
-
province: string;
|
|
9
|
-
city: string;
|
|
10
|
-
area: string;
|
|
11
|
-
postCode: string;
|
|
12
|
-
address1: string;
|
|
13
|
-
address2: string;
|
|
7
|
+
mode?: AddressMode;
|
|
14
8
|
}
|
|
15
9
|
export interface AddressFieldRef {
|
|
16
10
|
update: (value: Address) => void;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import './ali-pay.scss';
|
|
2
2
|
import type { AliPayProps, AliPayRef } from './type';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const AliPay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<AliPayProps & import("../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../core").Session;
|
|
5
|
+
core: import("../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
5
9
|
ref?: import("preact").Ref<AliPayRef> | undefined;
|
|
6
10
|
}>;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type { PayRes } from '../../api';
|
|
2
2
|
import type { PayKKaError } from '../../core';
|
|
3
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../types';
|
|
3
4
|
import type { FormValidateError } from '../internal/Form';
|
|
4
|
-
export interface AliPayProps {
|
|
5
|
+
export interface AliPayProps extends PayKKaCommonConfig {
|
|
6
|
+
/**
|
|
7
|
+
* 是否展示邮箱
|
|
8
|
+
* 若配置 true 但创建收银台时已经传了,就展示禁用状态。
|
|
9
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
10
|
+
*/
|
|
11
|
+
showEmail?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 是否展示邮箱
|
|
14
|
+
* 若配置 true 但创建收银台时已经传了,还是展示,先不禁用。
|
|
15
|
+
* 若配置 false 但创建收银台时未传,依旧会展示该输入框。
|
|
16
|
+
*/
|
|
17
|
+
showAddress?: boolean;
|
|
5
18
|
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
6
|
-
onSuccess?: (
|
|
19
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
7
20
|
onError?: (error: PayKKaError) => void;
|
|
8
21
|
onTimeout?: (source: 'retry' | 'channel') => void;
|
|
9
22
|
onExpired?: () => void;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import './apple-pay.scss';
|
|
2
2
|
import type { ApplePayProps, ApplePayRef } from './type';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const ApplePay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<ApplePayProps & import("../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../core").Session;
|
|
5
|
+
core: import("../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
5
9
|
ref?: import("preact").Ref<ApplePayRef> | undefined;
|
|
6
10
|
}>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { PayKKaError } from '../../core';
|
|
2
|
-
import type {
|
|
3
|
-
export interface ApplePayProps {
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../types';
|
|
3
|
+
export interface ApplePayProps extends PayKKaCommonConfig {
|
|
4
4
|
/** 支付授权成功后触发 */
|
|
5
5
|
onSubmit?: () => void;
|
|
6
6
|
/** 支付成功后触发 */
|
|
7
|
-
onSuccess?: (data:
|
|
8
|
-
/**
|
|
7
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
8
|
+
/**
|
|
9
|
+
* SDK 加载回调,status 为 true 表示加载成功,false 表示加载失败
|
|
10
|
+
* 注意:该回调在 SDK 加载成功后触发,但不一定表示 Apple Pay 可用
|
|
11
|
+
*/
|
|
9
12
|
onLoad?: (status: boolean) => void;
|
|
10
13
|
/** 支付失败时触发 */
|
|
11
14
|
onError?: (error: PayKKaError) => void;
|
|
@@ -15,18 +18,11 @@ export interface ApplePayProps {
|
|
|
15
18
|
onExpired?: () => void;
|
|
16
19
|
/** 支付取消时触发 */
|
|
17
20
|
onCancel?: () => void;
|
|
18
|
-
/** Apple Pay 按钮是否可用 */
|
|
19
|
-
onCanUse?: (canUse: boolean) => void;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* Apple Pay 按钮是否可用
|
|
23
|
+
* 注意:在 onLoad 返回 false 的情况下不会触发该回调
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* 点击 GooglePay 按钮
|
|
28
|
-
*/
|
|
29
|
-
onBtnClick?: () => void;
|
|
25
|
+
onCanUse?: (canUse: boolean) => void;
|
|
30
26
|
}
|
|
31
27
|
export interface ApplePayRef {
|
|
32
28
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { BoostProps } from './type';
|
|
2
2
|
import type { BoostRef } from './type';
|
|
3
|
-
import type { CoreProps } from '../../types';
|
|
4
3
|
import './boost.scss';
|
|
5
|
-
export declare const Boost: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<BoostProps &
|
|
4
|
+
export declare const Boost: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<BoostProps & import("../../types").PayKKaCommonConfig & {
|
|
5
|
+
session: import("../../core").Session;
|
|
6
|
+
core: import("../../core").PayKKaCheckout;
|
|
7
|
+
threeDSFrame?: import("../../types").ThreeDSFrameConfig | undefined;
|
|
8
|
+
isDropIn?: boolean | undefined;
|
|
9
|
+
}> & {
|
|
6
10
|
ref?: import("preact").Ref<BoostRef> | undefined;
|
|
7
11
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PayKKaError } from '../../core';
|
|
2
|
-
import type { PayRes } from '../../api';
|
|
3
2
|
import type { FormValidateError } from '../internal/Form';
|
|
3
|
+
import type { PaymentInfo } from '../../types';
|
|
4
4
|
export interface BoostProps {
|
|
5
5
|
/**
|
|
6
6
|
* 是否展示邮箱
|
|
@@ -17,35 +17,13 @@ export interface BoostProps {
|
|
|
17
17
|
/** 提交表单时触发 */
|
|
18
18
|
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
19
19
|
/** 支付成功后触发 */
|
|
20
|
-
onSuccess?: (
|
|
20
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
21
21
|
/** 支付失败时触发 */
|
|
22
22
|
onError?: (error: PayKKaError) => void;
|
|
23
23
|
/** 支付超时时触发 */
|
|
24
24
|
onTimeout?: () => void;
|
|
25
25
|
/** 收银台已过期时触发 */
|
|
26
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
27
|
}
|
|
50
28
|
export interface BoostRef {
|
|
51
29
|
/** 停止轮询支付结果 */
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import './card.scss';
|
|
2
2
|
import type { CardProps, CardRef } from './type';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const Card: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<CardProps & import("../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../core").Session;
|
|
5
|
+
core: import("../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
5
9
|
ref?: import("preact").Ref<CardRef> | undefined;
|
|
6
10
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PayKKaError } from '../../core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../types';
|
|
3
3
|
import type { FormValidateError } from '../internal/Form';
|
|
4
|
-
export interface CardProps {
|
|
4
|
+
export interface CardProps extends PayKKaCommonConfig {
|
|
5
5
|
/** 定义卡敏感信息表单布局展示,split 为分割布局,combine 为合并布局 */
|
|
6
6
|
cardInfoLayout?: CardInfoLayout;
|
|
7
7
|
/**
|
|
@@ -18,59 +18,19 @@ export interface CardProps {
|
|
|
18
18
|
showAddress?: boolean;
|
|
19
19
|
/** 是否在卡号输入框下展示收银台支持的发卡行图标 */
|
|
20
20
|
showCardBrands?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* 是否展示持卡人姓名,目前一定展示
|
|
24
|
-
*/
|
|
25
|
-
styles?: ElementStylesConfig;
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* 是否展示持卡人姓名,目前一定展示
|
|
29
|
-
*/
|
|
30
|
-
showHolderName?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* 是否展示3ds modal,默认为 true,配置 false 则抛出 onThreeDS 回调
|
|
34
|
-
*/
|
|
35
|
-
enable3DSModal?: boolean;
|
|
36
21
|
/** 提交表单时触发 */
|
|
37
22
|
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
38
23
|
/** 支付成功后触发 */
|
|
39
|
-
onSuccess?: (data:
|
|
24
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
40
25
|
/** 支付失败时触发 */
|
|
41
26
|
onError?: (error: PayKKaError) => void;
|
|
42
27
|
/** 支付超时时触发 */
|
|
43
28
|
onTimeout?: () => void;
|
|
44
29
|
/** 收银台已过期时触发 */
|
|
45
30
|
onExpired?: () => void;
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* 交易被风控拦截时触发
|
|
49
|
-
*/
|
|
50
|
-
onAuthorized?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* 交易需要 3DS 验证时触发,url 为 3DS 验证链接,incomplete 为 false 表示目前要开始进行 3DS 验证,为 true 表示上一次 3DS 验证还未完成
|
|
54
|
-
*/
|
|
55
|
-
onThreeDS?: (url: string, incomplete: boolean) => void;
|
|
56
31
|
}
|
|
57
32
|
export interface CardRef {
|
|
58
33
|
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
59
34
|
payment: () => void;
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* 3DS 验证流程结束后可调用该方法轮询收银台支付状态
|
|
63
|
-
*/
|
|
64
|
-
checkThreeDS: () => void;
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
* 进行表单切换时更新已填的地址信息
|
|
68
|
-
*/
|
|
69
|
-
updateAddress: () => void;
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* 进行表单切换时更新已填的邮箱信息
|
|
73
|
-
*/
|
|
74
|
-
updateEmail: () => void;
|
|
75
35
|
}
|
|
76
36
|
export type CardInfoLayout = 'split' | 'combine';
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type DropInProps, type DropInRefs } from './type';
|
|
2
2
|
import './drop-in.scss';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const DropIn: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<DropInProps & import("../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../core").Session;
|
|
5
|
+
core: import("../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
5
9
|
ref?: import("preact").Ref<DropInRefs> | undefined;
|
|
6
10
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'preact/compat';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PayKKaCommonConfig, PaymentInfo } from '../../types';
|
|
3
3
|
import { PaymentCategory, PaymentMethod } from '../../constant';
|
|
4
4
|
import type { ComponentType } from 'preact';
|
|
5
5
|
import type { FormValidateError } from '../internal/Form';
|
|
6
6
|
import type { PayKKaError } from '../../core';
|
|
7
|
-
export interface DropInProps {
|
|
7
|
+
export interface DropInProps extends PayKKaCommonConfig {
|
|
8
8
|
/**
|
|
9
9
|
* 配置各种支付方式的参数
|
|
10
10
|
* 最终展示的支付方式由创建收银台请求返回结果决定,而不是由该参数决定
|
|
@@ -21,19 +21,13 @@ export interface DropInProps {
|
|
|
21
21
|
/** 提交表单时触发 */
|
|
22
22
|
onSubmit?: (formValidateError?: Recordable<FormValidateError[]>) => void;
|
|
23
23
|
/** 支付成功后触发 */
|
|
24
|
-
onSuccess?: (data:
|
|
24
|
+
onSuccess?: (data: PaymentInfo) => void;
|
|
25
25
|
/** 支付失败时触发 */
|
|
26
26
|
onError?: (error: PayKKaError) => void;
|
|
27
27
|
/** 支付超时时触发 */
|
|
28
28
|
onTimeout?: () => void;
|
|
29
29
|
/** 收银台已过期时触发 */
|
|
30
30
|
onExpired?: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* 是否启用过渡动画,layout 为 accordion 时有效
|
|
34
|
-
* 默认为 true
|
|
35
|
-
*/
|
|
36
|
-
enableAccordionTransition?: boolean;
|
|
37
31
|
}
|
|
38
32
|
export interface DropInRefs {
|
|
39
33
|
/** 不展示支付按钮时,可调用该方法进行支付 */
|
|
@@ -52,6 +46,6 @@ export interface PaymentTypeOptions {
|
|
|
52
46
|
* 目前暂不支持 WeChatPay 和 Alipay
|
|
53
47
|
*/
|
|
54
48
|
export declare const dropInSupportedPaymentMethods: PaymentMethod[];
|
|
55
|
-
export type DropInPaymentCategory = PaymentCategory.APPLE_PAY | PaymentCategory.GOOGLE_PAY | PaymentCategory.CARD | PaymentCategory.BOOST | PaymentCategory.GRAB_PAY | PaymentCategory.TNG_WALLET | PaymentCategory.MAY_BANK_QR_PAY | PaymentCategory.SHOPEE_PAY | PaymentCategory.LINE_PAY | PaymentCategory.NINE_PAY | PaymentCategory.GCASH | PaymentCategory.PAYMAYA;
|
|
49
|
+
export type DropInPaymentCategory = PaymentCategory.APPLE_PAY | PaymentCategory.GOOGLE_PAY | PaymentCategory.CARD | PaymentCategory.BOOST | PaymentCategory.GRAB_PAY | PaymentCategory.TNG_WALLET | PaymentCategory.MAY_BANK_QR_PAY | PaymentCategory.SHOPEE_PAY | PaymentCategory.LINE_PAY | PaymentCategory.NINE_PAY | PaymentCategory.GCASH | PaymentCategory.PAYMAYA | PaymentCategory.ZALOPAY;
|
|
56
50
|
export declare const PaymentComponentMap: Record<DropInPaymentCategory, ComponentType<any>>;
|
|
57
51
|
export type PaymentComponentProps<P extends keyof typeof PaymentComponentMap> = React.ComponentProps<(typeof PaymentComponentMap)[P]>;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import './google-pay.scss';
|
|
2
2
|
import type { GooglePayProps, GooglePayRef } from './type';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const GooglePay: import("preact").FunctionalComponent<import("preact/compat").PropsWithoutRef<GooglePayProps & import("../../types").PayKKaCommonConfig & {
|
|
4
|
+
session: import("../../core").Session;
|
|
5
|
+
core: import("../../core").PayKKaCheckout;
|
|
6
|
+
threeDSFrame?: import("../../types").ThreeDSFrameConfig | undefined;
|
|
7
|
+
isDropIn?: boolean | undefined;
|
|
8
|
+
}> & {
|
|
5
9
|
ref?: import("preact").Ref<GooglePayRef> | undefined;
|
|
6
10
|
}>;
|