@portone/browser-sdk 0.0.11 → 0.0.12
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/v2/entity/Locale.d.ts +5 -0
- package/dist/v2/entity/PgProvider.d.ts +2 -0
- package/dist/v2/entity/Popup.d.ts +3 -0
- package/dist/v2/entity/Product.d.ts +1 -0
- package/dist/v2/entity/bypass/payment/EximbayV2.d.ts +44 -0
- package/dist/v2/entity/bypass/payment/index.d.ts +10 -8
- package/dist/v2/entity/index.d.ts +8 -8
- package/dist/v2/loadPaymentUI.d.ts +1 -0
- package/dist/v2/requestIdentityVerification.d.ts +1 -0
- package/dist/v2/requestIssueBillingKey.d.ts +1 -0
- package/dist/v2/requestIssueBillingKeyAndPay.d.ts +1 -0
- package/dist/v2/requestPayment.d.ts +1 -0
- package/dist/v2.cjs +15 -9
- package/dist/v2.js +15 -9
- package/package.json +1 -1
|
@@ -2,5 +2,10 @@ export declare const Locale: {
|
|
|
2
2
|
readonly KO_KR: "KO_KR";
|
|
3
3
|
readonly EN_US: "EN_US";
|
|
4
4
|
readonly ZH_CN: "ZH_CN";
|
|
5
|
+
readonly ZH_TW: "ZH_TW";
|
|
6
|
+
readonly JA_JP: "JA_JP";
|
|
7
|
+
readonly RU_RU: "RU_RU";
|
|
8
|
+
readonly TH_TH: "TH_TH";
|
|
9
|
+
readonly VI_VN: "VI_VN";
|
|
5
10
|
};
|
|
6
11
|
export type Locale = typeof Locale[keyof typeof Locale];
|
|
@@ -42,6 +42,7 @@ export declare const PgProvider: {
|
|
|
42
42
|
readonly KPN: "PG_PROVIDER_KPN";
|
|
43
43
|
readonly KCP_V2: "PG_PROVIDER_KCP_V2";
|
|
44
44
|
readonly HYPHEN: "PG_PROVIDER_HYPHEN";
|
|
45
|
+
readonly EXIMBAY_V2: "PG_PROVIDER_EXIMBAY_V2";
|
|
45
46
|
};
|
|
46
47
|
export type PgProvider = typeof PgProvider[keyof typeof PgProvider];
|
|
47
48
|
type InversionMap<T extends Record<keyof T, keyof any>> = {
|
|
@@ -91,6 +92,7 @@ export declare const InversionPgProvider: InversionMap<{
|
|
|
91
92
|
readonly KPN: "PG_PROVIDER_KPN";
|
|
92
93
|
readonly KCP_V2: "PG_PROVIDER_KCP_V2";
|
|
93
94
|
readonly HYPHEN: "PG_PROVIDER_HYPHEN";
|
|
95
|
+
readonly EXIMBAY_V2: "PG_PROVIDER_EXIMBAY_V2";
|
|
94
96
|
}>;
|
|
95
97
|
export type InversionPgProvider = typeof InversionPgProvider[keyof typeof InversionPgProvider];
|
|
96
98
|
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type EximbayV2Bypass = {
|
|
2
|
+
payment?: {
|
|
3
|
+
payment_method?: string;
|
|
4
|
+
multi_payment_method?: string[];
|
|
5
|
+
};
|
|
6
|
+
merchant?: {
|
|
7
|
+
shop?: string;
|
|
8
|
+
partner_code?: string;
|
|
9
|
+
};
|
|
10
|
+
tax?: {
|
|
11
|
+
receipt_status?: 'Y' | 'N';
|
|
12
|
+
amount_service_fee?: string;
|
|
13
|
+
};
|
|
14
|
+
surcharge?: {
|
|
15
|
+
name?: string;
|
|
16
|
+
quantity?: string;
|
|
17
|
+
unit_price?: string;
|
|
18
|
+
}[];
|
|
19
|
+
ship_to?: {
|
|
20
|
+
city?: string;
|
|
21
|
+
country?: string;
|
|
22
|
+
first_name?: string;
|
|
23
|
+
last_name?: string;
|
|
24
|
+
phone_number?: string;
|
|
25
|
+
postal_code?: string;
|
|
26
|
+
state?: string;
|
|
27
|
+
street1?: string;
|
|
28
|
+
};
|
|
29
|
+
bill_to?: {
|
|
30
|
+
city?: string;
|
|
31
|
+
country?: string;
|
|
32
|
+
first_name?: string;
|
|
33
|
+
last_name?: string;
|
|
34
|
+
phone_number?: string;
|
|
35
|
+
postal_code?: string;
|
|
36
|
+
state?: string;
|
|
37
|
+
street1?: string;
|
|
38
|
+
};
|
|
39
|
+
settings?: {
|
|
40
|
+
call_from_app?: 'Y' | 'N';
|
|
41
|
+
issuer_country?: string;
|
|
42
|
+
};
|
|
43
|
+
virtualaccount_expiry_date?: string;
|
|
44
|
+
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { HyphenBypass } from './Hyphen.js';
|
|
2
|
+
import { EximbayV2Bypass } from './EximbayV2.js';
|
|
3
|
+
import { InicisV2Bypass } from './InicisV2.js';
|
|
3
4
|
import { KakaopayPaymentBypass } from './Kakaopay.js';
|
|
4
|
-
import {
|
|
5
|
+
import { KcpV2Bypass } from './KcpV2.js';
|
|
6
|
+
import { KpnBypass } from './Kpn.js';
|
|
7
|
+
import { KsnetPaymentBypass } from './Ksnet.js';
|
|
5
8
|
import { NaverpayPaymentBypass } from './Naverpay.js';
|
|
6
9
|
import { NiceV2PaymentBypass } from './NiceV2.js';
|
|
10
|
+
import { SmartroV2PaymentBypass } from './SmartroV2.js';
|
|
7
11
|
import { TossBrandpayPaymentBypass } from './TossBrandpay.js';
|
|
8
|
-
import {
|
|
12
|
+
import { TosspaymentsPaymentBypass } from './Tosspayments.js';
|
|
9
13
|
import { TosspayV2PaymentBypass } from './TosspayV2.js';
|
|
10
|
-
import {
|
|
11
|
-
import { KpnBypass } from './Kpn.js';
|
|
12
|
-
import { KcpV2Bypass } from './KcpV2.js';
|
|
13
|
-
import { HyphenBypass } from './Hyphen.js';
|
|
14
|
+
import { WelcomePaymentBypass } from './Welcome.js';
|
|
14
15
|
export type PaymentBypass = {
|
|
15
16
|
tosspayments?: TosspaymentsPaymentBypass;
|
|
16
17
|
ksnet?: KsnetPaymentBypass;
|
|
@@ -25,4 +26,5 @@ export type PaymentBypass = {
|
|
|
25
26
|
kpn?: KpnBypass;
|
|
26
27
|
kcp_v2?: KcpV2Bypass;
|
|
27
28
|
hyphen?: HyphenBypass;
|
|
29
|
+
eximbay_v2?: EximbayV2Bypass;
|
|
28
30
|
};
|
|
@@ -8,14 +8,13 @@ export { Currency } from './Currency.js';
|
|
|
8
8
|
export { EasyPayProvider } from './EasyPayProvider.js';
|
|
9
9
|
export { Gender } from './Gender.js';
|
|
10
10
|
export { GiftCertificateType } from './GiftCertificateType.js';
|
|
11
|
+
export { IssueBillingKeyUIType } from './IssueBillingKeyUIType.js';
|
|
12
|
+
export { LoadableUIType } from './LoadableUIType.js';
|
|
11
13
|
export { Locale } from './Locale.js';
|
|
12
|
-
export {
|
|
14
|
+
export { PaymentUIType } from './PaymentUIType.js';
|
|
15
|
+
export { InversionPgProvider, PgProvider } from './PgProvider.js';
|
|
13
16
|
export { TransactionType } from './TransactionType.js';
|
|
14
17
|
export { WindowType } from './WindowType.js';
|
|
15
|
-
export { LoadableUIType } from './LoadableUIType.js';
|
|
16
|
-
export { PaymentUIType } from './PaymentUIType.js';
|
|
17
|
-
export { IssueBillingKeyUIType } from './IssueBillingKeyUIType.js';
|
|
18
|
-
export { InversionPgProvider } from './PgProvider.js';
|
|
19
18
|
export type { Address } from './Address.js';
|
|
20
19
|
export type { CashReceiptType } from './CashReceiptType.js';
|
|
21
20
|
export type { Customer } from './Customer.js';
|
|
@@ -24,13 +23,14 @@ export type { FreeInstallmentPlan } from './FreeInstallmentPlan.js';
|
|
|
24
23
|
export type { Installment } from './Installment.js';
|
|
25
24
|
export type { OfferPeriod } from './OfferPeriod.js';
|
|
26
25
|
export type { PayMethod } from './PayMethod.js';
|
|
26
|
+
export type { Popup } from './Popup.js';
|
|
27
27
|
export type { Product } from './Product.js';
|
|
28
28
|
export type { ProductType } from './ProductType.js';
|
|
29
29
|
export type { StoreDetails } from './StoreDetails.js';
|
|
30
30
|
export type { WindowTypes } from './WindowType.js';
|
|
31
31
|
export type { IdentityVerificationBypass } from './bypass/identityVerification/index.js';
|
|
32
|
-
export type { IssueBillingKeyAndPayBypass } from './bypass/issueBillingKeyAndPay/index.js';
|
|
33
32
|
export type { IssueBillingKeyBypass } from './bypass/issueBillingKey/index.js';
|
|
34
|
-
export type {
|
|
35
|
-
export type { LoadPaymentUIBypass } from './bypass/loadPaymentUI/index.js';
|
|
33
|
+
export type { IssueBillingKeyAndPayBypass } from './bypass/issueBillingKeyAndPay/index.js';
|
|
36
34
|
export type { LoadIssueBillingKeyUIBypass } from './bypass/loadIssueBillingKeyUI/index.js';
|
|
35
|
+
export type { LoadPaymentUIBypass } from './bypass/loadPaymentUI/index.js';
|
|
36
|
+
export type { PaymentBypass } from './bypass/payment/index.js';
|
|
@@ -21,6 +21,7 @@ export type IssueBillingKeyRequest = {
|
|
|
21
21
|
noticeUrls?: string[];
|
|
22
22
|
productType?: Entity.ProductType;
|
|
23
23
|
bypass?: Entity.IssueBillingKeyBypass;
|
|
24
|
+
popup?: Entity.Popup;
|
|
24
25
|
} & (BillingKeyMethodOptions<'CARD', Card> | BillingKeyMethodOptions<'MOBILE', Mobile> | BillingKeyMethodOptions<'EASY_PAY', EasyPay> | BillingKeyMethodOptions<'PAYPAL', Paypal>);
|
|
25
26
|
/**
|
|
26
27
|
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
|
@@ -26,6 +26,7 @@ export type IssueBillingKeyAndPayRequest = {
|
|
|
26
26
|
storeDetails?: Entity.StoreDetails;
|
|
27
27
|
country?: Entity.Country;
|
|
28
28
|
bypass?: Entity.IssueBillingKeyAndPayBypass;
|
|
29
|
+
popup?: Entity.Popup;
|
|
29
30
|
} & BillingKeyAndPayMethodOptions<'MOBILE', Mobile>;
|
|
30
31
|
/**
|
|
31
32
|
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
|
@@ -31,6 +31,7 @@ export type PaymentRequest = {
|
|
|
31
31
|
country?: Entity.Country;
|
|
32
32
|
shippingAddress?: Entity.Address;
|
|
33
33
|
promotionId?: string;
|
|
34
|
+
popup?: Entity.Popup;
|
|
34
35
|
} & (PayMethodOptions<'CARD', Card> | PayMethodOptions<'VIRTUAL_ACCOUNT', VirtualAccount> | PayMethodOptions<'TRANSFER', Transfer> | PayMethodOptions<'MOBILE', Mobile> | PayMethodOptions<'GIFT_CERTIFICATE', GiftCertificate> | PayMethodOptions<'EASY_PAY', EasyPay> | PayMethodOptions<'PAYPAL', Paypal> | PayMethodOptions<'ALIPAY', Alipay>);
|
|
35
36
|
/**
|
|
36
37
|
* iframe/popup 방식으로 PG사 창이 렌더링 된 경우
|
package/dist/v2.cjs
CHANGED
|
@@ -695,11 +695,24 @@ const GiftCertificateType = {
|
|
|
695
695
|
CULTURE_GIFT: 'GIFT_CERTIFICATE_TYPE_CULTURE_GIFT',
|
|
696
696
|
};
|
|
697
697
|
|
|
698
|
+
const IssueBillingKeyUIType = {
|
|
699
|
+
PAYPAL_RT: 'PAYPAL_RT',
|
|
700
|
+
};
|
|
701
|
+
|
|
698
702
|
// PG사 창 언어 설정
|
|
699
703
|
const Locale = {
|
|
700
704
|
KO_KR: 'KO_KR', // 한국어
|
|
701
705
|
EN_US: 'EN_US', // 영어
|
|
702
|
-
ZH_CN: 'ZH_CN', // 중국어
|
|
706
|
+
ZH_CN: 'ZH_CN', // 중국어 (중국)
|
|
707
|
+
ZH_TW: 'ZH_TW', // 중국어 (대만)
|
|
708
|
+
JA_JP: 'JA_JP', // 일본어
|
|
709
|
+
RU_RU: 'RU_RU', // 러시아어
|
|
710
|
+
TH_TH: 'TH_TH', // 타이어
|
|
711
|
+
VI_VN: 'VI_VN', // 베트남어
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
const PaymentUIType = {
|
|
715
|
+
PAYPAL_SPB: 'PAYPAL_SPB',
|
|
703
716
|
};
|
|
704
717
|
|
|
705
718
|
// PG사
|
|
@@ -747,6 +760,7 @@ const PgProvider = {
|
|
|
747
760
|
KPN: 'PG_PROVIDER_KPN',
|
|
748
761
|
KCP_V2: 'PG_PROVIDER_KCP_V2',
|
|
749
762
|
HYPHEN: 'PG_PROVIDER_HYPHEN',
|
|
763
|
+
EXIMBAY_V2: 'PG_PROVIDER_EXIMBAY_V2',
|
|
750
764
|
};
|
|
751
765
|
const InversionPgProvider = Object.entries(PgProvider).reduce((acc, [k, v]) => (Object.assign(Object.assign({}, acc), { [v]: k })), {});
|
|
752
766
|
|
|
@@ -775,14 +789,6 @@ const WindowType = {
|
|
|
775
789
|
UI: 'UI',
|
|
776
790
|
};
|
|
777
791
|
|
|
778
|
-
const PaymentUIType = {
|
|
779
|
-
PAYPAL_SPB: 'PAYPAL_SPB',
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
const IssueBillingKeyUIType = {
|
|
783
|
-
PAYPAL_RT: 'PAYPAL_RT',
|
|
784
|
-
};
|
|
785
|
-
|
|
786
792
|
var index$1 = {
|
|
787
793
|
__proto__: null,
|
|
788
794
|
Bank: Bank,
|
package/dist/v2.js
CHANGED
|
@@ -691,11 +691,24 @@ const GiftCertificateType = {
|
|
|
691
691
|
CULTURE_GIFT: 'GIFT_CERTIFICATE_TYPE_CULTURE_GIFT',
|
|
692
692
|
};
|
|
693
693
|
|
|
694
|
+
const IssueBillingKeyUIType = {
|
|
695
|
+
PAYPAL_RT: 'PAYPAL_RT',
|
|
696
|
+
};
|
|
697
|
+
|
|
694
698
|
// PG사 창 언어 설정
|
|
695
699
|
const Locale = {
|
|
696
700
|
KO_KR: 'KO_KR', // 한국어
|
|
697
701
|
EN_US: 'EN_US', // 영어
|
|
698
|
-
ZH_CN: 'ZH_CN', // 중국어
|
|
702
|
+
ZH_CN: 'ZH_CN', // 중국어 (중국)
|
|
703
|
+
ZH_TW: 'ZH_TW', // 중국어 (대만)
|
|
704
|
+
JA_JP: 'JA_JP', // 일본어
|
|
705
|
+
RU_RU: 'RU_RU', // 러시아어
|
|
706
|
+
TH_TH: 'TH_TH', // 타이어
|
|
707
|
+
VI_VN: 'VI_VN', // 베트남어
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
const PaymentUIType = {
|
|
711
|
+
PAYPAL_SPB: 'PAYPAL_SPB',
|
|
699
712
|
};
|
|
700
713
|
|
|
701
714
|
// PG사
|
|
@@ -743,6 +756,7 @@ const PgProvider = {
|
|
|
743
756
|
KPN: 'PG_PROVIDER_KPN',
|
|
744
757
|
KCP_V2: 'PG_PROVIDER_KCP_V2',
|
|
745
758
|
HYPHEN: 'PG_PROVIDER_HYPHEN',
|
|
759
|
+
EXIMBAY_V2: 'PG_PROVIDER_EXIMBAY_V2',
|
|
746
760
|
};
|
|
747
761
|
const InversionPgProvider = Object.entries(PgProvider).reduce((acc, [k, v]) => (Object.assign(Object.assign({}, acc), { [v]: k })), {});
|
|
748
762
|
|
|
@@ -771,14 +785,6 @@ const WindowType = {
|
|
|
771
785
|
UI: 'UI',
|
|
772
786
|
};
|
|
773
787
|
|
|
774
|
-
const PaymentUIType = {
|
|
775
|
-
PAYPAL_SPB: 'PAYPAL_SPB',
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
const IssueBillingKeyUIType = {
|
|
779
|
-
PAYPAL_RT: 'PAYPAL_RT',
|
|
780
|
-
};
|
|
781
|
-
|
|
782
788
|
var index$1 = {
|
|
783
789
|
__proto__: null,
|
|
784
790
|
Bank: Bank,
|