@portone/browser-sdk
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -18,2 +18,5 @@ /** | ||
type OneOfType<Obj> = ValueOf<OneOfByKey<Obj>>; | ||
export { CapsToCamel, OneOfType }; | ||
type Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
export { CapsToCamel, OneOfType, Prettify }; |
111
dist/v2.js
var _a; | ||
let promise = null; | ||
const portone = { | ||
jsSdkUrl: (_a = undefined) !== null && _a !== void 0 ? _a : 'https://cdn.portone.io/v2/browser-sdk.js', | ||
jsSdkUrl: (_a = '/v2/browser-sdk.js') !== null && _a !== void 0 ? _a : 'https://cdn.portone.io/v2/browser-sdk.js', | ||
}; | ||
@@ -51,6 +51,10 @@ function findScript() { | ||
function requestPayment(request) { | ||
return loadScript().then((sdk) => sdk.requestPayment(request)); | ||
function requestIdentityVerification(request) { | ||
return loadScript().then((sdk) => sdk.requestIdentityVerification(request)); | ||
} | ||
function requestIssueBillingKeyAndPay(request) { | ||
return loadScript().then((sdk) => sdk.requestIssueBillingKeyAndPay(request)); | ||
} | ||
function requestIssueBillingKey(request) { | ||
@@ -60,6 +64,22 @@ return loadScript().then((sdk) => sdk.requestIssueBillingKey(request)); | ||
function requestIdentityVerification(request) { | ||
return loadScript().then((sdk) => sdk.requestIdentityVerification(request)); | ||
function requestPayment(request) { | ||
return loadScript().then((sdk) => sdk.requestPayment(request)); | ||
} | ||
function loadPaymentUI(request, callbacks) { | ||
return loadScript().then((sdk) => sdk.loadPaymentUI(request, callbacks)); | ||
} | ||
function loadIssueBillingKeyUI(request, callbacks) { | ||
return loadScript().then((sdk) => sdk.loadIssueBillingKeyUI(request, callbacks)); | ||
} | ||
function updateLoadPaymentUIRequest(request) { | ||
return loadScript().then((sdk) => sdk.updateLoadPaymentUIRequest(request)); | ||
} | ||
function updateLoadIssueBillingKeyUIRequest(request) { | ||
return loadScript().then((sdk) => sdk.updateLoadIssueBillingKeyUIRequest(request)); | ||
} | ||
// 계좌이체, 가상계좌 발급시 사용되는 은행 코드 | ||
@@ -145,2 +165,7 @@ const Bank = { | ||
// 빌링키 발급 및 결제 수단 | ||
const BillingKeyAndPayMethod = { | ||
MOBILE: 'MOBILE', // 휴대폰 | ||
}; | ||
// 빌링키 발급 수단 | ||
@@ -559,3 +584,2 @@ const BillingKeyMethod = { | ||
MXV: 'CURRENCY_MXV', | ||
MYR: 'CURRENCY_MYR', | ||
MZN: 'CURRENCY_MZN', | ||
@@ -653,6 +677,2 @@ NAD: 'CURRENCY_NAD', | ||
SKPAY: 'EASY_PAY_PROVIDER_SKPAY', | ||
NAVERPAY_CARD: 'EASY_PAY_PROVIDER_NAVERPAY_CARD', | ||
NAVERPAY_POINT: 'EASY_PAY_PROVIDER_NAVERPAY_POINT', | ||
SSGPAY_POINT: 'EASY_PAY_PROVIDER_SSGPAY_POINT', | ||
SSGPAY_BANK: 'EASY_PAY_PROVIDER_SSGPAY_BANK', | ||
TOSS_BRANDPAY: 'EASY_PAY_PROVIDER_TOSS_BRANDPAY', | ||
@@ -674,2 +694,3 @@ }; | ||
HAPPYMONEY: 'GIFT_CERTIFICATE_TYPE_HAPPYMONEY', | ||
CULTURE_GIFT: 'GIFT_CERTIFICATE_TYPE_CULTURE_GIFT', | ||
}; | ||
@@ -727,2 +748,4 @@ | ||
TOSS_BRANDPAY: 'PG_PROVIDER_TOSS_BRANDPAY', | ||
WELCOME: 'PG_PROVIDER_WELCOME', | ||
TOSSPAY_V2: 'PG_PROVIDER_TOSSPAY_V2', | ||
}; | ||
@@ -735,2 +758,3 @@ | ||
* - IDENTITY_VERIFICATION: 본인 인증 | ||
* - ISSUE_BILLING_KEY_AND_PAY: 빌링키 발급과 동시에 결제 | ||
*/ | ||
@@ -741,2 +765,3 @@ const TransactionType = { | ||
IDENTITY_VERIFICATION: 'IDENTITY_VERIFICATION', | ||
ISSUE_BILLING_KEY_AND_PAY: 'ISSUE_BILLING_KEY_AND_PAY', | ||
}; | ||
@@ -755,5 +780,14 @@ | ||
const PaymentUIType = { | ||
PAYPAL_SPB: 'PAYPAL_SPB', | ||
}; | ||
const IssueBillingKeyUIType = { | ||
PAYPAL_RT: 'PAYPAL_RT', | ||
}; | ||
var index = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
Bank: Bank, | ||
BillingKeyAndPayMethod: BillingKeyAndPayMethod, | ||
BillingKeyMethod: BillingKeyMethod, | ||
@@ -767,3 +801,5 @@ CardCompany: CardCompany, | ||
GiftCertificateType: GiftCertificateType, | ||
IssueBillingKeyUIType: IssueBillingKeyUIType, | ||
Locale: Locale, | ||
PaymentUIType: PaymentUIType, | ||
PgProvider: PgProvider, | ||
@@ -790,2 +826,19 @@ TransactionType: TransactionType, | ||
function isIssueBillingKeyAndPayError(error) { | ||
return (isPortOneError(error) && | ||
error.__portOneErrorType === 'IssueBillingKeyAndPayError'); | ||
} | ||
class IssueBillingKeyAndPayError extends Error { | ||
constructor({ txId, paymentId, billingKey, code, message, }) { | ||
super(message); | ||
this.__portOneErrorType = 'IssueBillingKeyAndPayError'; | ||
this.transactionType = TransactionType.ISSUE_BILLING_KEY_AND_PAY; | ||
this.txId = txId; | ||
this.paymentId = paymentId; | ||
this.billingKey = billingKey; | ||
this.code = code; | ||
this.message = message; | ||
} | ||
} | ||
function isIssueBillingKeyError(error) { | ||
@@ -832,2 +885,29 @@ return (isPortOneError(error) && error.__portOneErrorType === 'IssueBillingKeyError'); | ||
function isLoadIssueBillingKeyUIError(error) { | ||
return (isPortOneError(error) && | ||
error.__portOneErrorType === 'LoadIssueBillingKeyUIError'); | ||
} | ||
class LoadIssueBillingKeyUIError extends Error { | ||
constructor({ code, message, }) { | ||
super(message); | ||
this.__portOneErrorType = 'LoadIssueBillingKeyUIError'; | ||
this.transactionType = TransactionType.ISSUE_BILLING_KEY; | ||
this.code = code; | ||
this.message = message; | ||
} | ||
} | ||
function isLoadPaymentUIError(error) { | ||
return (isPortOneError(error) && error.__portOneErrorType === 'LoadPaymentUIError'); | ||
} | ||
class LoadPaymentUIError extends Error { | ||
constructor({ code, message, }) { | ||
super(message); | ||
this.__portOneErrorType = 'LoadPaymentUIError'; | ||
this.transactionType = TransactionType.PAYMENT; | ||
this.code = code; | ||
this.message = message; | ||
} | ||
} | ||
function isPortOneError(error) { | ||
@@ -841,7 +921,12 @@ return (error != null && | ||
const PortOne = { | ||
requestIdentityVerification, | ||
requestIssueBillingKeyAndPay, | ||
requestIssueBillingKey, | ||
requestPayment, | ||
requestIssueBillingKey, | ||
requestIdentityVerification, | ||
loadPaymentUI, | ||
loadIssueBillingKeyUI, | ||
updateLoadPaymentUIRequest, | ||
updateLoadIssueBillingKeyUIRequest, | ||
}; | ||
export { index as Entity, IdentityVerificationError, IssueBillingKeyError, ModuleError, PaymentError, setPortOneJsSdkUrl as __INTERNAL__setPortOneSdkUrl, PortOne as default, isIdentityVerificationError, isIssueBillingKeyError, isModuleError, isPaymentError, isPortOneError, requestIdentityVerification, requestIssueBillingKey, requestPayment }; | ||
export { index as Entity, IdentityVerificationError, IssueBillingKeyAndPayError, IssueBillingKeyError, LoadIssueBillingKeyUIError, LoadPaymentUIError, ModuleError, PaymentError, setPortOneJsSdkUrl as __INTERNAL__setPortOneSdkUrl, PortOne as default, isIdentityVerificationError, isIssueBillingKeyAndPayError, isIssueBillingKeyError, isLoadIssueBillingKeyUIError, isLoadPaymentUIError, isModuleError, isPaymentError, isPortOneError, loadIssueBillingKeyUI, loadPaymentUI, requestIdentityVerification, requestIssueBillingKey, requestIssueBillingKeyAndPay, requestPayment, updateLoadIssueBillingKeyUIRequest, updateLoadPaymentUIRequest }; |
import { KakaopayPaymentBypass } from '../payment/Kakaopay.js'; | ||
import { SmartroV2IssueBillingKeyBypass } from './SmartroV2.js'; | ||
import { NaverpayIssueBillingKeyBypass } from './Naverpay.js'; | ||
import { PaypalV2IssueBillingKeyBypass } from './PaypalV2.js'; | ||
import { WelcomeIssueBillingKeyBypass } from './Welcome.js'; | ||
import { TosspayV2IssueBillingKeyBypass } from './TosspayV2.js'; | ||
export type IssueBillingKeyBypass = { | ||
@@ -9,3 +10,4 @@ kakaopay?: KakaopayPaymentBypass; | ||
naverpay?: NaverpayIssueBillingKeyBypass; | ||
paypal_v2?: PaypalV2IssueBillingKeyBypass; | ||
welcome?: WelcomeIssueBillingKeyBypass; | ||
tosspay_v2?: TosspayV2IssueBillingKeyBypass; | ||
}; |
import { TosspaymentsPaymentBypass } from './Tosspayments.js'; | ||
import { KsnetPaymentBypass } from './Ksnet.js'; | ||
import { PaypalV2PaymentBypass } from './PaypalV2.js'; | ||
import { KakaopayPaymentBypass } from './Kakaopay.js'; | ||
@@ -9,6 +8,7 @@ import { SmartroV2PaymentBypass } from './SmartroV2.js'; | ||
import { TossBrandpayPaymentBypass } from './TossBrandpay.js'; | ||
import { WelcomePaymentBypass } from './Welcome.js'; | ||
import { TosspayV2PaymentBypass } from './TosspayV2.js'; | ||
export type PaymentBypass = { | ||
tosspayments?: TosspaymentsPaymentBypass; | ||
ksnet?: KsnetPaymentBypass; | ||
paypal_v2?: PaypalV2PaymentBypass; | ||
kakaopay?: KakaopayPaymentBypass; | ||
@@ -19,2 +19,4 @@ smartro_v2?: SmartroV2PaymentBypass; | ||
toss_brandpay?: TossBrandpayPaymentBypass; | ||
welcome?: WelcomePaymentBypass; | ||
tosspay_v2?: TosspayV2PaymentBypass; | ||
}; |
@@ -107,3 +107,2 @@ export declare const Currency: { | ||
readonly MXV: "CURRENCY_MXV"; | ||
readonly MYR: "CURRENCY_MYR"; | ||
readonly MZN: "CURRENCY_MZN"; | ||
@@ -110,0 +109,0 @@ readonly NAD: "CURRENCY_NAD"; |
@@ -15,8 +15,4 @@ export declare const EasyPayProvider: { | ||
readonly SKPAY: "EASY_PAY_PROVIDER_SKPAY"; | ||
readonly NAVERPAY_CARD: "EASY_PAY_PROVIDER_NAVERPAY_CARD"; | ||
readonly NAVERPAY_POINT: "EASY_PAY_PROVIDER_NAVERPAY_POINT"; | ||
readonly SSGPAY_POINT: "EASY_PAY_PROVIDER_SSGPAY_POINT"; | ||
readonly SSGPAY_BANK: "EASY_PAY_PROVIDER_SSGPAY_BANK"; | ||
readonly TOSS_BRANDPAY: "EASY_PAY_PROVIDER_TOSS_BRANDPAY"; | ||
}; | ||
export type EasyPayProvider = typeof EasyPayProvider[keyof typeof EasyPayProvider]; |
@@ -6,3 +6,4 @@ export declare const GiftCertificateType: { | ||
readonly HAPPYMONEY: "GIFT_CERTIFICATE_TYPE_HAPPYMONEY"; | ||
readonly CULTURE_GIFT: "GIFT_CERTIFICATE_TYPE_CULTURE_GIFT"; | ||
}; | ||
export type GiftCertificateType = typeof GiftCertificateType[keyof typeof GiftCertificateType]; |
export { Bank } from './Bank.js'; | ||
export { BillingKeyAndPayMethod } from './BillingKeyAndPayMethod.js'; | ||
export { BillingKeyMethod } from './BillingKeyMethod.js'; | ||
@@ -14,5 +15,9 @@ export { CardCompany } from './CardCompany.js'; | ||
export { WindowType } from './WindowType.js'; | ||
export { LoadableUIType } from './LoadableUIType.js'; | ||
export { PaymentUIType } from './PaymentUIType.js'; | ||
export { IssueBillingKeyUIType } from './IssueBillingKeyUIType.js'; | ||
export type { Address } from './Address.js'; | ||
export type { CashReceiptType } from './CashReceiptType.js'; | ||
export type { Customer } from './Customer.js'; | ||
export type { EasyPayPaymentMethod } from './EasyPayPaymentMethod.js'; | ||
export type { FreeInstallmentPlan } from './FreeInstallmentPlan.js'; | ||
@@ -27,3 +32,6 @@ export type { Installment } from './Installment.js'; | ||
export type { IdentityVerificationBypass } from './bypass/identityVerification/index.js'; | ||
export type { IssueBillingKeyAndPayBypass } from './bypass/issueBillingKeyAndPay/index.js'; | ||
export type { IssueBillingKeyBypass } from './bypass/issueBillingKey/index.js'; | ||
export type { PaymentBypass } from './bypass/payment/index.js'; | ||
export type { LoadPaymentUIBypass } from './bypass/loadPaymentUI/index.js'; | ||
export type { LoadIssueBillingKeyUIBypass } from './bypass/loadIssueBillingKeyUI/index.js'; |
/** | ||
* 제공 기간 | ||
* - range: 제공 기간 범위 | ||
* - interval: 제공 기간 주기 | ||
* | ||
@@ -20,2 +21,11 @@ * 예1) 2023년 1월 1일 00시 00분 00초(KST) ~ | ||
* } | ||
* | ||
* 예4) 30일 주기 | ||
* interval: '30d' | ||
* | ||
* 예5) 6개월 주기 | ||
* interval: '6m' | ||
* | ||
* 예6) 1년 주기 | ||
* interval: '1y' | ||
*/ | ||
@@ -28,2 +38,3 @@ export type OfferPeriod = { | ||
}; | ||
interval?: `${number}d` | `${number}m` | `${number}y`; | ||
}; |
@@ -1,1 +0,1 @@ | ||
export type PayMethod = 'CARD' | 'VIRTUAL_ACCOUNT' | 'TRANSFER' | 'MOBILE' | 'GIFT_CERTIFICATE' | 'EASY_PAY' | 'PAYPAL'; | ||
export type PayMethod = 'CARD' | 'VIRTUAL_ACCOUNT' | 'TRANSFER' | 'MOBILE' | 'GIFT_CERTIFICATE' | 'EASY_PAY' | 'PAYPAL' | 'ALIPAY'; |
@@ -43,3 +43,5 @@ export declare const PgProvider: { | ||
readonly TOSS_BRANDPAY: "PG_PROVIDER_TOSS_BRANDPAY"; | ||
readonly WELCOME: "PG_PROVIDER_WELCOME"; | ||
readonly TOSSPAY_V2: "PG_PROVIDER_TOSSPAY_V2"; | ||
}; | ||
export type PgProvider = typeof PgProvider[keyof typeof PgProvider]; |
@@ -6,2 +6,3 @@ /** | ||
* - IDENTITY_VERIFICATION: 본인 인증 | ||
* - ISSUE_BILLING_KEY_AND_PAY: 빌링키 발급과 동시에 결제 | ||
*/ | ||
@@ -12,3 +13,4 @@ export declare const TransactionType: { | ||
readonly IDENTITY_VERIFICATION: "IDENTITY_VERIFICATION"; | ||
readonly ISSUE_BILLING_KEY_AND_PAY: "ISSUE_BILLING_KEY_AND_PAY"; | ||
}; | ||
export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; |
@@ -6,4 +6,7 @@ export interface PortOneError extends Error { | ||
export * from './IdentityVerificationError.js'; | ||
export * from './IssueBillingKeyAndPayError.js'; | ||
export * from './IssueBillingKeyError.js'; | ||
export * from './ModuleError.js'; | ||
export * from './PaymentError.js'; | ||
export * from './LoadIssueBillingKeyUIError.js'; | ||
export * from './LoadPaymentUIError.js'; |
@@ -0,15 +1,30 @@ | ||
import { requestIdentityVerification } from './requestIdentityVerification.js'; | ||
import { requestIssueBillingKeyAndPay } from './requestIssueBillingKeyAndPay.js'; | ||
import { requestIssueBillingKey } from './requestIssueBillingKey.js'; | ||
import { requestPayment } from './requestPayment.js'; | ||
import { requestIssueBillingKey } from './requestIssueBillingKey.js'; | ||
import { requestIdentityVerification } from './requestIdentityVerification.js'; | ||
import { loadPaymentUI } from './loadPaymentUI.js'; | ||
import { loadIssueBillingKeyUI } from './loadIssueBillingKeyUI.js'; | ||
import { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js'; | ||
import { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js'; | ||
declare const PortOne: { | ||
requestIdentityVerification: typeof requestIdentityVerification; | ||
requestIssueBillingKeyAndPay: typeof requestIssueBillingKeyAndPay; | ||
requestIssueBillingKey: typeof requestIssueBillingKey; | ||
requestPayment: typeof requestPayment; | ||
requestIssueBillingKey: typeof requestIssueBillingKey; | ||
requestIdentityVerification: typeof requestIdentityVerification; | ||
loadPaymentUI: typeof loadPaymentUI; | ||
loadIssueBillingKeyUI: typeof loadIssueBillingKeyUI; | ||
updateLoadPaymentUIRequest: typeof updateLoadPaymentUIRequest; | ||
updateLoadIssueBillingKeyUIRequest: typeof updateLoadIssueBillingKeyUIRequest; | ||
}; | ||
export { setPortOneJsSdkUrl as __INTERNAL__setPortOneSdkUrl } from './loader.js'; | ||
export { requestIdentityVerification, type IdentityVerificationRequest, type IdentityVerificationResponse, } from './requestIdentityVerification.js'; | ||
export { requestIssueBillingKeyAndPay, type IssueBillingKeyAndPayRequest, type IssueBillingKeyAndPayResponse, } from './requestIssueBillingKeyAndPay.js'; | ||
export { requestIssueBillingKey, type IssueBillingKeyRequest, type IssueBillingKeyResponse, } from './requestIssueBillingKey.js'; | ||
export { requestPayment, type PaymentRequest, type PaymentResponse, } from './requestPayment.js'; | ||
export { requestIssueBillingKey, type IssueBillingKeyRequest, type IssueBillingKeyResponse, } from './requestIssueBillingKey.js'; | ||
export { requestIdentityVerification, type IdentityVerificationRequest, type IdentityVerificationResponse, } from './requestIdentityVerification.js'; | ||
export { loadPaymentUI, type LoadPaymentUIRequest } from './loadPaymentUI.js'; | ||
export { loadIssueBillingKeyUI, type LoadIssueBillingKeyUIRequest, } from './loadIssueBillingKeyUI.js'; | ||
export { updateLoadPaymentUIRequest } from './updateLoadPaymentUIRequest.js'; | ||
export { updateLoadIssueBillingKeyUIRequest } from './updateLoadIssueBillingKeyUIRequest.js'; | ||
export * as Entity from './entity/index.js'; | ||
export * from './exception/index.js'; | ||
export default PortOne; |
@@ -0,4 +1,8 @@ | ||
import type { IdentityVerificationRequest, IdentityVerificationResponse } from './requestIdentityVerification.js'; | ||
import type { IssueBillingKeyAndPayRequest, IssueBillingKeyAndPayResponse } from './requestIssueBillingKeyAndPay.js'; | ||
import type { IssueBillingKeyRequest, IssueBillingKeyResponse } from './requestIssueBillingKey.js'; | ||
import type { PaymentRequest, PaymentResponse } from './requestPayment.js'; | ||
import type { IssueBillingKeyRequest, IssueBillingKeyResponse } from './requestIssueBillingKey.js'; | ||
import type { IdentityVerificationRequest, IdentityVerificationResponse } from './requestIdentityVerification.js'; | ||
import { LoadPaymentUIRequest } from './loadPaymentUI.js'; | ||
import { LoadIssueBillingKeyUIRequest } from './loadIssueBillingKeyUI.js'; | ||
import { IssueBillingKeyError, PaymentError } from './exception/index.js'; | ||
declare global { | ||
@@ -11,4 +15,15 @@ interface Window { | ||
requestPayment(request: PaymentRequest): Promise<PaymentResponse>; | ||
requestIssueBillingKeyAndPay(request: IssueBillingKeyAndPayRequest): Promise<IssueBillingKeyAndPayResponse>; | ||
requestIssueBillingKey(request: IssueBillingKeyRequest): Promise<IssueBillingKeyResponse>; | ||
requestIdentityVerification(request: IdentityVerificationRequest): Promise<IdentityVerificationResponse>; | ||
loadPaymentUI(request: LoadPaymentUIRequest, callbacks: { | ||
onPaymentSuccess: (response: PaymentResponse) => void; | ||
onPaymentFail: (error: PaymentError) => void; | ||
}): Promise<void>; | ||
loadIssueBillingKeyUI(request: LoadIssueBillingKeyUIRequest, callbacks: { | ||
onIssueBillingKeySuccess: (response: IssueBillingKeyResponse) => void; | ||
onIssueBillingKeyFail: (error: IssueBillingKeyError) => void; | ||
}): Promise<void>; | ||
updateLoadPaymentUIRequest(request: LoadPaymentUIRequest): Promise<void>; | ||
updateLoadIssueBillingKeyUIRequest(request: LoadIssueBillingKeyUIRequest): Promise<void>; | ||
} | ||
@@ -15,0 +30,0 @@ export declare function loadScript(): Promise<PortOne>; |
@@ -22,2 +22,3 @@ import { CapsToCamel } from '../utils.js'; | ||
noticeUrls?: string[]; | ||
productType?: Entity.ProductType; | ||
bypass?: Entity.IssueBillingKeyBypass; | ||
@@ -31,3 +32,3 @@ } & (BillingKeyMethodOptions<'CARD', Card> | BillingKeyMethodOptions<'MOBILE', Mobile> | BillingKeyMethodOptions<'EASY_PAY', EasyPay> | BillingKeyMethodOptions<'PAYPAL', Paypal>); | ||
transactionType: typeof Entity.TransactionType.ISSUE_BILLING_KEY; | ||
billingKey?: string; | ||
billingKey: string; | ||
code?: string; | ||
@@ -49,4 +50,5 @@ message?: string; | ||
carrier?: Entity.Carrier; | ||
availableCarriers?: Entity.Carrier[]; | ||
}; | ||
type Paypal = Record<string, never>; | ||
export {}; |
@@ -12,2 +12,3 @@ import { CapsToCamel, OneOfType } from '../utils.js'; | ||
isTestChannel?: boolean; | ||
channelGroupId?: string; | ||
taxFreeAmount?: number; | ||
@@ -33,3 +34,3 @@ vatAmount?: number; | ||
shippingAddress?: Entity.Address; | ||
} & (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<'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>); | ||
/** | ||
@@ -58,2 +59,3 @@ * iframe/popup 방식으로 PG사 창이 렌더링 된 경우 | ||
useFreeInterestFromMall?: boolean; | ||
useInstallment?: boolean; | ||
}; | ||
@@ -80,2 +82,3 @@ type VirtualAccount = { | ||
carrier?: Entity.Carrier; | ||
availableCarriers?: Entity.Carrier[]; | ||
}; | ||
@@ -93,4 +96,7 @@ type GiftCertificate = { | ||
useCardPoint?: boolean; | ||
availablePayMethods?: Entity.EasyPayPaymentMethod[]; | ||
useInstallment?: boolean; | ||
}; | ||
type Paypal = Record<string, never>; | ||
type Alipay = Record<string, never>; | ||
export {}; |
{ | ||
"name": "@portone/browser-sdk", | ||
"type": "module", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "PortOne SDK for browser", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
127933
80
3684
0