@portone/browser-sdk 0.0.6 → 0.0.8
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/EasyPayProvider.d.ts +1 -0
- package/dist/v2/entity/PgProvider.d.ts +2 -4
- package/dist/v2/entity/bypass/issueBillingKey/KcpV2.d.ts +6 -0
- package/dist/v2/entity/bypass/issueBillingKey/index.d.ts +2 -0
- package/dist/v2/entity/bypass/payment/Hyphen.d.ts +3 -0
- package/dist/v2/entity/bypass/payment/KcpV2.d.ts +15 -0
- package/dist/v2/entity/bypass/payment/index.d.ts +4 -0
- package/dist/v2/exception/IdentityVerificationError.d.ts +1 -0
- package/dist/v2/exception/IssueBillingKeyAndPayError.d.ts +1 -0
- package/dist/v2/exception/IssueBillingKeyError.d.ts +1 -0
- package/dist/v2/exception/LoadIssueBillingKeyUIError.d.ts +1 -0
- package/dist/v2/exception/LoadPaymentUIError.d.ts +1 -0
- package/dist/v2/exception/ModuleError.d.ts +1 -0
- package/dist/v2/exception/PaymentError.d.ts +1 -0
- package/dist/v2/index.d.ts +1 -0
- package/dist/v2/requestPayment.d.ts +2 -0
- package/dist/v2.cjs +326 -286
- package/dist/v2.js +325 -286
- package/package.json +9 -6
|
@@ -13,5 +13,6 @@ export declare const EasyPayProvider: {
|
|
|
13
13
|
readonly PINPAY: "EASY_PAY_PROVIDER_PINPAY";
|
|
14
14
|
readonly SKPAY: "EASY_PAY_PROVIDER_SKPAY";
|
|
15
15
|
readonly TOSS_BRANDPAY: "EASY_PAY_PROVIDER_TOSS_BRANDPAY";
|
|
16
|
+
readonly HYPHEN: "EASY_PAY_PROVIDER_HYPHEN";
|
|
16
17
|
};
|
|
17
18
|
export type EasyPayProvider = typeof EasyPayProvider[keyof typeof EasyPayProvider];
|
|
@@ -5,23 +5,19 @@ export declare const PgProvider: {
|
|
|
5
5
|
readonly DANAL: "PG_PROVIDER_DANAL";
|
|
6
6
|
readonly NICE: "PG_PROVIDER_NICE";
|
|
7
7
|
readonly DANAL_TPAY: "PG_PROVIDER_DANAL_TPAY";
|
|
8
|
-
readonly JTNET: "PG_PROVIDER_JTNET";
|
|
9
8
|
readonly UPLUS: "PG_PROVIDER_UPLUS";
|
|
10
9
|
readonly NAVERPAY: "PG_PROVIDER_NAVERPAY";
|
|
11
|
-
readonly KAKAO: "PG_PROVIDER_KAKAO";
|
|
12
10
|
readonly SETTLE: "PG_PROVIDER_SETTLE";
|
|
13
11
|
readonly KCP: "PG_PROVIDER_KCP";
|
|
14
12
|
readonly MOBILIANS: "PG_PROVIDER_MOBILIANS";
|
|
15
13
|
readonly KAKAOPAY: "PG_PROVIDER_KAKAOPAY";
|
|
16
14
|
readonly NAVERCO: "PG_PROVIDER_NAVERCO";
|
|
17
|
-
readonly SYRUP: "PG_PROVIDER_SYRUP";
|
|
18
15
|
readonly KICC: "PG_PROVIDER_KICC";
|
|
19
16
|
readonly EXIMBAY: "PG_PROVIDER_EXIMBAY";
|
|
20
17
|
readonly SMILEPAY: "PG_PROVIDER_SMILEPAY";
|
|
21
18
|
readonly PAYCO: "PG_PROVIDER_PAYCO";
|
|
22
19
|
readonly KCP_BILLING: "PG_PROVIDER_KCP_BILLING";
|
|
23
20
|
readonly ALIPAY: "PG_PROVIDER_ALIPAY";
|
|
24
|
-
readonly PAYPLE: "PG_PROVIDER_PAYPLE";
|
|
25
21
|
readonly CHAI: "PG_PROVIDER_CHAI";
|
|
26
22
|
readonly BLUEWALNUT: "PG_PROVIDER_BLUEWALNUT";
|
|
27
23
|
readonly SMARTRO: "PG_PROVIDER_SMARTRO";
|
|
@@ -44,5 +40,7 @@ export declare const PgProvider: {
|
|
|
44
40
|
readonly TOSSPAY_V2: "PG_PROVIDER_TOSSPAY_V2";
|
|
45
41
|
readonly INICIS_V2: "PG_PROVIDER_INICIS_V2";
|
|
46
42
|
readonly KPN: "PG_PROVIDER_KPN";
|
|
43
|
+
readonly KCP_V2: "PG_PROVIDER_KCP_V2";
|
|
44
|
+
readonly HYPHEN: "PG_PROVIDER_HYPHEN";
|
|
47
45
|
};
|
|
48
46
|
export type PgProvider = typeof PgProvider[keyof typeof PgProvider];
|
|
@@ -4,6 +4,7 @@ import { NaverpayIssueBillingKeyBypass } from './Naverpay.js';
|
|
|
4
4
|
import { WelcomeIssueBillingKeyBypass } from './Welcome.js';
|
|
5
5
|
import { TosspayV2IssueBillingKeyBypass } from './TosspayV2.js';
|
|
6
6
|
import { InicisV2IssueBillingKeyBypass } from './InicisV2.js';
|
|
7
|
+
import { KcpV2IssueBillingKeyBypass } from './KcpV2.js';
|
|
7
8
|
export type IssueBillingKeyBypass = {
|
|
8
9
|
kakaopay?: KakaopayPaymentBypass;
|
|
9
10
|
smartro_v2?: SmartroV2IssueBillingKeyBypass;
|
|
@@ -11,4 +12,5 @@ export type IssueBillingKeyBypass = {
|
|
|
11
12
|
welcome?: WelcomeIssueBillingKeyBypass;
|
|
12
13
|
tosspay_v2?: TosspayV2IssueBillingKeyBypass;
|
|
13
14
|
inicis_v2?: InicisV2IssueBillingKeyBypass;
|
|
15
|
+
kcp_v2?: KcpV2IssueBillingKeyBypass;
|
|
14
16
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 정규화가 어려운 KCP V2 bypass 파라미터
|
|
3
|
+
* 가맹점으로부터 전달 된 값을 PG사로 그대로 전달
|
|
4
|
+
*/
|
|
5
|
+
export type KcpV2Bypass = {
|
|
6
|
+
skin_indx?: string;
|
|
7
|
+
site_logo?: string;
|
|
8
|
+
shop_user_id: string;
|
|
9
|
+
kcp_pay_title?: string;
|
|
10
|
+
complex_pnt_yn?: 'Y' | 'N';
|
|
11
|
+
pt_memcorp_cd?: string;
|
|
12
|
+
disp_tax_yn?: 'Y' | 'N' | 'R' | 'E';
|
|
13
|
+
site_name?: string;
|
|
14
|
+
deli_term?: string;
|
|
15
|
+
};
|
|
@@ -9,6 +9,8 @@ import { WelcomePaymentBypass } from './Welcome.js';
|
|
|
9
9
|
import { TosspayV2PaymentBypass } from './TosspayV2.js';
|
|
10
10
|
import { InicisV2Bypass } from './InicisV2.js';
|
|
11
11
|
import { KpnBypass } from './Kpn.js';
|
|
12
|
+
import { KcpV2Bypass } from './KcpV2.js';
|
|
13
|
+
import { HyphenBypass } from './Hyphen.js';
|
|
12
14
|
export type PaymentBypass = {
|
|
13
15
|
tosspayments?: TosspaymentsPaymentBypass;
|
|
14
16
|
ksnet?: KsnetPaymentBypass;
|
|
@@ -21,4 +23,6 @@ export type PaymentBypass = {
|
|
|
21
23
|
tosspay_v2?: TosspayV2PaymentBypass;
|
|
22
24
|
inicis_v2?: InicisV2Bypass;
|
|
23
25
|
kpn?: KpnBypass;
|
|
26
|
+
kcp_v2?: KcpV2Bypass;
|
|
27
|
+
hyphen?: HyphenBypass;
|
|
24
28
|
};
|
|
@@ -5,6 +5,7 @@ import { TxServiceIdentityVerificationErrorCode } from './TxServiceIdentityVerif
|
|
|
5
5
|
export type IdentityVerificationErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIdentityVerificationErrorCode;
|
|
6
6
|
export declare function isIdentityVerificationError(error: unknown): error is IdentityVerificationError;
|
|
7
7
|
export declare class IdentityVerificationError extends Error implements PortOneError {
|
|
8
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
8
9
|
__portOneErrorType: string;
|
|
9
10
|
transactionType: "IDENTITY_VERIFICATION";
|
|
10
11
|
code: IdentityVerificationErrorCode;
|
|
@@ -6,6 +6,7 @@ import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
|
6
6
|
export type IssueBillingKeyAndPayErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode | TxServicePayErrorCode;
|
|
7
7
|
export declare function isIssueBillingKeyAndPayError(error: unknown): error is IssueBillingKeyAndPayError;
|
|
8
8
|
export declare class IssueBillingKeyAndPayError extends Error implements PortOneError {
|
|
9
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
9
10
|
__portOneErrorType: string;
|
|
10
11
|
transactionType: "ISSUE_BILLING_KEY_AND_PAY";
|
|
11
12
|
txId?: string;
|
|
@@ -5,6 +5,7 @@ import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
|
5
5
|
export type IssueBillingKeyErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
|
|
6
6
|
export declare function isIssueBillingKeyError(error: unknown): error is IssueBillingKeyError;
|
|
7
7
|
export declare class IssueBillingKeyError extends Error implements PortOneError {
|
|
8
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
8
9
|
__portOneErrorType: string;
|
|
9
10
|
transactionType: "ISSUE_BILLING_KEY";
|
|
10
11
|
code: IssueBillingKeyErrorCode;
|
|
@@ -5,6 +5,7 @@ import { TxServiceIssueErrorCode } from './TxServiceIssueErrorCode.js';
|
|
|
5
5
|
export type LoadIssueBillingKeyUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServiceIssueErrorCode;
|
|
6
6
|
export declare function isLoadIssueBillingKeyUIError(error: unknown): error is LoadIssueBillingKeyUIError;
|
|
7
7
|
export declare class LoadIssueBillingKeyUIError extends Error implements PortOneError {
|
|
8
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
8
9
|
__portOneErrorType: string;
|
|
9
10
|
transactionType: "ISSUE_BILLING_KEY";
|
|
10
11
|
code: LoadIssueBillingKeyUIErrorCode;
|
|
@@ -5,6 +5,7 @@ import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
|
5
5
|
export type LoadPaymentUIErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
|
|
6
6
|
export declare function isLoadPaymentUIError(error: unknown): error is LoadPaymentUIError;
|
|
7
7
|
export declare class LoadPaymentUIError extends Error implements PortOneError {
|
|
8
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
8
9
|
__portOneErrorType: string;
|
|
9
10
|
transactionType: "PAYMENT";
|
|
10
11
|
code: LoadPaymentUIErrorCode;
|
|
@@ -4,6 +4,7 @@ import { PortOneError } from './index.js';
|
|
|
4
4
|
export type ModuleErrorCode = CheckoutServiceErrorCode | GrpcErrorCode;
|
|
5
5
|
export declare function isModuleError(error: unknown): error is ModuleError;
|
|
6
6
|
export declare class ModuleError extends Error implements PortOneError {
|
|
7
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
7
8
|
__portOneErrorType: string;
|
|
8
9
|
code: ModuleErrorCode;
|
|
9
10
|
message: string;
|
|
@@ -5,6 +5,7 @@ import { TxServicePayErrorCode } from './TxServicePayErrorCode.js';
|
|
|
5
5
|
export type PaymentErrorCode = CheckoutServiceErrorCode | GrpcErrorCode | TxServicePayErrorCode;
|
|
6
6
|
export declare function isPaymentError(error: unknown): error is PaymentError;
|
|
7
7
|
export declare class PaymentError extends Error implements PortOneError {
|
|
8
|
+
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
8
9
|
__portOneErrorType: string;
|
|
9
10
|
transactionType: "PAYMENT";
|
|
10
11
|
code: PaymentErrorCode;
|
package/dist/v2/index.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export { loadIssueBillingKeyUI, type LoadIssueBillingKeyUIRequest, } from './loa
|
|
|
26
26
|
export { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js';
|
|
27
27
|
export { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js';
|
|
28
28
|
export * as Entity from './entity/index.js';
|
|
29
|
+
export * as errors from './exception/index.js';
|
|
29
30
|
export * from './exception/index.js';
|
|
30
31
|
export default PortOne;
|
|
@@ -9,6 +9,7 @@ export type PaymentRequest = {
|
|
|
9
9
|
channelKey?: string;
|
|
10
10
|
pgProvider?: Entity.PgProvider;
|
|
11
11
|
isTestChannel?: boolean;
|
|
12
|
+
channelGroupId?: string;
|
|
12
13
|
taxFreeAmount?: number;
|
|
13
14
|
vatAmount?: number;
|
|
14
15
|
customer?: Entity.Customer;
|
|
@@ -63,6 +64,7 @@ type VirtualAccount = {
|
|
|
63
64
|
dueDate: string;
|
|
64
65
|
}>;
|
|
65
66
|
bankCode?: Entity.Bank;
|
|
67
|
+
availableBanks?: Entity.Bank[];
|
|
66
68
|
fixedOption?: OneOfType<{
|
|
67
69
|
pgAccountId: string;
|
|
68
70
|
accountNumber: string;
|