@paypay/mini-app-js-sdk 1.65.0 → 1.67.0
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/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +43 -40
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -50,8 +50,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
50
50
|
}
|
|
51
51
|
class JsBridge {
|
|
52
52
|
constructor(global2) {
|
|
53
|
-
this.version = "1.
|
|
54
|
-
this.revision = "
|
|
53
|
+
this.version = "1.67.0";
|
|
54
|
+
this.revision = "2ea7ec9";
|
|
55
55
|
this.messageHandlers = /* @__PURE__ */ new Map();
|
|
56
56
|
this.responseCallbacks = /* @__PURE__ */ new Map();
|
|
57
57
|
this.global = global2;
|
|
@@ -2099,7 +2099,7 @@ const opaUrl = () => {
|
|
|
2099
2099
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2100
2100
|
let headers = new Headers({
|
|
2101
2101
|
"Content-Type": "application/json",
|
|
2102
|
-
"Client-Version": "1.
|
|
2102
|
+
"Client-Version": "1.67.0",
|
|
2103
2103
|
"Client-OS-Type": getRuntime(),
|
|
2104
2104
|
...customHeaders
|
|
2105
2105
|
});
|
|
@@ -8033,7 +8033,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
8033
8033
|
}
|
|
8034
8034
|
return target;
|
|
8035
8035
|
};
|
|
8036
|
-
const _hoisted_1$
|
|
8036
|
+
const _hoisted_1$Z = /* @__PURE__ */ createBaseVNode("div", null, null, -1);
|
|
8037
8037
|
function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8038
8038
|
return openBlock(), createElementBlock("div", {
|
|
8039
8039
|
class: normalizeClass(_ctx.$style.loading)
|
|
@@ -8044,7 +8044,7 @@ function _sfc_render$1J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8044
8044
|
createBaseVNode("div", {
|
|
8045
8045
|
class: normalizeClass(_ctx.$style.bounce2)
|
|
8046
8046
|
}, null, 2),
|
|
8047
|
-
_hoisted_1$
|
|
8047
|
+
_hoisted_1$Z
|
|
8048
8048
|
], 2);
|
|
8049
8049
|
}
|
|
8050
8050
|
const cssModules$1t = {};
|
|
@@ -8740,7 +8740,7 @@ const _sfc_main$1I = defineComponent({
|
|
|
8740
8740
|
getButtonType
|
|
8741
8741
|
}
|
|
8742
8742
|
});
|
|
8743
|
-
const _hoisted_1$
|
|
8743
|
+
const _hoisted_1$Y = ["src"];
|
|
8744
8744
|
function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8745
8745
|
const _component_Button = resolveComponent("Button");
|
|
8746
8746
|
const _component_ActionSheet = resolveComponent("ActionSheet");
|
|
@@ -8761,7 +8761,7 @@ function _sfc_render$1I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8761
8761
|
class: normalizeClass(_ctx.style.errorIcon),
|
|
8762
8762
|
style: normalizeStyle(_ctx.iconStyle),
|
|
8763
8763
|
alt: ""
|
|
8764
|
-
}, null, 14, _hoisted_1$
|
|
8764
|
+
}, null, 14, _hoisted_1$Y)
|
|
8765
8765
|
], 2),
|
|
8766
8766
|
_ctx.errorTitle ? (openBlock(), createElementBlock("div", {
|
|
8767
8767
|
key: 0,
|
|
@@ -9708,7 +9708,7 @@ const _sfc_main$1F = defineComponent({
|
|
|
9708
9708
|
};
|
|
9709
9709
|
}
|
|
9710
9710
|
});
|
|
9711
|
-
const _hoisted_1$
|
|
9711
|
+
const _hoisted_1$X = ["src"];
|
|
9712
9712
|
const _hoisted_2$r = ["src"];
|
|
9713
9713
|
function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9714
9714
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
@@ -9731,7 +9731,7 @@ function _sfc_render$1F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9731
9731
|
src: _ctx.img_iconBalanceIcon,
|
|
9732
9732
|
class: normalizeClass(_ctx.$style.img),
|
|
9733
9733
|
alt: ""
|
|
9734
|
-
}, null, 10, _hoisted_1$
|
|
9734
|
+
}, null, 10, _hoisted_1$X)
|
|
9735
9735
|
], 2),
|
|
9736
9736
|
createBaseVNode("div", {
|
|
9737
9737
|
class: normalizeClass(_ctx.$style.walletContainer)
|
|
@@ -9908,7 +9908,7 @@ const _sfc_main$1E = defineComponent({
|
|
|
9908
9908
|
};
|
|
9909
9909
|
}
|
|
9910
9910
|
});
|
|
9911
|
-
const _hoisted_1$
|
|
9911
|
+
const _hoisted_1$W = ["src"];
|
|
9912
9912
|
const _hoisted_2$q = ["src"];
|
|
9913
9913
|
function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9914
9914
|
return openBlock(), createElementBlock("div", {
|
|
@@ -9930,7 +9930,7 @@ function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9930
9930
|
class: normalizeClass([_ctx.style.cardImg, _ctx.creditInfo.style]),
|
|
9931
9931
|
src: _ctx.creditInfo.logo,
|
|
9932
9932
|
alt: ""
|
|
9933
|
-
}, null, 10, _hoisted_1$
|
|
9933
|
+
}, null, 10, _hoisted_1$W)) : createCommentVNode("", true)
|
|
9934
9934
|
], 2),
|
|
9935
9935
|
createBaseVNode("div", {
|
|
9936
9936
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -10063,7 +10063,7 @@ const _sfc_main$1D = defineComponent({
|
|
|
10063
10063
|
};
|
|
10064
10064
|
}
|
|
10065
10065
|
});
|
|
10066
|
-
const _hoisted_1$
|
|
10066
|
+
const _hoisted_1$V = ["src"];
|
|
10067
10067
|
function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10068
10068
|
return openBlock(), createElementBlock("div", {
|
|
10069
10069
|
class: normalizeClass([
|
|
@@ -10087,7 +10087,7 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10087
10087
|
class: normalizeClass([_ctx.style.bankImg, { [_ctx.style.round]: _ctx.round }]),
|
|
10088
10088
|
src: _ctx.bankInfo.logo,
|
|
10089
10089
|
alt: ""
|
|
10090
|
-
}, null, 10, _hoisted_1$
|
|
10090
|
+
}, null, 10, _hoisted_1$V)
|
|
10091
10091
|
], 2),
|
|
10092
10092
|
createBaseVNode("div", {
|
|
10093
10093
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -10187,7 +10187,7 @@ const _sfc_main$1C = defineComponent({
|
|
|
10187
10187
|
};
|
|
10188
10188
|
}
|
|
10189
10189
|
});
|
|
10190
|
-
const _hoisted_1$
|
|
10190
|
+
const _hoisted_1$U = ["src"];
|
|
10191
10191
|
function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10192
10192
|
return openBlock(), createElementBlock("div", {
|
|
10193
10193
|
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.container])
|
|
@@ -10197,7 +10197,7 @@ function _sfc_render$1C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10197
10197
|
class: normalizeClass(_ctx.$style.sbidImg),
|
|
10198
10198
|
src: _ctx.img_softbank,
|
|
10199
10199
|
alt: ""
|
|
10200
|
-
}, null, 10, _hoisted_1$
|
|
10200
|
+
}, null, 10, _hoisted_1$U)
|
|
10201
10201
|
]),
|
|
10202
10202
|
createBaseVNode("span", {
|
|
10203
10203
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -10288,7 +10288,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
10288
10288
|
};
|
|
10289
10289
|
}
|
|
10290
10290
|
});
|
|
10291
|
-
const _hoisted_1$
|
|
10291
|
+
const _hoisted_1$T = ["src"];
|
|
10292
10292
|
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10293
10293
|
return openBlock(), createElementBlock("div", {
|
|
10294
10294
|
class: normalizeClass([
|
|
@@ -10305,7 +10305,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10305
10305
|
src: _ctx.img_payLater,
|
|
10306
10306
|
class: normalizeClass(_ctx.$style.imageContainer),
|
|
10307
10307
|
alt: ""
|
|
10308
|
-
}, null, 10, _hoisted_1$
|
|
10308
|
+
}, null, 10, _hoisted_1$T)
|
|
10309
10309
|
]),
|
|
10310
10310
|
createBaseVNode("div", {
|
|
10311
10311
|
class: normalizeClass(_ctx.$style.container)
|
|
@@ -23941,7 +23941,7 @@ const _sfc_main$1z = defineComponent({
|
|
|
23941
23941
|
};
|
|
23942
23942
|
}
|
|
23943
23943
|
});
|
|
23944
|
-
const _hoisted_1$
|
|
23944
|
+
const _hoisted_1$S = ["src"];
|
|
23945
23945
|
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23946
23946
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
23947
23947
|
return openBlock(), createElementBlock("div", {
|
|
@@ -23955,7 +23955,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23955
23955
|
class: normalizeClass(_ctx.style.img),
|
|
23956
23956
|
src: _ctx.img_iconBalanceIcon,
|
|
23957
23957
|
alt: ""
|
|
23958
|
-
}, null, 10, _hoisted_1$
|
|
23958
|
+
}, null, 10, _hoisted_1$S)
|
|
23959
23959
|
], 2),
|
|
23960
23960
|
createBaseVNode("div", {
|
|
23961
23961
|
class: normalizeClass(_ctx.style.label)
|
|
@@ -24170,7 +24170,7 @@ const _sfc_main$1y = defineComponent({
|
|
|
24170
24170
|
};
|
|
24171
24171
|
}
|
|
24172
24172
|
});
|
|
24173
|
-
const _hoisted_1$
|
|
24173
|
+
const _hoisted_1$R = ["src"];
|
|
24174
24174
|
const _hoisted_2$p = ["src"];
|
|
24175
24175
|
const _hoisted_3$b = ["onClick"];
|
|
24176
24176
|
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -24194,7 +24194,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24194
24194
|
src: _ctx.cardInfo.logo,
|
|
24195
24195
|
class: normalizeClass([_ctx.style.img, _ctx.cardInfo.style]),
|
|
24196
24196
|
alt: ""
|
|
24197
|
-
}, null, 10, _hoisted_1$
|
|
24197
|
+
}, null, 10, _hoisted_1$R)
|
|
24198
24198
|
], 2)
|
|
24199
24199
|
], 2),
|
|
24200
24200
|
createBaseVNode("div", {
|
|
@@ -24408,7 +24408,7 @@ const _sfc_main$1x = defineComponent({
|
|
|
24408
24408
|
};
|
|
24409
24409
|
}
|
|
24410
24410
|
});
|
|
24411
|
-
const _hoisted_1$
|
|
24411
|
+
const _hoisted_1$Q = ["src"];
|
|
24412
24412
|
const _hoisted_2$o = ["onClick"];
|
|
24413
24413
|
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24414
24414
|
const _component_Button = resolveComponent("Button");
|
|
@@ -24431,7 +24431,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24431
24431
|
class: normalizeClass([_ctx.style.img, { [_ctx.style.round]: _ctx.round }]),
|
|
24432
24432
|
src: _ctx.bankInfo.logo,
|
|
24433
24433
|
alt: ""
|
|
24434
|
-
}, null, 10, _hoisted_1$
|
|
24434
|
+
}, null, 10, _hoisted_1$Q)
|
|
24435
24435
|
], 2)
|
|
24436
24436
|
], 2),
|
|
24437
24437
|
createBaseVNode("div", {
|
|
@@ -24582,7 +24582,7 @@ const _sfc_main$1w = defineComponent({
|
|
|
24582
24582
|
};
|
|
24583
24583
|
}
|
|
24584
24584
|
});
|
|
24585
|
-
const _hoisted_1$
|
|
24585
|
+
const _hoisted_1$P = ["src"];
|
|
24586
24586
|
const _hoisted_2$n = ["onClick"];
|
|
24587
24587
|
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24588
24588
|
const _component_Button = resolveComponent("Button");
|
|
@@ -24602,7 +24602,7 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24602
24602
|
class: normalizeClass(_ctx.style.img),
|
|
24603
24603
|
src: _ctx.img_softbank,
|
|
24604
24604
|
alt: ""
|
|
24605
|
-
}, null, 10, _hoisted_1$
|
|
24605
|
+
}, null, 10, _hoisted_1$P)
|
|
24606
24606
|
], 2),
|
|
24607
24607
|
createBaseVNode("div", {
|
|
24608
24608
|
class: normalizeClass(_ctx.style.content)
|
|
@@ -24749,7 +24749,7 @@ const _sfc_main$1v = defineComponent({
|
|
|
24749
24749
|
};
|
|
24750
24750
|
}
|
|
24751
24751
|
});
|
|
24752
|
-
const _hoisted_1$
|
|
24752
|
+
const _hoisted_1$O = ["src"];
|
|
24753
24753
|
const _hoisted_2$m = ["onClick"];
|
|
24754
24754
|
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24755
24755
|
const _component_Button = resolveComponent("Button");
|
|
@@ -24770,7 +24770,7 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24770
24770
|
class: normalizeClass(_ctx.$style.img),
|
|
24771
24771
|
src: _ctx.img_payLater,
|
|
24772
24772
|
alt: ""
|
|
24773
|
-
}, null, 10, _hoisted_1$
|
|
24773
|
+
}, null, 10, _hoisted_1$O)
|
|
24774
24774
|
], 2),
|
|
24775
24775
|
createBaseVNode("div", {
|
|
24776
24776
|
class: normalizeClass(_ctx.$style.content)
|
|
@@ -24928,14 +24928,12 @@ const _sfc_main$1u = defineComponent({
|
|
|
24928
24928
|
};
|
|
24929
24929
|
}
|
|
24930
24930
|
});
|
|
24931
|
-
const _hoisted_1$O = ["aria-selected"];
|
|
24932
24931
|
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24933
24932
|
const _component_PaymentMethod = resolveComponent("PaymentMethod");
|
|
24934
24933
|
return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.paymentMethods, (paymentMethod2, index2) => {
|
|
24935
24934
|
return openBlock(), createElementBlock("div", {
|
|
24936
24935
|
key: paymentMethod2.paymentMethodId,
|
|
24937
|
-
role: "
|
|
24938
|
-
"aria-selected": index2 === _ctx.selectPaymentIndex,
|
|
24936
|
+
role: "listitem",
|
|
24939
24937
|
class: normalizeClass([
|
|
24940
24938
|
_ctx.style.wrapperClass,
|
|
24941
24939
|
{ [_ctx.style.methodItem]: true, [_ctx.style.topupMethodItem]: _ctx.isTopup }
|
|
@@ -24960,7 +24958,7 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24960
24958
|
"ignore-bank-maintenance-flag": _ctx.ignoreBankMaintenanceFlag,
|
|
24961
24959
|
onSelect: ($event) => _ctx.select(index2)
|
|
24962
24960
|
}, null, 8, ["payment-method", "ignore-bank-maintenance-flag", "onSelect"])
|
|
24963
|
-
],
|
|
24961
|
+
], 2);
|
|
24964
24962
|
}), 128);
|
|
24965
24963
|
}
|
|
24966
24964
|
const cssModules$1e = {};
|
|
@@ -36636,7 +36634,7 @@ function debug(params) {
|
|
|
36636
36634
|
function execute$a(params) {
|
|
36637
36635
|
var _a2;
|
|
36638
36636
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
36639
|
-
v: "1.
|
|
36637
|
+
v: "1.67.0"
|
|
36640
36638
|
});
|
|
36641
36639
|
}
|
|
36642
36640
|
function useCallBack(props, ctx) {
|
|
@@ -43926,7 +43924,7 @@ const initUpdateWarning = (params) => {
|
|
|
43926
43924
|
document.body.appendChild(container2);
|
|
43927
43925
|
};
|
|
43928
43926
|
async function initKycPassport(params) {
|
|
43929
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
|
43927
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
|
|
43930
43928
|
const success2 = params.success;
|
|
43931
43929
|
const fail = params.fail;
|
|
43932
43930
|
const complete = params.complete;
|
|
@@ -43980,7 +43978,12 @@ async function initKycPassport(params) {
|
|
|
43980
43978
|
} else {
|
|
43981
43979
|
const status2 = String((_p = (_o = (_n = res == null ? void 0 : res.body) == null ? void 0 : _n.unsigned) == null ? void 0 : _o.data) == null ? void 0 : _p.status);
|
|
43982
43980
|
if (status2 !== "COMPLETED") {
|
|
43983
|
-
|
|
43981
|
+
if (status2 === MiniAppErrorType.kycUpdateRequired && (params == null ? void 0 : params.isSkipKYCRequiredHalfsheet)) {
|
|
43982
|
+
(_q = params == null ? void 0 : params.fail) == null ? void 0 : _q.call(params, { errorCode: MiniAppErrorType.kycUpdateRequired });
|
|
43983
|
+
return (_r = params == null ? void 0 : params.complete) == null ? void 0 : _r.call(params);
|
|
43984
|
+
} else {
|
|
43985
|
+
return initKycPassportError(params, status2);
|
|
43986
|
+
}
|
|
43984
43987
|
}
|
|
43985
43988
|
let callbackUrl = new URL(params.callbackUrl);
|
|
43986
43989
|
callbackUrl.searchParams.set("ppFunction", "kycPassport");
|
|
@@ -43988,26 +43991,26 @@ async function initKycPassport(params) {
|
|
|
43988
43991
|
"ppEkycDocuments",
|
|
43989
43992
|
params.eKycDocuments ? params.eKycDocuments.join(",") : ""
|
|
43990
43993
|
);
|
|
43991
|
-
if (((
|
|
43994
|
+
if (((_u = (_t = (_s = res == null ? void 0 : res.body) == null ? void 0 : _s.unsigned) == null ? void 0 : _t.data) == null ? void 0 : _u.kycPassportMethod) === KycPassportMethod.biometric) {
|
|
43992
43995
|
try {
|
|
43993
43996
|
await startMultiFactorAuth({
|
|
43994
43997
|
type: KycPassportMethod.biometric,
|
|
43995
43998
|
...params,
|
|
43996
43999
|
callbackUrl: reconstructKycPassportCallbackUrl(
|
|
43997
44000
|
callbackUrl.href,
|
|
43998
|
-
(
|
|
44001
|
+
(_x = (_w = (_v = res == null ? void 0 : res.body) == null ? void 0 : _v.unsigned) == null ? void 0 : _w.data) == null ? void 0 : _x.kycPassportMethod
|
|
43999
44002
|
)
|
|
44000
44003
|
});
|
|
44001
44004
|
} catch (_) {
|
|
44002
|
-
(
|
|
44003
|
-
(
|
|
44005
|
+
(_y = params.fail) == null ? void 0 : _y.call(params, { errorCode: MiniAppErrorType.invalidUrl });
|
|
44006
|
+
(_z = params.complete) == null ? void 0 : _z.call(params);
|
|
44004
44007
|
}
|
|
44005
|
-
} else if (((
|
|
44008
|
+
} else if (((_C = (_B = (_A = res == null ? void 0 : res.body) == null ? void 0 : _A.unsigned) == null ? void 0 : _B.data) == null ? void 0 : _C.kycPassportMethod) === KycPassportMethod.otp) {
|
|
44006
44009
|
initSmsAuth({
|
|
44007
44010
|
...params,
|
|
44008
44011
|
callbackUrl: reconstructKycPassportCallbackUrl(
|
|
44009
44012
|
callbackUrl.href,
|
|
44010
|
-
(
|
|
44013
|
+
(_F = (_E = (_D = res == null ? void 0 : res.body) == null ? void 0 : _D.unsigned) == null ? void 0 : _E.data) == null ? void 0 : _F.kycPassportMethod
|
|
44011
44014
|
)
|
|
44012
44015
|
});
|
|
44013
44016
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -266,6 +266,7 @@ export interface RegisterKycParams extends NativeParams<unknown> {
|
|
|
266
266
|
export interface InitKycPassportParams extends NativeParams<unknown> {
|
|
267
267
|
eKycDocuments?: Array<string>;
|
|
268
268
|
callbackUrl: string;
|
|
269
|
+
isSkipKYCRequiredHalfsheet?: boolean;
|
|
269
270
|
}
|
|
270
271
|
export interface StartMultiFactorAuthParams extends NativeParams<MiniAppResult> {
|
|
271
272
|
type: string;
|