@bootpay/client-js 5.1.5 → 5.2.0-beta.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/README.md +9 -4
- package/dist/index.es.js +106 -97
- package/dist/index.umd.js +10 -10
- package/dist/package.json.d.ts +1 -1
- package/dist/src/support/widget-store.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -59,7 +59,7 @@ const Ms = {}, Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
59
59
|
default: Ms
|
|
60
60
|
}, Symbol.toStringTag, { value: "Module" })), Ls = /* @__PURE__ */ Fs(Ns);
|
|
61
61
|
var Gr;
|
|
62
|
-
function
|
|
62
|
+
function z() {
|
|
63
63
|
return Gr || (Gr = 1, function(t, e) {
|
|
64
64
|
(function(r, s) {
|
|
65
65
|
t.exports = s();
|
|
@@ -561,7 +561,7 @@ function W() {
|
|
|
561
561
|
}
|
|
562
562
|
(function(t, e) {
|
|
563
563
|
(function(r, s) {
|
|
564
|
-
t.exports = s(
|
|
564
|
+
t.exports = s(z());
|
|
565
565
|
})(N, function(r) {
|
|
566
566
|
return r.enc.Utf8;
|
|
567
567
|
});
|
|
@@ -572,7 +572,7 @@ var Et = { exports: {} }, Vr;
|
|
|
572
572
|
function Re() {
|
|
573
573
|
return Vr || (Vr = 1, function(t, e) {
|
|
574
574
|
(function(r, s) {
|
|
575
|
-
t.exports = s(
|
|
575
|
+
t.exports = s(z());
|
|
576
576
|
})(N, function(r) {
|
|
577
577
|
return function() {
|
|
578
578
|
var s = r, n = s.lib, i = n.WordArray, x = s.enc;
|
|
@@ -861,7 +861,7 @@ class js extends zs {
|
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
const Te = new js(), Ks = "@bootpay/client-js", Gs = "5.1
|
|
864
|
+
const Te = new js(), Ks = "@bootpay/client-js", Gs = "5.2.0-beta.1", Xs = "dist/index.es.js", Vs = "dist/src/index.d.ts", Ys = "dist/index.css", Js = {
|
|
865
865
|
test: 'echo "Error: no test specified" && exit 1',
|
|
866
866
|
build: "rm -rf ./dist && vite build",
|
|
867
867
|
deploy: "NODE_ENV=production ./node_modules/.bin/webpack --output-path=./dist --mode=production && gzip -kf dist/*.min.js && ./webview.sh $npm_package_version"
|
|
@@ -2101,7 +2101,7 @@ var Nt = { exports: {} }, Lt = { exports: {} }, g0;
|
|
|
2101
2101
|
function Ue() {
|
|
2102
2102
|
return g0 || (g0 = 1, function(t, e) {
|
|
2103
2103
|
(function(r, s) {
|
|
2104
|
-
t.exports = s(
|
|
2104
|
+
t.exports = s(z());
|
|
2105
2105
|
})(N, function(r) {
|
|
2106
2106
|
return function(s) {
|
|
2107
2107
|
var n = r, i = n.lib, x = i.WordArray, d = i.Hasher, p = n.algo, a = [];
|
|
@@ -2167,7 +2167,7 @@ var qt = { exports: {} }, Wt = { exports: {} }, b0;
|
|
|
2167
2167
|
function Tr() {
|
|
2168
2168
|
return b0 || (b0 = 1, function(t, e) {
|
|
2169
2169
|
(function(r, s) {
|
|
2170
|
-
t.exports = s(
|
|
2170
|
+
t.exports = s(z());
|
|
2171
2171
|
})(N, function(r) {
|
|
2172
2172
|
return function() {
|
|
2173
2173
|
var s = r, n = s.lib, i = n.WordArray, x = n.Hasher, d = s.algo, p = [], a = d.SHA1 = x.extend({
|
|
@@ -2211,7 +2211,7 @@ var zt = { exports: {} }, _0;
|
|
|
2211
2211
|
function Rr() {
|
|
2212
2212
|
return _0 || (_0 = 1, function(t, e) {
|
|
2213
2213
|
(function(r, s) {
|
|
2214
|
-
t.exports = s(
|
|
2214
|
+
t.exports = s(z());
|
|
2215
2215
|
})(N, function(r) {
|
|
2216
2216
|
(function() {
|
|
2217
2217
|
var s = r, n = s.lib, i = n.Base, x = s.enc, d = x.Utf8, p = s.algo;
|
|
@@ -2289,7 +2289,7 @@ var w0;
|
|
|
2289
2289
|
function De() {
|
|
2290
2290
|
return w0 || (w0 = 1, function(t, e) {
|
|
2291
2291
|
(function(r, s, n) {
|
|
2292
|
-
t.exports = s(
|
|
2292
|
+
t.exports = s(z(), Tr(), Rr());
|
|
2293
2293
|
})(N, function(r) {
|
|
2294
2294
|
return function() {
|
|
2295
2295
|
var s = r, n = s.lib, i = n.Base, x = n.WordArray, d = s.algo, p = d.MD5, a = d.EvpKDF = i.extend({
|
|
@@ -2352,7 +2352,7 @@ var jt = { exports: {} }, $0;
|
|
|
2352
2352
|
function ee() {
|
|
2353
2353
|
return $0 || ($0 = 1, function(t, e) {
|
|
2354
2354
|
(function(r, s, n) {
|
|
2355
|
-
t.exports = s(
|
|
2355
|
+
t.exports = s(z(), De());
|
|
2356
2356
|
})(N, function(r) {
|
|
2357
2357
|
r.lib.Cipher || function(s) {
|
|
2358
2358
|
var n = r, i = n.lib, x = i.Base, d = i.WordArray, p = i.BufferedBlockAlgorithm, a = n.enc;
|
|
@@ -2887,7 +2887,7 @@ var E0;
|
|
|
2887
2887
|
function xs() {
|
|
2888
2888
|
return E0 || (E0 = 1, function(t, e) {
|
|
2889
2889
|
(function(r, s, n) {
|
|
2890
|
-
t.exports = s(
|
|
2890
|
+
t.exports = s(z(), Re(), Ue(), De(), ee());
|
|
2891
2891
|
})(N, function(r) {
|
|
2892
2892
|
return function() {
|
|
2893
2893
|
var s = r, n = s.lib, i = n.BlockCipher, x = s.algo, d = [], p = [], a = [], c = [], y = [], o = [], u = [], h = [], v = [], g = [];
|
|
@@ -3057,7 +3057,7 @@ class mi extends ot {
|
|
|
3057
3057
|
});
|
|
3058
3058
|
case "setConfirmParameters":
|
|
3059
3059
|
const i = `${n.gateway_url}/confirm/${n.receipt_id}?application_id=${n.application_id}`;
|
|
3060
|
-
n.open_type === "redirect" ?
|
|
3060
|
+
n.open_type === "redirect" ? W.setConfirmRedirect(i) : W.setConfirmFormUrl(i);
|
|
3061
3061
|
break;
|
|
3062
3062
|
case "confirm":
|
|
3063
3063
|
return this.resolve({
|
|
@@ -3067,11 +3067,11 @@ class mi extends ot {
|
|
|
3067
3067
|
order_id: n.order_id
|
|
3068
3068
|
});
|
|
3069
3069
|
case "redirect":
|
|
3070
|
-
|
|
3070
|
+
W.destroy(!1), location.href = n.url;
|
|
3071
3071
|
return;
|
|
3072
3072
|
case "moveRedirectUrl":
|
|
3073
|
-
|
|
3074
|
-
|
|
3073
|
+
W.closePopup(), W.hidePaymentiFrame(), he.showProgress("결제 진행 중입니다. 잠시만 기다려주세요."), location.replace(Ds(n.url, n.parameters)), setTimeout(() => {
|
|
3074
|
+
W.destroy(!1);
|
|
3075
3075
|
}, 5e3);
|
|
3076
3076
|
break;
|
|
3077
3077
|
case "polling":
|
|
@@ -3082,10 +3082,10 @@ class mi extends ot {
|
|
|
3082
3082
|
return this.isDone = !0, this.clearPollingEvent(), this.resolve(n);
|
|
3083
3083
|
break;
|
|
3084
3084
|
case "iFrameStyle":
|
|
3085
|
-
|
|
3085
|
+
W.iFrameSetStyle(n.styles);
|
|
3086
3086
|
break;
|
|
3087
3087
|
case "windowStyle":
|
|
3088
|
-
|
|
3088
|
+
W.windowStyle(n.styles);
|
|
3089
3089
|
break;
|
|
3090
3090
|
case "hideProgress":
|
|
3091
3091
|
he.hideProgress();
|
|
@@ -3094,16 +3094,16 @@ class mi extends ot {
|
|
|
3094
3094
|
he.showProgress(n.message);
|
|
3095
3095
|
break;
|
|
3096
3096
|
case "resize":
|
|
3097
|
-
|
|
3097
|
+
W.iFrameResize(n.resizeData);
|
|
3098
3098
|
break;
|
|
3099
3099
|
case "hidePayment":
|
|
3100
|
-
|
|
3100
|
+
W.closePopup(), W.hidePaymentiFrame();
|
|
3101
3101
|
break;
|
|
3102
3102
|
case "showPayment":
|
|
3103
|
-
|
|
3103
|
+
W.showPaymentiFrame(this.$present(n.showCloseButton) ? n.showCloseButton : !1);
|
|
3104
3104
|
break;
|
|
3105
3105
|
case "popup":
|
|
3106
|
-
|
|
3106
|
+
W.createPopupButton({
|
|
3107
3107
|
gatewayUrl: n.url,
|
|
3108
3108
|
receiptId: n.receipt_id,
|
|
3109
3109
|
name: n.name,
|
|
@@ -3111,7 +3111,7 @@ class mi extends ot {
|
|
|
3111
3111
|
});
|
|
3112
3112
|
break;
|
|
3113
3113
|
case "close":
|
|
3114
|
-
|
|
3114
|
+
W.destroy();
|
|
3115
3115
|
break;
|
|
3116
3116
|
default:
|
|
3117
3117
|
return;
|
|
@@ -3680,7 +3680,7 @@ class bi extends ge {
|
|
|
3680
3680
|
return this.modeApiUrl[this.mode];
|
|
3681
3681
|
}
|
|
3682
3682
|
}
|
|
3683
|
-
const
|
|
3683
|
+
const W = new bi(), Pe = class Pe extends Ae {
|
|
3684
3684
|
constructor() {
|
|
3685
3685
|
super(), this.$session = Te, this.$logger = F, this.$event = rt, this.platformType = te.PLATFORM.JS, this.$transactionKey = "", this.extra = {}, this.browserBootpayFilter = {
|
|
3686
3686
|
instagram: /Instagram/i,
|
|
@@ -3709,13 +3709,13 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3709
3709
|
request: e
|
|
3710
3710
|
}), e.sdk = !0, e.platform_type = this.platformType, e.ver = D.packageVersion, e.sdk_version = D.sdkVersion, e.sdk_type = D.sdkName, e.locale = D.locale, e.price = parseFloat(String(e.price)), e.tax_free = parseFloat(String(e.tax_free)), e.deposit_price = parseFloat(String(e.deposit_price)), Pe.invalidRequestParamsData(e), Pe.invalidRequestItemsData(e.items, e.price), e.uuid = this.$session.currentUserUUID(), e.sk = this.$session.currentSessionKey(), e.ti = this.$session.currentTimeTerm(), e.tk = this.$transactionKey, e.env = this.getUserDeviceEnvironment(), e.extra = this.openTypeFilter(e.extra), this.extra = e.extra;
|
|
3711
3711
|
try {
|
|
3712
|
-
const s = await
|
|
3713
|
-
return F.debug("confirm ready", s),
|
|
3712
|
+
const s = await W.start(e);
|
|
3713
|
+
return F.debug("confirm ready", s), W.hidePaymentiFrame(), W.closePopup(), ["done", "issued"].indexOf(s.event) === -1 && this.$event.send({
|
|
3714
3714
|
step: s.event,
|
|
3715
3715
|
msg: "",
|
|
3716
3716
|
request: e,
|
|
3717
3717
|
response: s
|
|
3718
|
-
}),
|
|
3718
|
+
}), W.setConfirmFormUrl(
|
|
3719
3719
|
`${s.gateway_url}/confirm/${s.receipt_id}?application_id=${e.application_id}`
|
|
3720
3720
|
), Promise.resolve(s);
|
|
3721
3721
|
} catch (s) {
|
|
@@ -3729,7 +3729,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3729
3729
|
*/
|
|
3730
3730
|
async confirm() {
|
|
3731
3731
|
try {
|
|
3732
|
-
const e = await
|
|
3732
|
+
const e = await W.confirm();
|
|
3733
3733
|
return Promise.resolve(e);
|
|
3734
3734
|
} catch (e) {
|
|
3735
3735
|
return this.eventError(e), Promise.reject(e);
|
|
@@ -3746,7 +3746,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3746
3746
|
msg: e.event === "done" ? "결제완료" : "가상계좌발급완료",
|
|
3747
3747
|
request: {},
|
|
3748
3748
|
response: e
|
|
3749
|
-
}), he.hideProgress(), this.$logger.debug("show result", this.isDisplaySuccessResult()), this.isDisplaySuccessResult() && r ? this.displayResultView(e.data.receipt_id) :
|
|
3749
|
+
}), he.hideProgress(), this.$logger.debug("show result", this.isDisplaySuccessResult()), this.isDisplaySuccessResult() && r ? this.displayResultView(e.data.receipt_id) : W.destroy();
|
|
3750
3750
|
}
|
|
3751
3751
|
/**
|
|
3752
3752
|
* 오류를 처리한다
|
|
@@ -3754,7 +3754,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3754
3754
|
* @date: 2022-01-12
|
|
3755
3755
|
*/
|
|
3756
3756
|
eventError(e) {
|
|
3757
|
-
he.hideProgress(),
|
|
3757
|
+
he.hideProgress(), W.closePopup(), this.isDisplayErrorResult() && e.event === "error" ? this.displayResultErrorView(e) : W.destroy(), this.$logger.debug("done failed destroy and hide", "payment"), this.$event.sendError({
|
|
3758
3758
|
step: this.$present(e.event) ? e.event : "error",
|
|
3759
3759
|
msg: e.message,
|
|
3760
3760
|
trace: function() {
|
|
@@ -3810,18 +3810,18 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3810
3810
|
extra: e.extra
|
|
3811
3811
|
};
|
|
3812
3812
|
try {
|
|
3813
|
-
const s = await
|
|
3813
|
+
const s = await W.start(r, "CARD_SUBSCRIPTION");
|
|
3814
3814
|
switch (F.debug("subscription success", s), this.$event.send({
|
|
3815
3815
|
step: "confirm",
|
|
3816
3816
|
msg: "결제승인전",
|
|
3817
3817
|
request: {},
|
|
3818
3818
|
response: s
|
|
3819
|
-
}),
|
|
3819
|
+
}), W.hidePaymentiFrame(), W.closePopup(), s.event) {
|
|
3820
3820
|
case "done":
|
|
3821
3821
|
case "issued":
|
|
3822
3822
|
break;
|
|
3823
3823
|
case "confirm":
|
|
3824
|
-
|
|
3824
|
+
W.setConfirmFormUrl(
|
|
3825
3825
|
`${s.gateway_url}/confirm/${s.receipt_id}?application_id=${e.application_id}`
|
|
3826
3826
|
);
|
|
3827
3827
|
}
|
|
@@ -3864,18 +3864,18 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3864
3864
|
extra: e.extra
|
|
3865
3865
|
};
|
|
3866
3866
|
try {
|
|
3867
|
-
const s = await
|
|
3867
|
+
const s = await W.start(r, "AUTH");
|
|
3868
3868
|
switch (F.debug("authentication success", s), this.$event.send({
|
|
3869
3869
|
step: "confirm",
|
|
3870
3870
|
msg: "본인인증 승인전",
|
|
3871
3871
|
request: {},
|
|
3872
3872
|
response: s
|
|
3873
|
-
}),
|
|
3873
|
+
}), W.hidePaymentiFrame(), W.closePopup(), s.event) {
|
|
3874
3874
|
case "done":
|
|
3875
3875
|
case "issued":
|
|
3876
3876
|
break;
|
|
3877
3877
|
case "confirm":
|
|
3878
|
-
|
|
3878
|
+
W.setConfirmFormUrl(
|
|
3879
3879
|
`${s.gateway_url}/confirm/${s.receipt_id}?application_id=${e.application_id}`
|
|
3880
3880
|
);
|
|
3881
3881
|
}
|
|
@@ -3886,7 +3886,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
async requestPaymentUrl(e) {
|
|
3888
3888
|
try {
|
|
3889
|
-
const r = await
|
|
3889
|
+
const r = await W.startPaymentUrl(e.url);
|
|
3890
3890
|
return ["done", "issued"].indexOf(r.event) === -1 && this.$event.send({
|
|
3891
3891
|
step: r.event,
|
|
3892
3892
|
msg: "",
|
|
@@ -3894,7 +3894,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3894
3894
|
url: e.url
|
|
3895
3895
|
},
|
|
3896
3896
|
response: r
|
|
3897
|
-
}),
|
|
3897
|
+
}), W.setConfirmFormUrl(
|
|
3898
3898
|
`${r.gateway_url}/confirm/${r.receipt_id}?application_id=${e.application_id}`
|
|
3899
3899
|
), Promise.resolve(r);
|
|
3900
3900
|
} catch (r) {
|
|
@@ -3924,7 +3924,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3924
3924
|
* @date: 2022-01-12
|
|
3925
3925
|
*/
|
|
3926
3926
|
displayResultView(e) {
|
|
3927
|
-
|
|
3927
|
+
W.moveToUrl(D.toDoor(`result/${e}`));
|
|
3928
3928
|
}
|
|
3929
3929
|
/**
|
|
3930
3930
|
* Result Error View를 보여준다
|
|
@@ -3932,7 +3932,7 @@ const q = new bi(), Pe = class Pe extends Ae {
|
|
|
3932
3932
|
* @date: 2022-01-12
|
|
3933
3933
|
*/
|
|
3934
3934
|
displayResultErrorView(e) {
|
|
3935
|
-
|
|
3935
|
+
W.moveToUrl(D.toDoor(`error?error_code=${e.error_code}&pg_error_code=${e.pg_error_code}&message=${e.message}`));
|
|
3936
3936
|
}
|
|
3937
3937
|
/**
|
|
3938
3938
|
* OpenTypeUserAgent Filter
|
|
@@ -4280,7 +4280,7 @@ const Ee = {
|
|
|
4280
4280
|
* @date: 2021-06-23
|
|
4281
4281
|
*/
|
|
4282
4282
|
readyToPopup() {
|
|
4283
|
-
|
|
4283
|
+
W.readyToPopup();
|
|
4284
4284
|
},
|
|
4285
4285
|
/**
|
|
4286
4286
|
* 로그 레벨을 설정한다
|
|
@@ -4322,7 +4322,7 @@ const Ee = {
|
|
|
4322
4322
|
* @date: 2022-06-09
|
|
4323
4323
|
*/
|
|
4324
4324
|
setLocale(t) {
|
|
4325
|
-
D.setLocale(t),
|
|
4325
|
+
D.setLocale(t), W.templateReload();
|
|
4326
4326
|
},
|
|
4327
4327
|
/**
|
|
4328
4328
|
* 결제창을 닫는다
|
|
@@ -4351,7 +4351,7 @@ const Ee = {
|
|
|
4351
4351
|
* @date: 2022-06-14
|
|
4352
4352
|
*/
|
|
4353
4353
|
destroy() {
|
|
4354
|
-
|
|
4354
|
+
W.destroy();
|
|
4355
4355
|
},
|
|
4356
4356
|
overrideGlobalInstance() {
|
|
4357
4357
|
window.Bootpay = Ee;
|
|
@@ -4804,7 +4804,7 @@ var ys = { exports: {} }, Kt = { exports: {} }, k0;
|
|
|
4804
4804
|
function gt() {
|
|
4805
4805
|
return k0 || (k0 = 1, function(t, e) {
|
|
4806
4806
|
(function(r, s) {
|
|
4807
|
-
t.exports = s(
|
|
4807
|
+
t.exports = s(z());
|
|
4808
4808
|
})(N, function(r) {
|
|
4809
4809
|
return function(s) {
|
|
4810
4810
|
var n = r, i = n.lib, x = i.Base, d = i.WordArray, p = n.x64 = {};
|
|
@@ -5034,7 +5034,7 @@ var Gt = { exports: {} }, S0;
|
|
|
5034
5034
|
function Pi() {
|
|
5035
5035
|
return S0 || (S0 = 1, function(t, e) {
|
|
5036
5036
|
(function(r, s) {
|
|
5037
|
-
t.exports = s(
|
|
5037
|
+
t.exports = s(z());
|
|
5038
5038
|
})(N, function(r) {
|
|
5039
5039
|
return function() {
|
|
5040
5040
|
if (typeof ArrayBuffer == "function") {
|
|
@@ -5056,7 +5056,7 @@ var Xt = { exports: {} }, B0;
|
|
|
5056
5056
|
function Ii() {
|
|
5057
5057
|
return B0 || (B0 = 1, function(t, e) {
|
|
5058
5058
|
(function(r, s) {
|
|
5059
|
-
t.exports = s(
|
|
5059
|
+
t.exports = s(z());
|
|
5060
5060
|
})(N, function(r) {
|
|
5061
5061
|
return function() {
|
|
5062
5062
|
var s = r, n = s.lib, i = n.WordArray, x = s.enc;
|
|
@@ -5150,7 +5150,7 @@ var Vt = { exports: {} }, P0;
|
|
|
5150
5150
|
function Ci() {
|
|
5151
5151
|
return P0 || (P0 = 1, function(t, e) {
|
|
5152
5152
|
(function(r, s) {
|
|
5153
|
-
t.exports = s(
|
|
5153
|
+
t.exports = s(z());
|
|
5154
5154
|
})(N, function(r) {
|
|
5155
5155
|
return function() {
|
|
5156
5156
|
var s = r, n = s.lib, i = n.WordArray, x = s.enc;
|
|
@@ -5230,7 +5230,7 @@ var Yt = { exports: {} }, I0;
|
|
|
5230
5230
|
function ms() {
|
|
5231
5231
|
return I0 || (I0 = 1, function(t, e) {
|
|
5232
5232
|
(function(r, s) {
|
|
5233
|
-
t.exports = s(
|
|
5233
|
+
t.exports = s(z());
|
|
5234
5234
|
})(N, function(r) {
|
|
5235
5235
|
return function(s) {
|
|
5236
5236
|
var n = r, i = n.lib, x = i.WordArray, d = i.Hasher, p = n.algo, a = [], c = [];
|
|
@@ -5282,7 +5282,7 @@ var Jt = { exports: {} }, C0;
|
|
|
5282
5282
|
function Ti() {
|
|
5283
5283
|
return C0 || (C0 = 1, function(t, e) {
|
|
5284
5284
|
(function(r, s, n) {
|
|
5285
|
-
t.exports = s(
|
|
5285
|
+
t.exports = s(z(), ms());
|
|
5286
5286
|
})(N, function(r) {
|
|
5287
5287
|
return function() {
|
|
5288
5288
|
var s = r, n = s.lib, i = n.WordArray, x = s.algo, d = x.SHA256, p = x.SHA224 = d.extend({
|
|
@@ -5312,7 +5312,7 @@ var Zt = { exports: {} }, T0;
|
|
|
5312
5312
|
function gs() {
|
|
5313
5313
|
return T0 || (T0 = 1, function(t, e) {
|
|
5314
5314
|
(function(r, s, n) {
|
|
5315
|
-
t.exports = s(
|
|
5315
|
+
t.exports = s(z(), gt());
|
|
5316
5316
|
})(N, function(r) {
|
|
5317
5317
|
return function() {
|
|
5318
5318
|
var s = r, n = s.lib, i = n.Hasher, x = s.x64, d = x.Word, p = x.WordArray, a = s.algo;
|
|
@@ -5453,7 +5453,7 @@ var Qt = { exports: {} }, R0;
|
|
|
5453
5453
|
function Ri() {
|
|
5454
5454
|
return R0 || (R0 = 1, function(t, e) {
|
|
5455
5455
|
(function(r, s, n) {
|
|
5456
|
-
t.exports = s(
|
|
5456
|
+
t.exports = s(z(), gt(), gs());
|
|
5457
5457
|
})(N, function(r) {
|
|
5458
5458
|
return function() {
|
|
5459
5459
|
var s = r, n = s.x64, i = n.Word, x = n.WordArray, d = s.algo, p = d.SHA512, a = d.SHA384 = p.extend({
|
|
@@ -5483,7 +5483,7 @@ var er = { exports: {} }, A0;
|
|
|
5483
5483
|
function Ai() {
|
|
5484
5484
|
return A0 || (A0 = 1, function(t, e) {
|
|
5485
5485
|
(function(r, s, n) {
|
|
5486
|
-
t.exports = s(
|
|
5486
|
+
t.exports = s(z(), gt());
|
|
5487
5487
|
})(N, function(r) {
|
|
5488
5488
|
return function(s) {
|
|
5489
5489
|
var n = r, i = n.lib, x = i.WordArray, d = i.Hasher, p = n.x64, a = p.Word, c = n.algo, y = [], o = [], u = [];
|
|
@@ -5593,7 +5593,7 @@ var tr = { exports: {} }, O0;
|
|
|
5593
5593
|
function Oi() {
|
|
5594
5594
|
return O0 || (O0 = 1, function(t, e) {
|
|
5595
5595
|
(function(r, s) {
|
|
5596
|
-
t.exports = s(
|
|
5596
|
+
t.exports = s(z());
|
|
5597
5597
|
})(N, function(r) {
|
|
5598
5598
|
/** @preserve
|
|
5599
5599
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
@@ -5986,7 +5986,7 @@ var rr = { exports: {} }, U0;
|
|
|
5986
5986
|
function Ui() {
|
|
5987
5987
|
return U0 || (U0 = 1, function(t, e) {
|
|
5988
5988
|
(function(r, s, n) {
|
|
5989
|
-
t.exports = s(
|
|
5989
|
+
t.exports = s(z(), Tr(), Rr());
|
|
5990
5990
|
})(N, function(r) {
|
|
5991
5991
|
return function() {
|
|
5992
5992
|
var s = r, n = s.lib, i = n.Base, x = n.WordArray, d = s.algo, p = d.SHA1, a = d.HMAC, c = d.PBKDF2 = i.extend({
|
|
@@ -6053,7 +6053,7 @@ var sr = { exports: {} }, D0;
|
|
|
6053
6053
|
function Di() {
|
|
6054
6054
|
return D0 || (D0 = 1, function(t, e) {
|
|
6055
6055
|
(function(r, s, n) {
|
|
6056
|
-
t.exports = s(
|
|
6056
|
+
t.exports = s(z(), ee());
|
|
6057
6057
|
})(N, function(r) {
|
|
6058
6058
|
return r.mode.CFB = function() {
|
|
6059
6059
|
var s = r.lib.BlockCipherMode.extend();
|
|
@@ -6083,7 +6083,7 @@ var nr = { exports: {} }, F0;
|
|
|
6083
6083
|
function Fi() {
|
|
6084
6084
|
return F0 || (F0 = 1, function(t, e) {
|
|
6085
6085
|
(function(r, s, n) {
|
|
6086
|
-
t.exports = s(
|
|
6086
|
+
t.exports = s(z(), ee());
|
|
6087
6087
|
})(N, function(r) {
|
|
6088
6088
|
return r.mode.CTR = function() {
|
|
6089
6089
|
var s = r.lib.BlockCipherMode.extend(), n = s.Encryptor = s.extend({
|
|
@@ -6105,7 +6105,7 @@ var ir = { exports: {} }, H0;
|
|
|
6105
6105
|
function Hi() {
|
|
6106
6106
|
return H0 || (H0 = 1, function(t, e) {
|
|
6107
6107
|
(function(r, s, n) {
|
|
6108
|
-
t.exports = s(
|
|
6108
|
+
t.exports = s(z(), ee());
|
|
6109
6109
|
})(N, function(r) {
|
|
6110
6110
|
/** @preserve
|
|
6111
6111
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
@@ -6144,7 +6144,7 @@ var or = { exports: {} }, M0;
|
|
|
6144
6144
|
function Mi() {
|
|
6145
6145
|
return M0 || (M0 = 1, function(t, e) {
|
|
6146
6146
|
(function(r, s, n) {
|
|
6147
|
-
t.exports = s(
|
|
6147
|
+
t.exports = s(z(), ee());
|
|
6148
6148
|
})(N, function(r) {
|
|
6149
6149
|
return r.mode.OFB = function() {
|
|
6150
6150
|
var s = r.lib.BlockCipherMode.extend(), n = s.Encryptor = s.extend({
|
|
@@ -6164,7 +6164,7 @@ var ar = { exports: {} }, N0;
|
|
|
6164
6164
|
function Ni() {
|
|
6165
6165
|
return N0 || (N0 = 1, function(t, e) {
|
|
6166
6166
|
(function(r, s, n) {
|
|
6167
|
-
t.exports = s(
|
|
6167
|
+
t.exports = s(z(), ee());
|
|
6168
6168
|
})(N, function(r) {
|
|
6169
6169
|
return r.mode.ECB = function() {
|
|
6170
6170
|
var s = r.lib.BlockCipherMode.extend();
|
|
@@ -6185,7 +6185,7 @@ var cr = { exports: {} }, L0;
|
|
|
6185
6185
|
function Li() {
|
|
6186
6186
|
return L0 || (L0 = 1, function(t, e) {
|
|
6187
6187
|
(function(r, s, n) {
|
|
6188
|
-
t.exports = s(
|
|
6188
|
+
t.exports = s(z(), ee());
|
|
6189
6189
|
})(N, function(r) {
|
|
6190
6190
|
return r.pad.AnsiX923 = {
|
|
6191
6191
|
pad: function(s, n) {
|
|
@@ -6204,7 +6204,7 @@ var dr = { exports: {} }, q0;
|
|
|
6204
6204
|
function qi() {
|
|
6205
6205
|
return q0 || (q0 = 1, function(t, e) {
|
|
6206
6206
|
(function(r, s, n) {
|
|
6207
|
-
t.exports = s(
|
|
6207
|
+
t.exports = s(z(), ee());
|
|
6208
6208
|
})(N, function(r) {
|
|
6209
6209
|
return r.pad.Iso10126 = {
|
|
6210
6210
|
pad: function(s, n) {
|
|
@@ -6223,7 +6223,7 @@ var lr = { exports: {} }, W0;
|
|
|
6223
6223
|
function Wi() {
|
|
6224
6224
|
return W0 || (W0 = 1, function(t, e) {
|
|
6225
6225
|
(function(r, s, n) {
|
|
6226
|
-
t.exports = s(
|
|
6226
|
+
t.exports = s(z(), ee());
|
|
6227
6227
|
})(N, function(r) {
|
|
6228
6228
|
return r.pad.Iso97971 = {
|
|
6229
6229
|
pad: function(s, n) {
|
|
@@ -6240,7 +6240,7 @@ var ur = { exports: {} }, z0;
|
|
|
6240
6240
|
function zi() {
|
|
6241
6241
|
return z0 || (z0 = 1, function(t, e) {
|
|
6242
6242
|
(function(r, s, n) {
|
|
6243
|
-
t.exports = s(
|
|
6243
|
+
t.exports = s(z(), ee());
|
|
6244
6244
|
})(N, function(r) {
|
|
6245
6245
|
return r.pad.ZeroPadding = {
|
|
6246
6246
|
pad: function(s, n) {
|
|
@@ -6262,7 +6262,7 @@ var pr = { exports: {} }, j0;
|
|
|
6262
6262
|
function ji() {
|
|
6263
6263
|
return j0 || (j0 = 1, function(t, e) {
|
|
6264
6264
|
(function(r, s, n) {
|
|
6265
|
-
t.exports = s(
|
|
6265
|
+
t.exports = s(z(), ee());
|
|
6266
6266
|
})(N, function(r) {
|
|
6267
6267
|
return r.pad.NoPadding = {
|
|
6268
6268
|
pad: function() {
|
|
@@ -6277,7 +6277,7 @@ var hr = { exports: {} }, K0;
|
|
|
6277
6277
|
function Ki() {
|
|
6278
6278
|
return K0 || (K0 = 1, function(t, e) {
|
|
6279
6279
|
(function(r, s, n) {
|
|
6280
|
-
t.exports = s(
|
|
6280
|
+
t.exports = s(z(), ee());
|
|
6281
6281
|
})(N, function(r) {
|
|
6282
6282
|
return function(s) {
|
|
6283
6283
|
var n = r, i = n.lib, x = i.CipherParams, d = n.enc, p = d.Hex, a = n.format;
|
|
@@ -6324,7 +6324,7 @@ var fr = { exports: {} }, G0;
|
|
|
6324
6324
|
function Gi() {
|
|
6325
6325
|
return G0 || (G0 = 1, function(t, e) {
|
|
6326
6326
|
(function(r, s, n) {
|
|
6327
|
-
t.exports = s(
|
|
6327
|
+
t.exports = s(z(), Re(), Ue(), De(), ee());
|
|
6328
6328
|
})(N, function(r) {
|
|
6329
6329
|
return function() {
|
|
6330
6330
|
var s = r, n = s.lib, i = n.WordArray, x = n.BlockCipher, d = s.algo, p = [
|
|
@@ -7044,7 +7044,7 @@ var xr = { exports: {} }, X0;
|
|
|
7044
7044
|
function Xi() {
|
|
7045
7045
|
return X0 || (X0 = 1, function(t, e) {
|
|
7046
7046
|
(function(r, s, n) {
|
|
7047
|
-
t.exports = s(
|
|
7047
|
+
t.exports = s(z(), Re(), Ue(), De(), ee());
|
|
7048
7048
|
})(N, function(r) {
|
|
7049
7049
|
return function() {
|
|
7050
7050
|
var s = r, n = s.lib, i = n.StreamCipher, x = s.algo, d = x.RC4 = i.extend({
|
|
@@ -7098,7 +7098,7 @@ var vr = { exports: {} }, V0;
|
|
|
7098
7098
|
function Vi() {
|
|
7099
7099
|
return V0 || (V0 = 1, function(t, e) {
|
|
7100
7100
|
(function(r, s, n) {
|
|
7101
|
-
t.exports = s(
|
|
7101
|
+
t.exports = s(z(), Re(), Ue(), De(), ee());
|
|
7102
7102
|
})(N, function(r) {
|
|
7103
7103
|
return function() {
|
|
7104
7104
|
var s = r, n = s.lib, i = n.StreamCipher, x = s.algo, d = [], p = [], a = [], c = x.Rabbit = i.extend({
|
|
@@ -7164,7 +7164,7 @@ var yr = { exports: {} }, Y0;
|
|
|
7164
7164
|
function Yi() {
|
|
7165
7165
|
return Y0 || (Y0 = 1, function(t, e) {
|
|
7166
7166
|
(function(r, s, n) {
|
|
7167
|
-
t.exports = s(
|
|
7167
|
+
t.exports = s(z(), Re(), Ue(), De(), ee());
|
|
7168
7168
|
})(N, function(r) {
|
|
7169
7169
|
return function() {
|
|
7170
7170
|
var s = r, n = s.lib, i = n.StreamCipher, x = s.algo, d = [], p = [], a = [], c = x.RabbitLegacy = i.extend({
|
|
@@ -7226,7 +7226,7 @@ function Yi() {
|
|
|
7226
7226
|
}
|
|
7227
7227
|
(function(t, e) {
|
|
7228
7228
|
(function(r, s, n) {
|
|
7229
|
-
t.exports = s(
|
|
7229
|
+
t.exports = s(z(), gt(), Pi(), Ii(), Re(), Ci(), Ue(), Tr(), ms(), Ti(), gs(), Ri(), Ai(), Oi(), Rr(), Ui(), De(), ee(), Di(), Fi(), Hi(), Mi(), Ni(), Li(), qi(), Wi(), zi(), ji(), Ki(), xs(), Gi(), Xi(), Vi(), Yi());
|
|
7230
7230
|
})(N, function(r) {
|
|
7231
7231
|
return r;
|
|
7232
7232
|
});
|
|
@@ -7523,7 +7523,7 @@ const mr = new so(), no = {
|
|
|
7523
7523
|
}
|
|
7524
7524
|
};
|
|
7525
7525
|
typeof window < "u" && (window.BootpayStore = no);
|
|
7526
|
-
const
|
|
7526
|
+
const q = {
|
|
7527
7527
|
el: void 0,
|
|
7528
7528
|
data: void 0,
|
|
7529
7529
|
termsPassed: !1,
|
|
@@ -7531,8 +7531,9 @@ const z = {
|
|
|
7531
7531
|
card_quota: []
|
|
7532
7532
|
},
|
|
7533
7533
|
widgetType: 1,
|
|
7534
|
+
hooks: {},
|
|
7534
7535
|
setWidgetData(t, e) {
|
|
7535
|
-
this.el = String(t).replace(/#/gi, ""), this.data = e, this.termsPassed = !1, this.data.terms = this.data.terms ?? [], this.widgetType = 1, this.data.widget = 1, this.data.use_terms = this.data.use_terms ?? !0;
|
|
7536
|
+
this.hooks = e.hooks ?? {}, this.el = String(t).replace(/#/gi, ""), this.data = e, this.termsPassed = !1, this.data.terms = this.data.terms ?? [], this.widgetType = 1, this.data.widget = 1, this.data.use_terms = this.data.use_terms ?? !0;
|
|
7536
7537
|
},
|
|
7537
7538
|
setPayment(t, e, r, s = !1, n, i) {
|
|
7538
7539
|
this.data.pg = t, this.data.method = e, this.data.wallet_id = r, this.termsPassed = s, this.data.terms = n, this.widgetExtra = i;
|
|
@@ -7596,11 +7597,17 @@ const z = {
|
|
|
7596
7597
|
},
|
|
7597
7598
|
getRequestPaymentData(t = void 0) {
|
|
7598
7599
|
return this.data.widget_sandbox = this.data.sandbox, this.data.extra = this.getExtra(t.extra), wt(t, this.data);
|
|
7600
|
+
},
|
|
7601
|
+
/**
|
|
7602
|
+
* 위젯에서 호출되는 훅
|
|
7603
|
+
*/
|
|
7604
|
+
callHook(t, e) {
|
|
7605
|
+
this.data.hooks && this.data.hooks[t] && typeof this.data.hooks[t] == "function" && this.data.hooks[t](e);
|
|
7599
7606
|
}
|
|
7600
7607
|
};
|
|
7601
7608
|
class io extends ge {
|
|
7602
7609
|
constructor() {
|
|
7603
|
-
super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore =
|
|
7610
|
+
super(), this.$iFrameId = "bootpay-widget-iframe", this.$widgetStore = q, this.$template = this.defaultIframeHtml();
|
|
7604
7611
|
}
|
|
7605
7612
|
/**
|
|
7606
7613
|
* 첫 Rendering을 진행한다
|
|
@@ -7651,7 +7658,7 @@ class io extends ge {
|
|
|
7651
7658
|
const G = new io();
|
|
7652
7659
|
class oo extends ge {
|
|
7653
7660
|
constructor() {
|
|
7654
|
-
super(), this.$oopayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore =
|
|
7661
|
+
super(), this.$oopayWindowId = "__bootpay-card-easy-window", this.$iFrameId = "__bootpay-card-easy-iframe", this.$windowId = "__bootpay-card-easy-container-window", this.$additionalClass = D.isMobile() ? "transparent" : "rounded-iframe transparent", this.$template = this.template(), this.$widgetStore = q;
|
|
7655
7662
|
}
|
|
7656
7663
|
template() {
|
|
7657
7664
|
return `
|
|
@@ -7822,7 +7829,7 @@ const ht = new co(), lo = {
|
|
|
7822
7829
|
return G.postMessage("bootpayWidgetOOpayReload", t);
|
|
7823
7830
|
},
|
|
7824
7831
|
bootpayWidgetResize(t) {
|
|
7825
|
-
return this.callBootpayDOMEvent("widget-resize", t), G.resize(t);
|
|
7832
|
+
return this.callBootpayDOMEvent("widget-resize", t), q.callHook("resize", t), G.resize(t);
|
|
7826
7833
|
},
|
|
7827
7834
|
bootpayWidgetShowInterestInformation(t) {
|
|
7828
7835
|
return ke.showCardInterestInformation(t);
|
|
@@ -7883,7 +7890,7 @@ const ht = new co(), lo = {
|
|
|
7883
7890
|
});
|
|
7884
7891
|
},
|
|
7885
7892
|
bootpayWidgetTermAllAgree(t) {
|
|
7886
|
-
this.callBootpayDOMEvent("all-agree-terms", t);
|
|
7893
|
+
this.callBootpayDOMEvent("all-agree-terms", t), q.callHook("allTermsAccepted", t);
|
|
7887
7894
|
},
|
|
7888
7895
|
bootpayWidgetSelectPayment(t) {
|
|
7889
7896
|
const { method_alias: e, payment_type: r, wallet_id: s } = t;
|
|
@@ -7894,10 +7901,10 @@ const ht = new co(), lo = {
|
|
|
7894
7901
|
});
|
|
7895
7902
|
},
|
|
7896
7903
|
bootpayWidgetReady(t) {
|
|
7897
|
-
this.callBootpayDOMEvent("widget-ready", t);
|
|
7904
|
+
this.callBootpayDOMEvent("widget-ready", t), q.callHook("ready", t);
|
|
7898
7905
|
},
|
|
7899
7906
|
bootpayWidgetUpdateStore(t) {
|
|
7900
|
-
|
|
7907
|
+
q.updateOnProcessing({
|
|
7901
7908
|
...t
|
|
7902
7909
|
});
|
|
7903
7910
|
},
|
|
@@ -7925,7 +7932,7 @@ const ht = new co(), lo = {
|
|
|
7925
7932
|
*/
|
|
7926
7933
|
triggerGlobalChangeEvent(t) {
|
|
7927
7934
|
var e;
|
|
7928
|
-
t.completed = M(t.pg) && M(t.method) && (t.term_passed === !0 || !
|
|
7935
|
+
t.completed = M(t.pg) && M(t.method) && (t.term_passed === !0 || !q.data.use_terms) && (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(t.method) === -1 || t.wallet_id !== void 0), (q.data.pg !== t.pg || q.data.method !== t.method || q.data.wallet_id !== t.wallet_id || JSON.stringify(q.widgetExtra) !== JSON.stringify(t.extra)) && (this.callBootpayDOMEvent("widget-change-payment", t), q.callHook("changePayment", t)), JSON.stringify((e = t.select_terms) == null ? void 0 : e.filter((r) => r.agree === !0)) !== JSON.stringify(q.data.terms.filter((r) => r.agree === !0)) && (this.callBootpayDOMEvent("widget-change-terms", t), q.callHook("changeTerms", t));
|
|
7929
7936
|
},
|
|
7930
7937
|
callBootpayDOMEvent(t, e = void 0) {
|
|
7931
7938
|
document.dispatchEvent(
|
|
@@ -7952,7 +7959,7 @@ class ho extends Ae {
|
|
|
7952
7959
|
super(), this.message = Ar;
|
|
7953
7960
|
}
|
|
7954
7961
|
initialize() {
|
|
7955
|
-
|
|
7962
|
+
q.setWidgetData(
|
|
7956
7963
|
void 0,
|
|
7957
7964
|
{
|
|
7958
7965
|
application_id: void 0,
|
|
@@ -7973,7 +7980,7 @@ class ho extends Ae {
|
|
|
7973
7980
|
throw new Error("결제금액은 1원 이상을 입력해주세요.");
|
|
7974
7981
|
if (this.$blank(r == null ? void 0 : r.application_id))
|
|
7975
7982
|
throw new Error("application_id가 입력되지 않았습니다.");
|
|
7976
|
-
this.initialize(),
|
|
7983
|
+
this.initialize(), q.setWidgetData(
|
|
7977
7984
|
e,
|
|
7978
7985
|
r
|
|
7979
7986
|
), G.render(), po.bind();
|
|
@@ -7990,7 +7997,7 @@ class ho extends Ae {
|
|
|
7990
7997
|
widget_key: a,
|
|
7991
7998
|
external_terms: c
|
|
7992
7999
|
} = e;
|
|
7993
|
-
|
|
8000
|
+
q.updateOnProcessing({
|
|
7994
8001
|
price: r,
|
|
7995
8002
|
tax_free: s,
|
|
7996
8003
|
currency: n,
|
|
@@ -8017,10 +8024,10 @@ class ho extends Ae {
|
|
|
8017
8024
|
G.destroy();
|
|
8018
8025
|
}
|
|
8019
8026
|
selectPayment(e, r, s, n = !1, i, x) {
|
|
8020
|
-
|
|
8027
|
+
q.setPayment(e, r, s, n, i, x), F.debug("selectPayment", `pg: ${e}, method: ${r}, wallet_id: ${s}, terms: ${n}, select_terms: ${JSON.stringify(i)}, extra: ${JSON.stringify(x)}`);
|
|
8021
8028
|
}
|
|
8022
8029
|
currentTermsCondition() {
|
|
8023
|
-
return
|
|
8030
|
+
return q.data.terms;
|
|
8024
8031
|
}
|
|
8025
8032
|
/**
|
|
8026
8033
|
* 부트페이 결제 요청을 한다
|
|
@@ -8028,7 +8035,7 @@ class ho extends Ae {
|
|
|
8028
8035
|
* @date: 2023-06-21
|
|
8029
8036
|
*/
|
|
8030
8037
|
async requestPayment(e) {
|
|
8031
|
-
return this.widgetRequestPaymentValidate(1), Ee.requestPayment(
|
|
8038
|
+
return this.widgetRequestPaymentValidate(1), Ee.requestPayment(q.getRequestPaymentData(e));
|
|
8032
8039
|
}
|
|
8033
8040
|
/**
|
|
8034
8041
|
* 부트페이 정기결제 요청
|
|
@@ -8036,7 +8043,7 @@ class ho extends Ae {
|
|
|
8036
8043
|
* @date: 2024-08-19
|
|
8037
8044
|
*/
|
|
8038
8045
|
async requestSubscription(e) {
|
|
8039
|
-
return this.widgetRequestPaymentValidate(2), Ee.requestSubscription(
|
|
8046
|
+
return this.widgetRequestPaymentValidate(2), Ee.requestSubscription(q.getRequestPaymentData(e));
|
|
8040
8047
|
}
|
|
8041
8048
|
isRendered() {
|
|
8042
8049
|
return G.isRendered();
|
|
@@ -8067,35 +8074,35 @@ class ho extends Ae {
|
|
|
8067
8074
|
*/
|
|
8068
8075
|
currentPaymentParameters() {
|
|
8069
8076
|
return this.widgetRequestPaymentValidate(), {
|
|
8070
|
-
pg:
|
|
8071
|
-
method:
|
|
8072
|
-
wallet_id:
|
|
8073
|
-
terms:
|
|
8074
|
-
widget_key:
|
|
8075
|
-
widget_sandbox:
|
|
8076
|
-
extra:
|
|
8077
|
+
pg: q.data.pg,
|
|
8078
|
+
method: q.data.method,
|
|
8079
|
+
wallet_id: q.data.wallet_id,
|
|
8080
|
+
terms: q.data.terms,
|
|
8081
|
+
widget_key: q.data.widget_key,
|
|
8082
|
+
widget_sandbox: q.data.sandbox,
|
|
8083
|
+
extra: q.getExtra({})
|
|
8077
8084
|
};
|
|
8078
8085
|
}
|
|
8079
8086
|
widgetRequestPaymentValidate(e = void 0) {
|
|
8080
|
-
if (e !== void 0 &&
|
|
8087
|
+
if (e !== void 0 && q.widgetType !== e)
|
|
8081
8088
|
throw new pe({
|
|
8082
8089
|
event: "error",
|
|
8083
8090
|
error_code: "RC_WIDGET_TYPE_INVALID",
|
|
8084
8091
|
message: e === 1 ? this.message.getLocaleMessage("widgetTypeNotPayment", "ko") : this.message.getLocaleMessage("widgetTypeNotSubscription", "ko")
|
|
8085
8092
|
});
|
|
8086
|
-
if (this.$blank(
|
|
8093
|
+
if (this.$blank(q.data.pg) || this.$blank(q.data.method))
|
|
8087
8094
|
throw new pe({
|
|
8088
8095
|
event: "error",
|
|
8089
8096
|
error_code: "RC_PG_METHOD_NOT_SELECTED",
|
|
8090
8097
|
message: this.message.getLocaleMessage("notSelectPayment", "ko")
|
|
8091
8098
|
});
|
|
8092
|
-
if (!
|
|
8099
|
+
if (!q.termsPassed && q.data.use_terms)
|
|
8093
8100
|
throw new pe({
|
|
8094
8101
|
event: "error",
|
|
8095
8102
|
error_code: "RC_TERMS_NOT_AGREE",
|
|
8096
8103
|
message: this.message.getLocaleMessage("termsNotAgree", "ko")
|
|
8097
8104
|
});
|
|
8098
|
-
if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(
|
|
8105
|
+
if (["OOPAY_CARD", "OOPAY_AUTOMATIC_TRANSFER"].indexOf(q.data.method) > -1 && q.data.wallet_id === void 0)
|
|
8099
8106
|
throw new pe({
|
|
8100
8107
|
event: "error",
|
|
8101
8108
|
error_code: "RC_OOPAY_NEED_SELECT_WALLET",
|
|
@@ -8215,10 +8222,10 @@ const se = new ho(), fo = {
|
|
|
8215
8222
|
return se.currentPaymentParameters();
|
|
8216
8223
|
},
|
|
8217
8224
|
isWidgetTypeSubscription() {
|
|
8218
|
-
return
|
|
8225
|
+
return q.widgetType === 2;
|
|
8219
8226
|
},
|
|
8220
8227
|
isWidgetTypePayment() {
|
|
8221
|
-
return
|
|
8228
|
+
return q.widgetType === 1;
|
|
8222
8229
|
}
|
|
8223
8230
|
};
|
|
8224
8231
|
typeof window < "u" && (window.BootpayWidget = fo);
|
|
@@ -8227,6 +8234,7 @@ class xo extends bs {
|
|
|
8227
8234
|
super(), this.data = {
|
|
8228
8235
|
application_id: "",
|
|
8229
8236
|
user_token: "",
|
|
8237
|
+
widget_key: "",
|
|
8230
8238
|
hooks: {}
|
|
8231
8239
|
};
|
|
8232
8240
|
}
|
|
@@ -8243,6 +8251,7 @@ class xo extends bs {
|
|
|
8243
8251
|
return encodeURIComponent(
|
|
8244
8252
|
this.encrypt({
|
|
8245
8253
|
user_token: this.data.user_token,
|
|
8254
|
+
widget_key: this.data.widget_key,
|
|
8246
8255
|
sandbox: this.data.sandbox,
|
|
8247
8256
|
extra: this.data.extra,
|
|
8248
8257
|
log_level: F.level
|