@portone/browser-sdk 0.0.2 → 0.0.4
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/{types/utils.d.ts → utils.d.ts} +4 -1
- package/dist/v2/entity/BillingKeyAndPayMethod.d.ts +4 -0
- package/dist/{types/v2 → v2}/entity/Currency.d.ts +0 -1
- package/dist/v2/entity/EasyPayPaymentMethod.d.ts +7 -0
- package/dist/{types/v2 → v2}/entity/EasyPayProvider.d.ts +1 -4
- package/dist/{types/v2 → v2}/entity/GiftCertificateType.d.ts +1 -0
- package/dist/v2/entity/IssueBillingKeyUIType.d.ts +4 -0
- package/dist/v2/entity/LoadableUIType.d.ts +3 -0
- package/dist/{types/v2 → v2}/entity/OfferPeriod.d.ts +11 -0
- package/dist/v2/entity/PayMethod.d.ts +1 -0
- package/dist/v2/entity/PaymentUIType.d.ts +4 -0
- package/dist/{types/v2 → v2}/entity/PgProvider.d.ts +2 -0
- package/dist/{types/v2 → v2}/entity/TransactionType.d.ts +2 -0
- package/dist/v2/entity/bypass/issueBillingKey/TosspayV2.d.ts +7 -0
- package/dist/v2/entity/bypass/issueBillingKey/Welcome.d.ts +6 -0
- package/dist/{types/v2 → v2}/entity/bypass/issueBillingKey/index.d.ts +4 -2
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/Welcome.d.ts +55 -0
- package/dist/v2/entity/bypass/issueBillingKeyAndPay/index.d.ts +4 -0
- package/dist/{types/v2/entity/bypass/issueBillingKey → v2/entity/bypass/loadIssueBillingKeyUI}/PaypalV2.d.ts +1 -1
- package/dist/v2/entity/bypass/loadIssueBillingKeyUI/index.d.ts +4 -0
- package/dist/{types/v2/entity/bypass/payment → v2/entity/bypass/loadPaymentUI}/PaypalV2.d.ts +1 -1
- package/dist/v2/entity/bypass/loadPaymentUI/index.d.ts +4 -0
- package/dist/{types/v2/entity/bypass/payment/TosspaymentsBrandpay.d.ts → v2/entity/bypass/payment/TossBrandpay.d.ts} +22 -3
- package/dist/v2/entity/bypass/payment/TosspayV2.d.ts +17 -0
- package/dist/v2/entity/bypass/payment/Welcome.d.ts +108 -0
- package/dist/{types/v2 → v2}/entity/bypass/payment/index.d.ts +6 -4
- package/dist/{types/v2 → v2}/entity/index.d.ts +8 -0
- package/dist/v2/exception/CheckoutServiceErrorCode.d.ts +1 -0
- package/dist/v2/exception/IssueBillingKeyAndPayError.d.ts +24 -0
- package/dist/v2/exception/LoadIssueBillingKeyUIError.d.ts +16 -0
- package/dist/v2/exception/LoadPaymentUIError.d.ts +16 -0
- package/dist/v2/exception/ModuleError.d.ts +14 -0
- package/dist/{types/v2 → v2}/exception/index.d.ts +4 -0
- package/dist/v2/index.d.ts +30 -0
- package/dist/v2/loadIssueBillingKeyUI.d.ts +27 -0
- package/dist/v2/loadPaymentUI.d.ts +36 -0
- package/dist/v2/loader.d.ts +31 -0
- package/dist/v2/requestIdentityVerification.d.ts +25 -0
- package/dist/{types/v2/request/IssueBillingKey.d.ts → v2/requestIssueBillingKey.d.ts} +22 -9
- package/dist/v2/requestIssueBillingKeyAndPay.d.ts +51 -0
- package/dist/{types/v2/request/Payment.d.ts → v2/requestPayment.d.ts} +28 -10
- package/dist/v2/updateLoadIssueBillingKeyUIRequest.d.ts +2 -0
- package/dist/v2/updateLoadPaymentUIRequest.d.ts +2 -0
- package/dist/{chunk-f7332846.js → v2.cjs} +264 -7
- package/dist/v2.js +861 -18
- package/package.json +8 -26
- package/dist/chunk-4ed6f045.js +0 -66
- package/dist/chunk-ced8f127.js +0 -13
- package/dist/loader.d.ts +0 -14
- package/dist/types/v2/entity/PayMethod.d.ts +0 -1
- package/dist/types/v2/entity/index.js +0 -2
- package/dist/types/v2/exception/CheckoutServiceErrorCode.d.ts +0 -1
- package/dist/types/v2/exception/index.js +0 -2
- package/dist/types/v2/index.d.ts +0 -5
- package/dist/types/v2/request/IdentityVerification.d.ts +0 -14
- package/dist/types/v2/request/index.d.ts +0 -5
- package/dist/types/v2/response/IdentityVerification.d.ts +0 -13
- package/dist/types/v2/response/IssueBillingKey.d.ts +0 -12
- package/dist/types/v2/response/Payment.d.ts +0 -13
- package/dist/types/v2/response/index.d.ts +0 -5
- package/dist/v2-entity.js +0 -2
- package/dist/v2-exception.js +0 -2
- package/dist/v2.d.ts +0 -11
- package/dist/{types/v2 → v2}/entity/Address.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/Bank.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/BillingKeyMethod.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/CardCompany.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/Carrier.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/CashReceiptType.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/Country.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/Customer.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/FreeInstallmentPlan.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/Gender.d.ts +0 -0
- package/dist/{types/v2 → v2}/entity/Installment.d.ts +1 -1
- /package/dist/{types/v2 → v2}/entity/Locale.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/Product.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/ProductType.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/StoreDetails.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/WindowType.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/identityVerification/Danal.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/identityVerification/index.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/issueBillingKey/Naverpay.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/issueBillingKey/SmartroV2.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/payment/Kakaopay.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/payment/Ksnet.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/payment/Naverpay.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/payment/NiceV2.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/payment/SmartroV2.d.ts +0 -0
- /package/dist/{types/v2 → v2}/entity/bypass/payment/Tosspayments.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/GrpcErrorCode.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/IdentityVerificationError.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/IssueBillingKeyError.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/PaymentError.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/TxServiceIdentityVerificationErrorCode.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/TxServiceIssueErrorCode.d.ts +0 -0
- /package/dist/{types/v2 → v2}/exception/TxServicePayErrorCode.d.ts +0 -0
|
@@ -15,4 +15,7 @@ type OneOfByKey<Obj> = {
|
|
|
15
15
|
[key in keyof Obj]: OneOnly<Obj, key>;
|
|
16
16
|
};
|
|
17
17
|
type OneOfType<Obj> = ValueOf<OneOfByKey<Obj>>;
|
|
18
|
-
|
|
18
|
+
type Prettify<T> = {
|
|
19
|
+
[K in keyof T]: T[K];
|
|
20
|
+
} & {};
|
|
21
|
+
export { CapsToCamel, OneOfType, Prettify };
|
|
@@ -104,7 +104,6 @@ export declare const Currency: {
|
|
|
104
104
|
readonly MWK: "CURRENCY_MWK";
|
|
105
105
|
readonly MXN: "CURRENCY_MXN";
|
|
106
106
|
readonly MXV: "CURRENCY_MXV";
|
|
107
|
-
readonly MYR: "CURRENCY_MYR";
|
|
108
107
|
readonly MZN: "CURRENCY_MZN";
|
|
109
108
|
readonly NAD: "CURRENCY_NAD";
|
|
110
109
|
readonly NGN: "CURRENCY_NGN";
|
|
@@ -12,9 +12,6 @@ export declare const EasyPayProvider: {
|
|
|
12
12
|
readonly APPLEPAY: "EASY_PAY_PROVIDER_APPLEPAY";
|
|
13
13
|
readonly PINPAY: "EASY_PAY_PROVIDER_PINPAY";
|
|
14
14
|
readonly SKPAY: "EASY_PAY_PROVIDER_SKPAY";
|
|
15
|
-
readonly
|
|
16
|
-
readonly NAVERPAY_POINT: "EASY_PAY_PROVIDER_NAVERPAY_POINT";
|
|
17
|
-
readonly SSGPAY_POINT: "EASY_PAY_PROVIDER_SSGPAY_POINT";
|
|
18
|
-
readonly SSGPAY_BANK: "EASY_PAY_PROVIDER_SSGPAY_BANK";
|
|
15
|
+
readonly TOSS_BRANDPAY: "EASY_PAY_PROVIDER_TOSS_BRANDPAY";
|
|
19
16
|
};
|
|
20
17
|
export type EasyPayProvider = typeof EasyPayProvider[keyof typeof EasyPayProvider];
|
|
@@ -3,5 +3,6 @@ export declare const GiftCertificateType: {
|
|
|
3
3
|
readonly SMART_MUNSANG: "GIFT_CERTIFICATE_TYPE_SMART_MUNSANG";
|
|
4
4
|
readonly CULTURELAND: "GIFT_CERTIFICATE_TYPE_CULTURELAND";
|
|
5
5
|
readonly HAPPYMONEY: "GIFT_CERTIFICATE_TYPE_HAPPYMONEY";
|
|
6
|
+
readonly CULTURE_GIFT: "GIFT_CERTIFICATE_TYPE_CULTURE_GIFT";
|
|
6
7
|
};
|
|
7
8
|
export type GiftCertificateType = typeof GiftCertificateType[keyof typeof GiftCertificateType];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 제공 기간
|
|
3
3
|
* - range: 제공 기간 범위
|
|
4
|
+
* - interval: 제공 기간 주기
|
|
4
5
|
*
|
|
5
6
|
* 예1) 2023년 1월 1일 00시 00분 00초(KST) ~
|
|
6
7
|
* range: {
|
|
@@ -17,6 +18,15 @@
|
|
|
17
18
|
* from: '2023-12-31T23:59:59+09:00'
|
|
18
19
|
* to: '2023-01-01T00:00:00+09:00'
|
|
19
20
|
* }
|
|
21
|
+
*
|
|
22
|
+
* 예4) 30일 주기
|
|
23
|
+
* interval: '30d'
|
|
24
|
+
*
|
|
25
|
+
* 예5) 6개월 주기
|
|
26
|
+
* interval: '6m'
|
|
27
|
+
*
|
|
28
|
+
* 예6) 1년 주기
|
|
29
|
+
* interval: '1y'
|
|
20
30
|
*/
|
|
21
31
|
export type OfferPeriod = {
|
|
22
32
|
range?: {
|
|
@@ -24,4 +34,5 @@ export type OfferPeriod = {
|
|
|
24
34
|
} | {
|
|
25
35
|
to: string;
|
|
26
36
|
};
|
|
37
|
+
interval?: `${number}d` | `${number}m` | `${number}y`;
|
|
27
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PayMethod = 'CARD' | 'VIRTUAL_ACCOUNT' | 'TRANSFER' | 'MOBILE' | 'GIFT_CERTIFICATE' | 'EASY_PAY' | 'PAYPAL' | 'ALIPAY';
|
|
@@ -40,5 +40,7 @@ export declare const PgProvider: {
|
|
|
40
40
|
readonly SMARTRO_V2: "PG_PROVIDER_SMARTRO_V2";
|
|
41
41
|
readonly NICE_V2: "PG_PROVIDER_NICE_V2";
|
|
42
42
|
readonly TOSS_BRANDPAY: "PG_PROVIDER_TOSS_BRANDPAY";
|
|
43
|
+
readonly WELCOME: "PG_PROVIDER_WELCOME";
|
|
44
|
+
readonly TOSSPAY_V2: "PG_PROVIDER_TOSSPAY_V2";
|
|
43
45
|
};
|
|
44
46
|
export type PgProvider = typeof PgProvider[keyof typeof PgProvider];
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* - PAYMENT: 결제
|
|
4
4
|
* - ISSUE_BILLING_KEY: 빌링키 발급
|
|
5
5
|
* - IDENTITY_VERIFICATION: 본인 인증
|
|
6
|
+
* - ISSUE_BILLING_KEY_AND_PAY: 빌링키 발급과 동시에 결제
|
|
6
7
|
*/
|
|
7
8
|
export declare const TransactionType: {
|
|
8
9
|
readonly PAYMENT: "PAYMENT";
|
|
9
10
|
readonly ISSUE_BILLING_KEY: "ISSUE_BILLING_KEY";
|
|
10
11
|
readonly IDENTITY_VERIFICATION: "IDENTITY_VERIFICATION";
|
|
12
|
+
readonly ISSUE_BILLING_KEY_AND_PAY: "ISSUE_BILLING_KEY_AND_PAY";
|
|
11
13
|
};
|
|
12
14
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { KakaopayPaymentBypass } from '../payment/Kakaopay.js';
|
|
2
2
|
import { SmartroV2IssueBillingKeyBypass } from './SmartroV2.js';
|
|
3
3
|
import { NaverpayIssueBillingKeyBypass } from './Naverpay.js';
|
|
4
|
-
import {
|
|
4
|
+
import { WelcomeIssueBillingKeyBypass } from './Welcome.js';
|
|
5
|
+
import { TosspayV2IssueBillingKeyBypass } from './TosspayV2.js';
|
|
5
6
|
export type IssueBillingKeyBypass = {
|
|
6
7
|
kakaopay?: KakaopayPaymentBypass;
|
|
7
8
|
smartro_v2?: SmartroV2IssueBillingKeyBypass;
|
|
8
9
|
naverpay?: NaverpayIssueBillingKeyBypass;
|
|
9
|
-
|
|
10
|
+
welcome?: WelcomeIssueBillingKeyBypass;
|
|
11
|
+
tosspay_v2?: TosspayV2IssueBillingKeyBypass;
|
|
10
12
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
type WelcomeCarrier = 'SKT' | 'KTF' | 'LGT' | 'MVNO' | 'CJH' | 'KCT' | 'SKL';
|
|
2
|
+
export type WelcomeIssueBillingKeyAndPayBypass = WelcomeIssueBillingKeyAndPayBypassOnPc & WelcomeIssueBillingKeyAndPayBypassOnMobile;
|
|
3
|
+
type WelcomeIssueBillingKeyAndPayBypassOnPc = {
|
|
4
|
+
acceptmethod?: AcceptMethodKey[];
|
|
5
|
+
};
|
|
6
|
+
type AcceptMethodKey =
|
|
7
|
+
/**
|
|
8
|
+
* 휴대폰 소액결제시 기본 선택 되어있는 통신사
|
|
9
|
+
* 기본) 기본 선택되어있는 통신사 없음
|
|
10
|
+
* 예시) KT 기본 선택 → hppdefaultcorp(KT) 전달
|
|
11
|
+
*
|
|
12
|
+
* - SKT: SKT
|
|
13
|
+
* - KT: KTF
|
|
14
|
+
* - LG 유플러스: LGT
|
|
15
|
+
* - 알뜰폰 전체: MVNO
|
|
16
|
+
* - 알뜰폰 CJ 헬로 모바일: CJH
|
|
17
|
+
* - 알뜰폰 티플러스: KCT
|
|
18
|
+
* - 알뜰폰 SK 세븐 모바일: SKL
|
|
19
|
+
*/
|
|
20
|
+
`hppdefaultcorp(${WelcomeCarrier})`
|
|
21
|
+
/**
|
|
22
|
+
* 휴대폰 소액결제창에 자동 입력되는 buyer_tel값을 수정할 수 있는지 여부
|
|
23
|
+
* 기본) 수정 가능
|
|
24
|
+
*
|
|
25
|
+
* - Y: 수정 불가능
|
|
26
|
+
* - N: 수정 가능
|
|
27
|
+
*/
|
|
28
|
+
| `hppnofix(${'Y' | 'N'})`;
|
|
29
|
+
type WelcomeIssueBillingKeyAndPayBypassOnMobile = {
|
|
30
|
+
P_RESERVED?: PReservedKey[];
|
|
31
|
+
};
|
|
32
|
+
type PReservedKey =
|
|
33
|
+
/**
|
|
34
|
+
* 휴대폰 소액결제시 기본 선택 되어있는 통신사
|
|
35
|
+
* 기본) 기본 선택 되어있는 통신사 없음
|
|
36
|
+
* 예시) KT 기본 선택 → hpp_default_corp=KT 전달
|
|
37
|
+
*
|
|
38
|
+
* - SKT: SKT
|
|
39
|
+
* - KT: KTF
|
|
40
|
+
* - LG 유플러스: LGT
|
|
41
|
+
* - 알뜰폰 전체: MVNO
|
|
42
|
+
* - 알뜰폰 CJ 헬로 모바일: CJH
|
|
43
|
+
* - 알뜰폰 티플러스: KCT
|
|
44
|
+
* - 알뜰폰 SK 세븐 모바일: SKL
|
|
45
|
+
*/
|
|
46
|
+
`hpp_default_corp=${WelcomeCarrier}`
|
|
47
|
+
/**
|
|
48
|
+
* 휴대폰 소액결제창에 자동 입력되는 buyer_tel값을 수정할 수 있는지 여부
|
|
49
|
+
* 기본) 수정 가능
|
|
50
|
+
*
|
|
51
|
+
* - Y: 수정 불가능
|
|
52
|
+
* - N: 수정 가능
|
|
53
|
+
*/
|
|
54
|
+
| `hpp_nofix=${'Y' | 'N'}`;
|
|
55
|
+
export {};
|
|
@@ -2,11 +2,19 @@
|
|
|
2
2
|
* 정규화가 어려운 토스페이먼츠 브랜드페이 bypass 파라미터
|
|
3
3
|
* 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type TossBrandpayPaymentBypass = {
|
|
6
|
+
brandpayOptions?: {
|
|
7
|
+
ui?: BrandpayUi;
|
|
8
|
+
};
|
|
9
|
+
widgetOptions?: {
|
|
10
|
+
methodType?: '카드' | '계좌';
|
|
11
|
+
methodId?: string;
|
|
12
|
+
ui?: BrandpayWidgetUi;
|
|
13
|
+
};
|
|
6
14
|
discountCode?: string;
|
|
7
|
-
|
|
15
|
+
methodId?: string;
|
|
8
16
|
};
|
|
9
|
-
type
|
|
17
|
+
type BrandpayUi = {
|
|
10
18
|
highlightColor?: string;
|
|
11
19
|
/**
|
|
12
20
|
* 버튼 스타일
|
|
@@ -24,4 +32,15 @@ type NavigationBar = {
|
|
|
24
32
|
visible?: boolean;
|
|
25
33
|
paddingTop?: number;
|
|
26
34
|
};
|
|
35
|
+
type BrandpayWidgetUi = {
|
|
36
|
+
promotionSection?: {
|
|
37
|
+
summary?: {
|
|
38
|
+
visible?: boolean;
|
|
39
|
+
};
|
|
40
|
+
description?: {
|
|
41
|
+
visible?: boolean;
|
|
42
|
+
defaultOpen?: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
27
46
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 정규화가 어려운 토스페이 bypass 파라미터
|
|
3
|
+
* 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
|
|
4
|
+
*/
|
|
5
|
+
export type TosspayV2PaymentBypass = {
|
|
6
|
+
/**
|
|
7
|
+
* 결제 만료 기한 (yyyy-MM-dd HH:mm:ss)
|
|
8
|
+
*/
|
|
9
|
+
expiredTime?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 현금영수증 발급타입
|
|
12
|
+
* CULTURE : 문화비
|
|
13
|
+
* GENERAL : 일반 (default)
|
|
14
|
+
* PUBLIC_TP 교통비
|
|
15
|
+
*/
|
|
16
|
+
cashReceiptTradeOption?: 'CULTURE' | 'GENERAL' | 'PUBLIC_TP';
|
|
17
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
type WelcomeCarrier = 'SKT' | 'KTF' | 'LGT' | 'MVNO' | 'CJH' | 'KCT' | 'SKL';
|
|
2
|
+
/**
|
|
3
|
+
* 정규화가 어려운 웰컴페이먼츠 bypass 파라미터
|
|
4
|
+
* 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
|
|
5
|
+
*/
|
|
6
|
+
export type WelcomePaymentBypass = WelcomePaymentBypassOnPc & WelcomePaymentBypassOnMobile;
|
|
7
|
+
type WelcomePaymentBypassOnPc = {
|
|
8
|
+
logo_url?: string;
|
|
9
|
+
logo_2nd?: string;
|
|
10
|
+
acceptmethod?: AcceptMethodKey[];
|
|
11
|
+
};
|
|
12
|
+
type AcceptMethodKey =
|
|
13
|
+
/**
|
|
14
|
+
* 결제 창의 배경 색상
|
|
15
|
+
* 기본) #c1272c
|
|
16
|
+
* 예시) SKIN(#fc6b2d)
|
|
17
|
+
*/
|
|
18
|
+
`SKIN(${string})` | 'below1000'
|
|
19
|
+
/**
|
|
20
|
+
* 카드 결제창 내 렌더링 될 간편 결제 리스트
|
|
21
|
+
* 예시) 카카오페이, 엘페이, 페이코만 렌더링 → onlyeasypaycode(kakaopay:lpay:payco) 전달
|
|
22
|
+
*
|
|
23
|
+
* - 카카오페이: kakaopay
|
|
24
|
+
* - 엘페이: lpay
|
|
25
|
+
* - 페이코: payco
|
|
26
|
+
* - 토스페이: tosspay
|
|
27
|
+
*/
|
|
28
|
+
| `onlyeasypaycode(${string})`
|
|
29
|
+
/**
|
|
30
|
+
* 부분 무이자 할부 옵션
|
|
31
|
+
* 형식) SLIMQUOTA(코드-개월:개월^코드-개월:개월)
|
|
32
|
+
*/
|
|
33
|
+
| `SLIMQUOTA(${string})` | 'paypopup'
|
|
34
|
+
/**
|
|
35
|
+
* 휴대폰 소액결제시 기본 선택 되어있는 통신사
|
|
36
|
+
* 기본) 기본 선택되어있는 통신사 없음
|
|
37
|
+
* 예시) KT 기본 선택 → hppdefaultcorp(KT) 전달
|
|
38
|
+
*
|
|
39
|
+
* - SKT: SKT
|
|
40
|
+
* - KT: KTF
|
|
41
|
+
* - LG 유플러스: LGT
|
|
42
|
+
* - 알뜰폰 전체: MVNO
|
|
43
|
+
* - 알뜰폰 CJ 헬로 모바일: CJH
|
|
44
|
+
* - 알뜰폰 티플러스: KCT
|
|
45
|
+
* - 알뜰폰 SK 세븐 모바일: SKL
|
|
46
|
+
*/
|
|
47
|
+
| `hppdefaultcorp(${WelcomeCarrier})`
|
|
48
|
+
/**
|
|
49
|
+
* 휴대폰 소액결제창에 자동 입력되는 buyer_tel값을 수정할 수 있는지 여부
|
|
50
|
+
* 기본) 수정 가능
|
|
51
|
+
*
|
|
52
|
+
* - Y: 수정 불가능
|
|
53
|
+
* - N: 수정 가능
|
|
54
|
+
*/
|
|
55
|
+
| `hppnofix(${'Y' | 'N'})` | 'va_ckprice';
|
|
56
|
+
type WelcomePaymentBypassOnMobile = {
|
|
57
|
+
/**
|
|
58
|
+
* 1. 신용카드 우선 선택 옵션
|
|
59
|
+
* 예) selcode=14
|
|
60
|
+
*
|
|
61
|
+
* - 해당 카드 코드에 해당하는 카드가 선택된 채로 Display
|
|
62
|
+
* - 간편결제는 불가능 (타 카드 선택 가능)
|
|
63
|
+
*
|
|
64
|
+
* 2. 선택적 표시 옵션
|
|
65
|
+
* 예1) onlycard=visa3d
|
|
66
|
+
* 예2) selcode=14:onlycard=visa3d
|
|
67
|
+
*
|
|
68
|
+
* - 안심결제(visa3d)
|
|
69
|
+
* - ISP(isp)
|
|
70
|
+
* - 간편결제(easypay) 중 선택 적 표시
|
|
71
|
+
*/
|
|
72
|
+
P_CARD_OPTION?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 카드 결제창 내 렌더링 될 간편 결제 리스트
|
|
75
|
+
* 예시) 카카오페이, 엘페이, 페이코만 렌더링 → KAKAOPAY:LPAY:PAYCO 전달
|
|
76
|
+
*
|
|
77
|
+
* - 카카오페이: KAKAOPAY
|
|
78
|
+
* - 엘페이: LPAY
|
|
79
|
+
* - 페이코: PAYCO
|
|
80
|
+
* - 토스페이: TOSSPAY
|
|
81
|
+
*/
|
|
82
|
+
P_ONLY_EASYPAYCODE?: string;
|
|
83
|
+
P_RESERVED?: PReservedKey[];
|
|
84
|
+
};
|
|
85
|
+
type PReservedKey = 'below1000=Y'
|
|
86
|
+
/**
|
|
87
|
+
* 휴대폰 소액결제시 기본 선택 되어있는 통신사
|
|
88
|
+
* 기본) 기본 선택 되어있는 통신사 없음
|
|
89
|
+
* 예시) KT 기본 선택 → hpp_default_corp=KT 전달
|
|
90
|
+
*
|
|
91
|
+
* - SKT: SKT
|
|
92
|
+
* - KT: KTF
|
|
93
|
+
* - LG 유플러스: LGT
|
|
94
|
+
* - 알뜰폰 전체: MVNO
|
|
95
|
+
* - 알뜰폰 CJ 헬로 모바일: CJH
|
|
96
|
+
* - 알뜰폰 티플러스: KCT
|
|
97
|
+
* - 알뜰폰 SK 세븐 모바일: SKL
|
|
98
|
+
*/
|
|
99
|
+
| `hpp_default_corp=${WelcomeCarrier}`
|
|
100
|
+
/**
|
|
101
|
+
* 휴대폰 소액결제창에 자동 입력되는 buyer_tel값을 수정할 수 있는지 여부
|
|
102
|
+
* 기본) 수정 가능
|
|
103
|
+
*
|
|
104
|
+
* - Y: 수정 불가능
|
|
105
|
+
* - N: 수정 가능
|
|
106
|
+
*/
|
|
107
|
+
| `hpp_nofix=${'Y' | 'N'}`;
|
|
108
|
+
export {};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { TosspaymentsPaymentBypass } from './Tosspayments.js';
|
|
2
2
|
import { KsnetPaymentBypass } from './Ksnet.js';
|
|
3
|
-
import { PaypalV2PaymentBypass } from './PaypalV2.js';
|
|
4
3
|
import { KakaopayPaymentBypass } from './Kakaopay.js';
|
|
5
4
|
import { SmartroV2PaymentBypass } from './SmartroV2.js';
|
|
6
5
|
import { NaverpayPaymentBypass } from './Naverpay.js';
|
|
7
6
|
import { NiceV2PaymentBypass } from './NiceV2.js';
|
|
8
|
-
import {
|
|
7
|
+
import { TossBrandpayPaymentBypass } from './TossBrandpay.js';
|
|
8
|
+
import { WelcomePaymentBypass } from './Welcome.js';
|
|
9
|
+
import { TosspayV2PaymentBypass } from './TosspayV2.js';
|
|
9
10
|
export type PaymentBypass = {
|
|
10
11
|
tosspayments?: TosspaymentsPaymentBypass;
|
|
11
12
|
ksnet?: KsnetPaymentBypass;
|
|
12
|
-
paypal_v2?: PaypalV2PaymentBypass;
|
|
13
13
|
kakaopay?: KakaopayPaymentBypass;
|
|
14
14
|
smartro_v2?: SmartroV2PaymentBypass;
|
|
15
15
|
naverpay?: NaverpayPaymentBypass;
|
|
16
16
|
nice_v2?: NiceV2PaymentBypass;
|
|
17
|
-
|
|
17
|
+
toss_brandpay?: TossBrandpayPaymentBypass;
|
|
18
|
+
welcome?: WelcomePaymentBypass;
|
|
19
|
+
tosspay_v2?: TosspayV2PaymentBypass;
|
|
18
20
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Bank } from './Bank.js';
|
|
2
|
+
export { BillingKeyAndPayMethod } from './BillingKeyAndPayMethod.js';
|
|
2
3
|
export { BillingKeyMethod } from './BillingKeyMethod.js';
|
|
3
4
|
export { CardCompany } from './CardCompany.js';
|
|
4
5
|
export { Carrier } from './Carrier.js';
|
|
@@ -11,9 +12,13 @@ export { Locale } from './Locale.js';
|
|
|
11
12
|
export { PgProvider } from './PgProvider.js';
|
|
12
13
|
export { TransactionType } from './TransactionType.js';
|
|
13
14
|
export { WindowType } from './WindowType.js';
|
|
15
|
+
export { LoadableUIType } from './LoadableUIType.js';
|
|
16
|
+
export { PaymentUIType } from './PaymentUIType.js';
|
|
17
|
+
export { IssueBillingKeyUIType } from './IssueBillingKeyUIType.js';
|
|
14
18
|
export type { Address } from './Address.js';
|
|
15
19
|
export type { CashReceiptType } from './CashReceiptType.js';
|
|
16
20
|
export type { Customer } from './Customer.js';
|
|
21
|
+
export type { EasyPayPaymentMethod } from './EasyPayPaymentMethod.js';
|
|
17
22
|
export type { FreeInstallmentPlan } from './FreeInstallmentPlan.js';
|
|
18
23
|
export type { Installment } from './Installment.js';
|
|
19
24
|
export type { OfferPeriod } from './OfferPeriod.js';
|
|
@@ -23,5 +28,8 @@ export type { ProductType } from './ProductType.js';
|
|
|
23
28
|
export type { StoreDetails } from './StoreDetails.js';
|
|
24
29
|
export type { WindowTypes } from './WindowType.js';
|
|
25
30
|
export type { IdentityVerificationBypass } from './bypass/identityVerification/index.js';
|
|
31
|
+
export type { IssueBillingKeyAndPayBypass } from './bypass/issueBillingKeyAndPay/index.js';
|
|
26
32
|
export type { IssueBillingKeyBypass } from './bypass/issueBillingKey/index.js';
|
|
27
33
|
export type { PaymentBypass } from './bypass/payment/index.js';
|
|
34
|
+
export type { LoadPaymentUIBypass } from './bypass/loadPaymentUI/index.js';
|
|
35
|
+
export type { LoadIssueBillingKeyUIBypass } from './bypass/loadIssueBillingKeyUI/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CheckoutServiceErrorCode = 'BadRequest' | 'ParseChannelFailed' | 'ParseIdentityVerificationPrepareResponseFailed' | 'ParseIssuePrepareResponseFailed' | 'ParsePgRawIdentityVerificationResponseFailed' | 'ParsePgRawIssueBillingKeyResponseFailed' | 'ParsePgRawResponseFailed' | 'ParsePrepareResponseFailed';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
2
|
+
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
3
|
+
import { PortOneError } from './index.js';
|
|
4
|
+
import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
5
|
+
import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
6
|
+
export type IssueBillingKeyAndPayErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode | TxServicePayErrorCode;
|
|
7
|
+
export declare function isIssueBillingKeyAndPayError(error: unknown): error is IssueBillingKeyAndPayError;
|
|
8
|
+
export declare class IssueBillingKeyAndPayError extends Error implements PortOneError {
|
|
9
|
+
__portOneErrorType: string;
|
|
10
|
+
transactionType: "ISSUE_BILLING_KEY_AND_PAY";
|
|
11
|
+
txId?: string;
|
|
12
|
+
paymentId?: string;
|
|
13
|
+
billingKey?: string;
|
|
14
|
+
code: IssueBillingKeyAndPayErrorCode;
|
|
15
|
+
message: string;
|
|
16
|
+
constructor({ txId, paymentId, billingKey, code, message, }: {
|
|
17
|
+
txId?: string;
|
|
18
|
+
paymentId?: string;
|
|
19
|
+
billingKey?: string;
|
|
20
|
+
code: IssueBillingKeyAndPayErrorCode;
|
|
21
|
+
message: string;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export default IssueBillingKeyAndPayError;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PortOneError } from './index.js';
|
|
2
|
+
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
|
+
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
|
+
import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
5
|
+
export type LoadIssueBillingKeyUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
|
|
6
|
+
export declare function isLoadIssueBillingKeyUIError(error: unknown): error is LoadIssueBillingKeyUIError;
|
|
7
|
+
export declare class LoadIssueBillingKeyUIError extends Error implements PortOneError {
|
|
8
|
+
__portOneErrorType: string;
|
|
9
|
+
transactionType: "ISSUE_BILLING_KEY";
|
|
10
|
+
code: LoadIssueBillingKeyUIErrorCode;
|
|
11
|
+
message: string;
|
|
12
|
+
constructor({ code, message, }: {
|
|
13
|
+
code: LoadIssueBillingKeyUIErrorCode;
|
|
14
|
+
message: string;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PortOneError } from './index.js';
|
|
2
|
+
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
3
|
+
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
4
|
+
import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
5
|
+
export type LoadPaymentUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
|
|
6
|
+
export declare function isLoadPaymentUIError(error: unknown): error is LoadPaymentUIError;
|
|
7
|
+
export declare class LoadPaymentUIError extends Error implements PortOneError {
|
|
8
|
+
__portOneErrorType: string;
|
|
9
|
+
transactionType: "PAYMENT";
|
|
10
|
+
code: LoadPaymentUIErrorCode;
|
|
11
|
+
message: string;
|
|
12
|
+
constructor({ code, message, }: {
|
|
13
|
+
code: LoadPaymentUIErrorCode;
|
|
14
|
+
message: string;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CheckoutServiceErrorCode } from './CheckoutServiceErrorCode.js';
|
|
2
|
+
import { GrpcErrorCode } from './GrpcErrorCode.js';
|
|
3
|
+
import { PortOneError } from './index.js';
|
|
4
|
+
export type ModuleErrorCode = CheckoutServiceErrorCode | GrpcErrorCode;
|
|
5
|
+
export declare function isModuleError(error: unknown): error is ModuleError;
|
|
6
|
+
export declare class ModuleError extends Error implements PortOneError {
|
|
7
|
+
__portOneErrorType: string;
|
|
8
|
+
code: ModuleErrorCode;
|
|
9
|
+
message: string;
|
|
10
|
+
constructor({ code, message }: {
|
|
11
|
+
code: ModuleErrorCode;
|
|
12
|
+
message: string;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -3,5 +3,9 @@ export interface PortOneError extends Error {
|
|
|
3
3
|
}
|
|
4
4
|
export declare function isPortOneError(error: unknown): error is PortOneError;
|
|
5
5
|
export * from './IdentityVerificationError.js';
|
|
6
|
+
export * from './IssueBillingKeyAndPayError.js';
|
|
6
7
|
export * from './IssueBillingKeyError.js';
|
|
8
|
+
export * from './ModuleError.js';
|
|
7
9
|
export * from './PaymentError.js';
|
|
10
|
+
export * from './LoadIssueBillingKeyUIError.js';
|
|
11
|
+
export * from './LoadPaymentUIError.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { requestIdentityVerification } from './requestIdentityVerification.js';
|
|
2
|
+
import { requestIssueBillingKeyAndPay } from './requestIssueBillingKeyAndPay.js';
|
|
3
|
+
import { requestIssueBillingKey } from './requestIssueBillingKey.js';
|
|
4
|
+
import { requestPayment } from './requestPayment.js';
|
|
5
|
+
import { loadPaymentUI } from './loadPaymentUI.js';
|
|
6
|
+
import { loadIssueBillingKeyUI } from './loadIssueBillingKeyUI.js';
|
|
7
|
+
import { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js';
|
|
8
|
+
import { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js';
|
|
9
|
+
declare const PortOne: {
|
|
10
|
+
requestIdentityVerification: typeof requestIdentityVerification;
|
|
11
|
+
requestIssueBillingKeyAndPay: typeof requestIssueBillingKeyAndPay;
|
|
12
|
+
requestIssueBillingKey: typeof requestIssueBillingKey;
|
|
13
|
+
requestPayment: typeof requestPayment;
|
|
14
|
+
loadPaymentUI: typeof loadPaymentUI;
|
|
15
|
+
loadIssueBillingKeyUI: typeof loadIssueBillingKeyUI;
|
|
16
|
+
updateLoadPaymentUIRequest: typeof updateLoadPaymentUIRequest;
|
|
17
|
+
updateLoadIssueBillingKeyUIRequest: typeof updateLoadIssueBillingKeyUIRequest;
|
|
18
|
+
};
|
|
19
|
+
export { setPortOneJsSdkUrl as __INTERNAL__setPortOneSdkUrl } from './loader.js';
|
|
20
|
+
export { requestIdentityVerification, type IdentityVerificationRequest, type IdentityVerificationResponse, } from './requestIdentityVerification.js';
|
|
21
|
+
export { requestIssueBillingKeyAndPay, type IssueBillingKeyAndPayRequest, type IssueBillingKeyAndPayResponse, } from './requestIssueBillingKeyAndPay.js';
|
|
22
|
+
export { requestIssueBillingKey, type IssueBillingKeyRequest, type IssueBillingKeyResponse, } from './requestIssueBillingKey.js';
|
|
23
|
+
export { requestPayment, type PaymentRequest, type PaymentResponse, } from './requestPayment.js';
|
|
24
|
+
export { loadPaymentUI, type LoadPaymentUIRequest } from './loadPaymentUI.js';
|
|
25
|
+
export { loadIssueBillingKeyUI, type LoadIssueBillingKeyUIRequest, } from './loadIssueBillingKeyUI.js';
|
|
26
|
+
export { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js';
|
|
27
|
+
export { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js';
|
|
28
|
+
export * as Entity from './entity/index.js';
|
|
29
|
+
export * from './exception/index.js';
|
|
30
|
+
export default PortOne;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Entity, IssueBillingKeyError, IssueBillingKeyResponse } from './index.js';
|
|
2
|
+
import { IssueBillingKeyUIType } from './entity/index.js';
|
|
3
|
+
export declare function loadIssueBillingKeyUI(request: LoadIssueBillingKeyUIRequest, callbacks: {
|
|
4
|
+
onIssueBillingKeySuccess: (response: IssueBillingKeyResponse) => void;
|
|
5
|
+
onIssueBillingKeyFail: (error: IssueBillingKeyError) => void;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export type LoadIssueBillingKeyUIRequest = {
|
|
8
|
+
uiType: IssueBillingKeyUIType;
|
|
9
|
+
displayAmount?: number;
|
|
10
|
+
currency?: Entity.Currency;
|
|
11
|
+
storeId: string;
|
|
12
|
+
channelKey: string;
|
|
13
|
+
pgProvider?: Entity.PgProvider;
|
|
14
|
+
isTestChannel?: boolean;
|
|
15
|
+
billingKeyMethod: Entity.BillingKeyMethod;
|
|
16
|
+
issueName?: string;
|
|
17
|
+
issueId?: string;
|
|
18
|
+
billingKey?: string;
|
|
19
|
+
customer?: Entity.Customer;
|
|
20
|
+
redirectUrl?: string;
|
|
21
|
+
locale?: Entity.Locale;
|
|
22
|
+
customData?: Record<string, any>;
|
|
23
|
+
appScheme?: string;
|
|
24
|
+
noticeUrls?: string[];
|
|
25
|
+
productType?: Entity.ProductType;
|
|
26
|
+
bypass?: Entity.LoadIssueBillingKeyUIBypass;
|
|
27
|
+
};
|