@paypay/mini-app-js-sdk 1.67.0 → 1.69.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/composition-api/dom/useEventListener.d.ts +1 -1
- package/dist/mini-app-js-sdk.browser.js +1 -1
- package/dist/mini-app-js-sdk.es.js +196 -122
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/makePayment.d.ts +6 -0
- package/dist/model/miniAppError.d.ts +2 -1
- package/dist/package/lottie/index.d.ts +1 -1
- package/dist/package/payment-method/Bank.vue.d.ts +1 -0
- package/dist/package/payment-type/Bank.vue.d.ts +1 -0
- package/dist/types.d.ts +5 -4
- package/dist/utils/helper.d.ts +1 -0
- package/dist/views/get-kyc-passport/types.d.ts +1 -1
- package/dist/views/make-payment/App.vue.d.ts +372 -0
- package/dist/views/make-payment/Main.vue.d.ts +372 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +69 -0
- package/dist/views/make-payment/store.d.ts +372 -0
- package/dist/views/register-user-info/types.d.ts +2 -2
- package/dist/views/registerPaymentFeatures/types.d.ts +1 -1
- package/package.json +9 -8
|
@@ -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.69.0";
|
|
54
|
+
this.revision = "21cf0fe";
|
|
55
55
|
this.messageHandlers = /* @__PURE__ */ new Map();
|
|
56
56
|
this.responseCallbacks = /* @__PURE__ */ new Map();
|
|
57
57
|
this.global = global2;
|
|
@@ -79,7 +79,7 @@ class JsBridge {
|
|
|
79
79
|
methodParams,
|
|
80
80
|
(data2) => {
|
|
81
81
|
var _a2, _b, _c;
|
|
82
|
-
|
|
82
|
+
const returnData = ((_c = (_b = (_a2 = this.global) == null ? void 0 : _a2.webkit) == null ? void 0 : _b.messageHandlers) == null ? void 0 : _c[methodName]) ? JSON.parse(data2 == null ? void 0 : data2.data) : data2 == null ? void 0 : data2.data;
|
|
83
83
|
switch (data2.status) {
|
|
84
84
|
case "complete":
|
|
85
85
|
complete && complete(returnData);
|
|
@@ -191,6 +191,7 @@ var MiniAppErrorType = /* @__PURE__ */ ((MiniAppErrorType2) => {
|
|
|
191
191
|
MiniAppErrorType2["kycUpdateRequired"] = "KYC_UPDATE_REQUIRED";
|
|
192
192
|
MiniAppErrorType2["notCompleted"] = "NOT_COMPLETED";
|
|
193
193
|
MiniAppErrorType2["kycValidationInProcess"] = "KYC_VALIDATION_IN_PROCESS";
|
|
194
|
+
MiniAppErrorType2["noLocationData"] = "NO_LOCATION_DATA";
|
|
194
195
|
return MiniAppErrorType2;
|
|
195
196
|
})(MiniAppErrorType || {});
|
|
196
197
|
class PayPayJsBridgeBase {
|
|
@@ -842,7 +843,8 @@ function saveDeviceUUID(uuid) {
|
|
|
842
843
|
saveCookie(PpLocalStorageKey.deviceUUID, uuid, CookieDuration.oneYear);
|
|
843
844
|
}
|
|
844
845
|
function getDeviceUUIDFromNative() {
|
|
845
|
-
|
|
846
|
+
var _a2;
|
|
847
|
+
return (_a2 = getValueFromUA("PayPayMiniAppDeviceId")) != null ? _a2 : "";
|
|
846
848
|
}
|
|
847
849
|
function getDeviceUUID() {
|
|
848
850
|
let uuid = api.get(PpLocalStorageKey.deviceUUID) || "";
|
|
@@ -1821,7 +1823,7 @@ function trigger$1(target, type) {
|
|
|
1821
1823
|
function checkDuplicateTopup(amount2) {
|
|
1822
1824
|
try {
|
|
1823
1825
|
if (getLastTopup()) {
|
|
1824
|
-
|
|
1826
|
+
const lastTopUpVal = JSON.parse(getLastTopup());
|
|
1825
1827
|
return lastTopUpVal.amount === amount2 && Date.now() - lastTopUpVal.topupAt <= 15 * 60 * 1e3;
|
|
1826
1828
|
} else {
|
|
1827
1829
|
return false;
|
|
@@ -2079,6 +2081,13 @@ function reconstructKycPassportCallbackUrl(url2, type) {
|
|
|
2079
2081
|
callbackUrl.searchParams.set(KycPassportUrlParam.authType, type);
|
|
2080
2082
|
return callbackUrl.href;
|
|
2081
2083
|
}
|
|
2084
|
+
function getValueFromUA(paramName) {
|
|
2085
|
+
const pattern = `\\s?${paramName}/(.*?)(\\s|$)`;
|
|
2086
|
+
const match = navigator.userAgent.match(pattern);
|
|
2087
|
+
if (match == null ? void 0 : match[1]) {
|
|
2088
|
+
return match == null ? void 0 : match[1];
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2082
2091
|
const opaUrl = () => {
|
|
2083
2092
|
switch (getEnv()) {
|
|
2084
2093
|
case "staging":
|
|
@@ -2097,9 +2106,9 @@ const opaUrl = () => {
|
|
|
2097
2106
|
}
|
|
2098
2107
|
};
|
|
2099
2108
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2100
|
-
|
|
2109
|
+
const headers = new Headers({
|
|
2101
2110
|
"Content-Type": "application/json",
|
|
2102
|
-
"Client-Version": "1.
|
|
2111
|
+
"Client-Version": "1.69.0",
|
|
2103
2112
|
"Client-OS-Type": getRuntime(),
|
|
2104
2113
|
...customHeaders
|
|
2105
2114
|
});
|
|
@@ -2136,13 +2145,13 @@ function ppFetchPrepare(options) {
|
|
|
2136
2145
|
options.params.payPayLang = "ja";
|
|
2137
2146
|
const requestInfo = `${opaUrl()}${options.url}${addParams(options.params)}`;
|
|
2138
2147
|
const { timeout = 3e4 } = options;
|
|
2139
|
-
|
|
2148
|
+
const controller = new AbortController();
|
|
2140
2149
|
window.setTimeout(() => controller.abort(), timeout);
|
|
2141
2150
|
const headers = createHeaderMiniAppApi(options.url, options.headers);
|
|
2142
2151
|
if (!headers) {
|
|
2143
2152
|
return null;
|
|
2144
2153
|
}
|
|
2145
|
-
|
|
2154
|
+
const requestInit = {
|
|
2146
2155
|
method: options.method,
|
|
2147
2156
|
headers,
|
|
2148
2157
|
signal: controller == null ? void 0 : controller.signal
|
|
@@ -8002,7 +8011,7 @@ function saveUserData() {
|
|
|
8002
8011
|
function copyToClipboard(copyTextParams) {
|
|
8003
8012
|
var _a2, _b;
|
|
8004
8013
|
const params = reconstructParams(copyTextParams);
|
|
8005
|
-
|
|
8014
|
+
const textarea = document.createElement("textarea");
|
|
8006
8015
|
textarea.setAttribute("readonly", "true");
|
|
8007
8016
|
textarea.setAttribute("contenteditable", "true");
|
|
8008
8017
|
textarea.value = params.value;
|
|
@@ -9475,8 +9484,8 @@ function useEventListener(type, listener, options = {}) {
|
|
|
9475
9484
|
}
|
|
9476
9485
|
const UI_BREAKPOINT = 767;
|
|
9477
9486
|
function useBreakpoints() {
|
|
9478
|
-
|
|
9479
|
-
|
|
9487
|
+
const windowWidth = ref(window.innerWidth);
|
|
9488
|
+
const windowHeight = ref(window.innerHeight);
|
|
9480
9489
|
const onResize = () => {
|
|
9481
9490
|
windowWidth.value = window.innerWidth;
|
|
9482
9491
|
windowHeight.value = window.innerHeight;
|
|
@@ -9972,24 +9981,26 @@ function _sfc_render$1E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9972
9981
|
const cssModules$1o = {};
|
|
9973
9982
|
cssModules$1o["$style"] = style0$1o;
|
|
9974
9983
|
var CreditCardType = /* @__PURE__ */ _export_sfc(_sfc_main$1E, [["render", _sfc_render$1E], ["__cssModules", cssModules$1o]]);
|
|
9975
|
-
const wrapperClass$n = "
|
|
9976
|
-
const ppmnaPaymentTypeContainer$2 = "
|
|
9977
|
-
const img$8 = "
|
|
9978
|
-
const imgContainer$3 = "
|
|
9979
|
-
const roundStylePaymentType$2 = "
|
|
9980
|
-
const main$3 = "
|
|
9981
|
-
const sub$2 = "
|
|
9982
|
-
const makePayWithAddress$2 = "
|
|
9983
|
-
const makePaymentTypeContainer$2 = "
|
|
9984
|
-
const arrowContainer$4 = "
|
|
9985
|
-
const arrowRight$2 = "
|
|
9986
|
-
const makePaymentArrowContainer$2 = "
|
|
9987
|
-
const bankImg = "
|
|
9988
|
-
const branchCode = "
|
|
9989
|
-
const
|
|
9990
|
-
const
|
|
9991
|
-
const
|
|
9992
|
-
const
|
|
9984
|
+
const wrapperClass$n = "_wrapperClass_1exo0_1";
|
|
9985
|
+
const ppmnaPaymentTypeContainer$2 = "_ppmnaPaymentTypeContainer_1exo0_1";
|
|
9986
|
+
const img$8 = "_img_1exo0_4";
|
|
9987
|
+
const imgContainer$3 = "_imgContainer_1exo0_19";
|
|
9988
|
+
const roundStylePaymentType$2 = "_roundStylePaymentType_1exo0_27";
|
|
9989
|
+
const main$3 = "_main_1exo0_33";
|
|
9990
|
+
const sub$2 = "_sub_1exo0_49";
|
|
9991
|
+
const makePayWithAddress$2 = "_makePayWithAddress_1exo0_59";
|
|
9992
|
+
const makePaymentTypeContainer$2 = "_makePaymentTypeContainer_1exo0_64";
|
|
9993
|
+
const arrowContainer$4 = "_arrowContainer_1exo0_69";
|
|
9994
|
+
const arrowRight$2 = "_arrowRight_1exo0_72";
|
|
9995
|
+
const makePaymentArrowContainer$2 = "_makePaymentArrowContainer_1exo0_82";
|
|
9996
|
+
const bankImg = "_bankImg_1exo0_91";
|
|
9997
|
+
const branchCode = "_branchCode_1exo0_95";
|
|
9998
|
+
const balance$1 = "_balance_1exo0_98";
|
|
9999
|
+
const branchName = "_branchName_1exo0_104";
|
|
10000
|
+
const content$g = "_content_1exo0_107";
|
|
10001
|
+
const roundContainer = "_roundContainer_1exo0_111";
|
|
10002
|
+
const round$2 = "_round_1exo0_27";
|
|
10003
|
+
const bankName = "_bankName_1exo0_117";
|
|
9993
10004
|
var style0$1n = {
|
|
9994
10005
|
wrapperClass: wrapperClass$n,
|
|
9995
10006
|
ppmnaPaymentTypeContainer: ppmnaPaymentTypeContainer$2,
|
|
@@ -10005,6 +10016,8 @@ var style0$1n = {
|
|
|
10005
10016
|
makePaymentArrowContainer: makePaymentArrowContainer$2,
|
|
10006
10017
|
bankImg,
|
|
10007
10018
|
branchCode,
|
|
10019
|
+
balance: balance$1,
|
|
10020
|
+
branchName,
|
|
10008
10021
|
content: content$g,
|
|
10009
10022
|
roundContainer,
|
|
10010
10023
|
round: round$2,
|
|
@@ -10043,7 +10056,7 @@ const _sfc_main$1D = defineComponent({
|
|
|
10043
10056
|
const logo = bankInfo22 == null ? void 0 : bankInfo22.bankLogoUrl;
|
|
10044
10057
|
const name2 = bankInfo22 == null ? void 0 : bankInfo22.bankName;
|
|
10045
10058
|
let branchCode2 = bankInfo22 == null ? void 0 : bankInfo22.bankBranchCode;
|
|
10046
|
-
const
|
|
10059
|
+
const branchName2 = bankInfo22 == null ? void 0 : bankInfo22.bankBranchName;
|
|
10047
10060
|
const digits = bankInfo22 == null ? void 0 : bankInfo22.bankAccountNumberLast2digits;
|
|
10048
10061
|
if ((bankInfo22 == null ? void 0 : bankInfo22.bankCode) !== bankCode.YUCHO_BANK_CODE) {
|
|
10049
10062
|
branchCode2 = getTypeText$2((_b = bankInfo22 == null ? void 0 : bankInfo22.bankAccountType) != null ? _b : "");
|
|
@@ -10052,13 +10065,29 @@ const _sfc_main$1D = defineComponent({
|
|
|
10052
10065
|
logo,
|
|
10053
10066
|
name: name2,
|
|
10054
10067
|
branchCode: branchCode2,
|
|
10055
|
-
branchName,
|
|
10068
|
+
branchName: branchName2,
|
|
10056
10069
|
digits
|
|
10057
10070
|
};
|
|
10058
10071
|
});
|
|
10059
10072
|
const style = useCssModule();
|
|
10073
|
+
const balance2 = computed(() => {
|
|
10074
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
10075
|
+
const descInfo = (_a2 = props.bank) == null ? void 0 : _a2.paymentMethodDescriptionInfo;
|
|
10076
|
+
const bankInfo22 = (_b = props.bank) == null ? void 0 : _b.bankInfo;
|
|
10077
|
+
const currency = (_d = (_c = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _c.currency) != null ? _d : "\u5186";
|
|
10078
|
+
if (!(bankInfo22 == null ? void 0 : bankInfo22.showAmount)) {
|
|
10079
|
+
if (((_e = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _e.amount) == null) {
|
|
10080
|
+
return null;
|
|
10081
|
+
} else {
|
|
10082
|
+
return "-------".concat(currency);
|
|
10083
|
+
}
|
|
10084
|
+
} else {
|
|
10085
|
+
return formatAmount((_f = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _f.amount).concat(currency);
|
|
10086
|
+
}
|
|
10087
|
+
});
|
|
10060
10088
|
return {
|
|
10061
10089
|
bankInfo: bankInfo2,
|
|
10090
|
+
balance: balance2,
|
|
10062
10091
|
style
|
|
10063
10092
|
};
|
|
10064
10093
|
}
|
|
@@ -10097,13 +10126,17 @@ function _sfc_render$1D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10097
10126
|
"data-testid": "bank-name"
|
|
10098
10127
|
}, toDisplayString(_ctx.bankInfo.name), 3),
|
|
10099
10128
|
createBaseVNode("div", {
|
|
10100
|
-
class: normalizeClass(_ctx.style.sub),
|
|
10129
|
+
class: normalizeClass([_ctx.style.sub, _ctx.style.branchName]),
|
|
10101
10130
|
"data-testid": "bank-branch-name"
|
|
10102
10131
|
}, toDisplayString(_ctx.bankInfo.branchName), 3),
|
|
10103
10132
|
createBaseVNode("div", {
|
|
10104
10133
|
class: normalizeClass(_ctx.style.branchCode),
|
|
10105
10134
|
"data-testid": "bank-branch-code"
|
|
10106
|
-
}, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3)
|
|
10135
|
+
}, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3),
|
|
10136
|
+
_ctx.balance ? (openBlock(), createElementBlock("div", {
|
|
10137
|
+
key: 0,
|
|
10138
|
+
class: normalizeClass(_ctx.style.balance)
|
|
10139
|
+
}, toDisplayString(_ctx.balance), 3)) : createCommentVNode("", true)
|
|
10107
10140
|
], 2),
|
|
10108
10141
|
createBaseVNode("span", {
|
|
10109
10142
|
class: normalizeClass([
|
|
@@ -24270,23 +24303,24 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24270
24303
|
const cssModules$1i = {};
|
|
24271
24304
|
cssModules$1i["$style"] = style0$1i;
|
|
24272
24305
|
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$1y, [["render", _sfc_render$1y], ["__cssModules", cssModules$1i]]);
|
|
24273
|
-
const wrapperClass$h = "
|
|
24274
|
-
const paymentMethodContainer$2 = "
|
|
24275
|
-
const imageWrapper$1 = "
|
|
24276
|
-
const imageContainer$2 = "
|
|
24277
|
-
const roundStylePaymentMethod$1 = "
|
|
24278
|
-
const label$5 = "
|
|
24279
|
-
const mainLabel$2 = "
|
|
24280
|
-
const subLabel$2 = "
|
|
24281
|
-
const invalid$3 = "
|
|
24282
|
-
const rightAlign$3 = "
|
|
24283
|
-
const paymentMethodDisabled$2 = "
|
|
24284
|
-
const img$3 = "
|
|
24285
|
-
const round = "
|
|
24286
|
-
const branchNumber$1 = "
|
|
24287
|
-
const
|
|
24288
|
-
const
|
|
24289
|
-
const
|
|
24306
|
+
const wrapperClass$h = "_wrapperClass_zc3ck_1";
|
|
24307
|
+
const paymentMethodContainer$2 = "_paymentMethodContainer_zc3ck_1";
|
|
24308
|
+
const imageWrapper$1 = "_imageWrapper_zc3ck_6";
|
|
24309
|
+
const imageContainer$2 = "_imageContainer_zc3ck_10";
|
|
24310
|
+
const roundStylePaymentMethod$1 = "_roundStylePaymentMethod_zc3ck_19";
|
|
24311
|
+
const label$5 = "_label_zc3ck_23";
|
|
24312
|
+
const mainLabel$2 = "_mainLabel_zc3ck_30";
|
|
24313
|
+
const subLabel$2 = "_subLabel_zc3ck_37";
|
|
24314
|
+
const invalid$3 = "_invalid_zc3ck_46";
|
|
24315
|
+
const rightAlign$3 = "_rightAlign_zc3ck_58";
|
|
24316
|
+
const paymentMethodDisabled$2 = "_paymentMethodDisabled_zc3ck_63";
|
|
24317
|
+
const img$3 = "_img_zc3ck_68";
|
|
24318
|
+
const round = "_round_zc3ck_19";
|
|
24319
|
+
const branchNumber$1 = "_branchNumber_zc3ck_75";
|
|
24320
|
+
const balance = "_balance_zc3ck_81";
|
|
24321
|
+
const maintainanceInfo$2 = "_maintainanceInfo_zc3ck_87";
|
|
24322
|
+
const paymentInfo$2 = "_paymentInfo_zc3ck_93";
|
|
24323
|
+
const fullWidth = "_fullWidth_zc3ck_96";
|
|
24290
24324
|
var style0$1h = {
|
|
24291
24325
|
wrapperClass: wrapperClass$h,
|
|
24292
24326
|
paymentMethodContainer: paymentMethodContainer$2,
|
|
@@ -24302,6 +24336,7 @@ var style0$1h = {
|
|
|
24302
24336
|
img: img$3,
|
|
24303
24337
|
round,
|
|
24304
24338
|
branchNumber: branchNumber$1,
|
|
24339
|
+
balance,
|
|
24305
24340
|
maintainanceInfo: maintainanceInfo$2,
|
|
24306
24341
|
paymentInfo: paymentInfo$2,
|
|
24307
24342
|
fullWidth
|
|
@@ -24345,7 +24380,7 @@ const _sfc_main$1x = defineComponent({
|
|
|
24345
24380
|
const logo = bankInfo22 == null ? void 0 : bankInfo22.bankLogoUrl;
|
|
24346
24381
|
const name2 = bankInfo22 == null ? void 0 : bankInfo22.bankName;
|
|
24347
24382
|
let branchCode2 = bankInfo22 == null ? void 0 : bankInfo22.bankBranchCode;
|
|
24348
|
-
const
|
|
24383
|
+
const branchName2 = bankInfo22 == null ? void 0 : bankInfo22.bankBranchName;
|
|
24349
24384
|
const digits = bankInfo22 == null ? void 0 : bankInfo22.bankAccountNumberLast2digits;
|
|
24350
24385
|
if ((bankInfo22 == null ? void 0 : bankInfo22.bankCode) !== bankCode.YUCHO_BANK_CODE) {
|
|
24351
24386
|
branchCode2 = getTypeText$1((_b = bankInfo22 == null ? void 0 : bankInfo22.bankAccountType) != null ? _b : "");
|
|
@@ -24354,7 +24389,7 @@ const _sfc_main$1x = defineComponent({
|
|
|
24354
24389
|
logo,
|
|
24355
24390
|
name: name2,
|
|
24356
24391
|
branchCode: branchCode2,
|
|
24357
|
-
branchName,
|
|
24392
|
+
branchName: branchName2,
|
|
24358
24393
|
digits
|
|
24359
24394
|
};
|
|
24360
24395
|
});
|
|
@@ -24378,6 +24413,25 @@ const _sfc_main$1x = defineComponent({
|
|
|
24378
24413
|
}
|
|
24379
24414
|
emit("select");
|
|
24380
24415
|
};
|
|
24416
|
+
const balance2 = computed(() => {
|
|
24417
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
24418
|
+
const descInfo = (_a2 = props.bank) == null ? void 0 : _a2.paymentMethodDescriptionInfo;
|
|
24419
|
+
const bankInfo22 = (_b = props.bank) == null ? void 0 : _b.bankInfo;
|
|
24420
|
+
const label2 = (_d = (_c = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _c.label) != null ? _d : "";
|
|
24421
|
+
const currency = (_f = (_e = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _e.currency) != null ? _f : "\u5186";
|
|
24422
|
+
if (!(bankInfo22 == null ? void 0 : bankInfo22.showAmount)) {
|
|
24423
|
+
if (((_g = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _g.amount) == null) {
|
|
24424
|
+
return null;
|
|
24425
|
+
} else {
|
|
24426
|
+
return label2.concat("-------", currency);
|
|
24427
|
+
}
|
|
24428
|
+
} else {
|
|
24429
|
+
return label2.concat(
|
|
24430
|
+
formatAmount((_h = descInfo == null ? void 0 : descInfo.amountInfo) == null ? void 0 : _h.amount),
|
|
24431
|
+
currency
|
|
24432
|
+
);
|
|
24433
|
+
}
|
|
24434
|
+
});
|
|
24381
24435
|
return {
|
|
24382
24436
|
bankInfo: bankInfo2,
|
|
24383
24437
|
isDisable,
|
|
@@ -24389,6 +24443,7 @@ const _sfc_main$1x = defineComponent({
|
|
|
24389
24443
|
),
|
|
24390
24444
|
getClass: (isDisable == null ? void 0 : isDisable.value) ? style.paymentMethodDisabled : "",
|
|
24391
24445
|
style,
|
|
24446
|
+
balance: balance2,
|
|
24392
24447
|
payMethodDescriptionInfo: computed(
|
|
24393
24448
|
() => {
|
|
24394
24449
|
var _a2, _b, _c, _d;
|
|
@@ -24455,7 +24510,11 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24455
24510
|
createBaseVNode("span", {
|
|
24456
24511
|
class: normalizeClass(_ctx.style.branchNumber)
|
|
24457
24512
|
}, toDisplayString(`${_ctx.bankInfo.branchCode} *****${_ctx.bankInfo.digits}`), 3)
|
|
24458
|
-
])
|
|
24513
|
+
]),
|
|
24514
|
+
_ctx.balance ? (openBlock(), createElementBlock("div", {
|
|
24515
|
+
key: 1,
|
|
24516
|
+
class: normalizeClass(_ctx.style.balance)
|
|
24517
|
+
}, toDisplayString(_ctx.balance), 3)) : createCommentVNode("", true)
|
|
24459
24518
|
], 2),
|
|
24460
24519
|
createBaseVNode("span", {
|
|
24461
24520
|
class: normalizeClass(_ctx.style.rightAlign)
|
|
@@ -25232,7 +25291,7 @@ function initRoot(props, { emit }) {
|
|
|
25232
25291
|
const updateAddress = (data2) => {
|
|
25233
25292
|
emit("updateAddress", data2);
|
|
25234
25293
|
};
|
|
25235
|
-
|
|
25294
|
+
const savedMakepayAddressid = ((_a2 = props == null ? void 0 : props.selectedAddress) == null ? void 0 : _a2.id) || 0;
|
|
25236
25295
|
const store = {
|
|
25237
25296
|
cancel: cancel2,
|
|
25238
25297
|
success: success2,
|
|
@@ -27788,9 +27847,9 @@ function initErrorHandling() {
|
|
|
27788
27847
|
});
|
|
27789
27848
|
const handleError2 = () => {
|
|
27790
27849
|
const lg2 = getLanguage();
|
|
27791
|
-
|
|
27792
|
-
|
|
27793
|
-
|
|
27850
|
+
const errorTitle2 = lg2.errorSheet.title1;
|
|
27851
|
+
const errorDescription = lg2.errorSheet.desc;
|
|
27852
|
+
const errorIcon2 = String(img_iconError);
|
|
27794
27853
|
state.errorShow = true;
|
|
27795
27854
|
state.errorTitle = errorTitle2;
|
|
27796
27855
|
state.errorDescription = errorDescription;
|
|
@@ -29431,7 +29490,7 @@ const _sfc_main$18 = defineComponent({
|
|
|
29431
29490
|
setup(props, context) {
|
|
29432
29491
|
var _a2;
|
|
29433
29492
|
const { isMobile, isDesktop } = useBreakpoints();
|
|
29434
|
-
const { width: screenWidth } = window
|
|
29493
|
+
const { width: screenWidth } = window.screen;
|
|
29435
29494
|
const timeout = screenWidth <= 767 ? 320 : 0;
|
|
29436
29495
|
const showCashBackDetailRow = computed(() => {
|
|
29437
29496
|
var _a3;
|
|
@@ -31348,9 +31407,9 @@ const useMakePaymentStore = defineStore("makePayment", {
|
|
|
31348
31407
|
return true;
|
|
31349
31408
|
},
|
|
31350
31409
|
private_openLogicError(params = {}, jws) {
|
|
31351
|
-
|
|
31352
|
-
|
|
31353
|
-
|
|
31410
|
+
const errorTitle2 = "\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F";
|
|
31411
|
+
const errorDescription = "\u6642\u9593\u3092\u304A\u3044\u3066\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044";
|
|
31412
|
+
const errorIcon2 = img_iconError;
|
|
31354
31413
|
let errorCode = MiniAppErrorType.serverError;
|
|
31355
31414
|
if (params.type === "topupSuccessButNotAddToBalance") {
|
|
31356
31415
|
errorCode = MiniAppErrorType.topupSuccessButNotAddToBalance;
|
|
@@ -32842,21 +32901,21 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32842
32901
|
const cssModules$I = {};
|
|
32843
32902
|
cssModules$I["$style"] = style0$I;
|
|
32844
32903
|
var ChoosePaymentMethod = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__cssModules", cssModules$I]]);
|
|
32845
|
-
const container$g = "
|
|
32846
|
-
const slideSecondaryEnterActive$2 = "
|
|
32847
|
-
const slideSecondaryLeaveActive$2 = "
|
|
32848
|
-
const slideSecondaryEnterFrom$2 = "
|
|
32849
|
-
const topDivider = "
|
|
32850
|
-
const paddingHorizontal = "
|
|
32851
|
-
const header$1 = "
|
|
32852
|
-
const mount = "
|
|
32853
|
-
const blockSpacer = "
|
|
32854
|
-
const content$3 = "
|
|
32855
|
-
const gridRoot = "
|
|
32856
|
-
const listContainer = "
|
|
32857
|
-
const topupContainer = "
|
|
32904
|
+
const container$g = "_container_7uxwm_2";
|
|
32905
|
+
const slideSecondaryEnterActive$2 = "_slideSecondaryEnterActive_7uxwm_8";
|
|
32906
|
+
const slideSecondaryLeaveActive$2 = "_slideSecondaryLeaveActive_7uxwm_11";
|
|
32907
|
+
const slideSecondaryEnterFrom$2 = "_slideSecondaryEnterFrom_7uxwm_14";
|
|
32908
|
+
const topDivider = "_topDivider_7uxwm_44";
|
|
32909
|
+
const paddingHorizontal = "_paddingHorizontal_7uxwm_48";
|
|
32910
|
+
const header$1 = "_header_7uxwm_52";
|
|
32911
|
+
const mount = "_mount_7uxwm_57";
|
|
32912
|
+
const blockSpacer = "_blockSpacer_7uxwm_61";
|
|
32913
|
+
const content$3 = "_content_7uxwm_67";
|
|
32914
|
+
const gridRoot = "_gridRoot_7uxwm_84";
|
|
32915
|
+
const listContainer = "_listContainer_7uxwm_90";
|
|
32916
|
+
const topupContainer = "_topupContainer_7uxwm_101";
|
|
32858
32917
|
var style0$H = {
|
|
32859
|
-
"ppmna-default-font": "_ppmna-default-
|
|
32918
|
+
"ppmna-default-font": "_ppmna-default-font_7uxwm_1",
|
|
32860
32919
|
container: container$g,
|
|
32861
32920
|
slideSecondaryEnterActive: slideSecondaryEnterActive$2,
|
|
32862
32921
|
slideSecondaryLeaveActive: slideSecondaryLeaveActive$2,
|
|
@@ -33136,6 +33195,13 @@ const _sfc_main$W = defineComponent({
|
|
|
33136
33195
|
handleHeightChange();
|
|
33137
33196
|
}
|
|
33138
33197
|
};
|
|
33198
|
+
const getStyle = computed(() => {
|
|
33199
|
+
const { bottomHeight, headerHeight } = useGetHeightProperties();
|
|
33200
|
+
return (isMobile == null ? void 0 : isMobile.value) ? {
|
|
33201
|
+
maxHeight: `calc(100vh - ${bottomHeight}px - ${headerHeight}px)`,
|
|
33202
|
+
overflow: "auto"
|
|
33203
|
+
} : {};
|
|
33204
|
+
});
|
|
33139
33205
|
return {
|
|
33140
33206
|
balance: computed(
|
|
33141
33207
|
() => {
|
|
@@ -33181,7 +33247,8 @@ const _sfc_main$W = defineComponent({
|
|
|
33181
33247
|
addressSelect,
|
|
33182
33248
|
updateAddress,
|
|
33183
33249
|
handleUpdate,
|
|
33184
|
-
appealDescription
|
|
33250
|
+
appealDescription,
|
|
33251
|
+
getStyle
|
|
33185
33252
|
};
|
|
33186
33253
|
}
|
|
33187
33254
|
});
|
|
@@ -33202,7 +33269,8 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33202
33269
|
})
|
|
33203
33270
|
}, [
|
|
33204
33271
|
createBaseVNode("div", {
|
|
33205
|
-
class: normalizeClass(_ctx.style.gridRoot)
|
|
33272
|
+
class: normalizeClass(_ctx.style.gridRoot),
|
|
33273
|
+
style: normalizeStyle(_ctx.getStyle)
|
|
33206
33274
|
}, [
|
|
33207
33275
|
_ctx.isDesktop ? (openBlock(), createBlock(_component_DesktopHeader, {
|
|
33208
33276
|
key: 0,
|
|
@@ -33313,7 +33381,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33313
33381
|
]),
|
|
33314
33382
|
_: 1
|
|
33315
33383
|
}, 8, ["enter-active-class", "leave-active-class", "enter-from-class"])
|
|
33316
|
-
],
|
|
33384
|
+
], 6)
|
|
33317
33385
|
], 2);
|
|
33318
33386
|
}
|
|
33319
33387
|
const cssModules$H = {};
|
|
@@ -33453,20 +33521,20 @@ function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33453
33521
|
const cssModules$G = {};
|
|
33454
33522
|
cssModules$G["$style"] = style0$G;
|
|
33455
33523
|
var ThreeDSecureSheet = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V], ["__cssModules", cssModules$G]]);
|
|
33456
|
-
const makePayment$1 = "
|
|
33457
|
-
const slideSecondaryEnterActive$1 = "
|
|
33458
|
-
const slideSecondaryLeaveActive$1 = "
|
|
33459
|
-
const slideSecondaryEnterFrom$1 = "
|
|
33460
|
-
const topupPay = "
|
|
33461
|
-
const wrapperClass$6 = "
|
|
33462
|
-
const desktopBg = "
|
|
33463
|
-
const longHeightContainer = "
|
|
33464
|
-
const cashbackEnterActive = "
|
|
33465
|
-
const cashbackLeaveActive = "
|
|
33466
|
-
const cashbackEnterTo = "
|
|
33467
|
-
const cashbackLeaveTo = "
|
|
33524
|
+
const makePayment$1 = "_makePayment_1j8gu_2";
|
|
33525
|
+
const slideSecondaryEnterActive$1 = "_slideSecondaryEnterActive_1j8gu_8";
|
|
33526
|
+
const slideSecondaryLeaveActive$1 = "_slideSecondaryLeaveActive_1j8gu_11";
|
|
33527
|
+
const slideSecondaryEnterFrom$1 = "_slideSecondaryEnterFrom_1j8gu_14";
|
|
33528
|
+
const topupPay = "_topupPay_1j8gu_34";
|
|
33529
|
+
const wrapperClass$6 = "_wrapperClass_1j8gu_40";
|
|
33530
|
+
const desktopBg = "_desktopBg_1j8gu_40";
|
|
33531
|
+
const longHeightContainer = "_longHeightContainer_1j8gu_44";
|
|
33532
|
+
const cashbackEnterActive = "_cashbackEnterActive_1j8gu_47";
|
|
33533
|
+
const cashbackLeaveActive = "_cashbackLeaveActive_1j8gu_51";
|
|
33534
|
+
const cashbackEnterTo = "_cashbackEnterTo_1j8gu_55";
|
|
33535
|
+
const cashbackLeaveTo = "_cashbackLeaveTo_1j8gu_58";
|
|
33468
33536
|
var style0$F = {
|
|
33469
|
-
"ppmna-default-font": "_ppmna-default-
|
|
33537
|
+
"ppmna-default-font": "_ppmna-default-font_1j8gu_1",
|
|
33470
33538
|
makePayment: makePayment$1,
|
|
33471
33539
|
slideSecondaryEnterActive: slideSecondaryEnterActive$1,
|
|
33472
33540
|
slideSecondaryLeaveActive: slideSecondaryLeaveActive$1,
|
|
@@ -33620,6 +33688,7 @@ function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33620
33688
|
createVNode(_component_ActionSheet, {
|
|
33621
33689
|
class: normalizeClass([_ctx.$style.wrapperClass, _ctx.$style.desktopBg]),
|
|
33622
33690
|
show: _ctx.show && !_ctx.makePaymentStore.uiState.showDuplicatePaymentEnd && !_ctx.makePaymentStore.errorState.visible && !_ctx.makePaymentStore.uiState.afterPayment,
|
|
33691
|
+
"forbidden-swipe": true,
|
|
33623
33692
|
onClose: _ctx.cancelPayment
|
|
33624
33693
|
}, {
|
|
33625
33694
|
default: withCtx(() => [
|
|
@@ -34035,7 +34104,6 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
34035
34104
|
(_a3 = initMakePayment2 == null ? void 0 : initMakePayment2.complete) == null ? void 0 : _a3.call(initMakePayment2);
|
|
34036
34105
|
}, 350);
|
|
34037
34106
|
};
|
|
34038
|
-
let app;
|
|
34039
34107
|
let addresses;
|
|
34040
34108
|
let showUserAddress;
|
|
34041
34109
|
if ((_d = (_c = initMakePayment2 == null ? void 0 : initMakePayment2.additionalUserInfo) == null ? void 0 : _c.userAddress) == null ? void 0 : _d.visible) {
|
|
@@ -34052,7 +34120,7 @@ const initMakePayment = async (initMakePayment2) => {
|
|
|
34052
34120
|
} else {
|
|
34053
34121
|
showUserAddress = false;
|
|
34054
34122
|
}
|
|
34055
|
-
app = createApp({
|
|
34123
|
+
const app = createApp({
|
|
34056
34124
|
setup() {
|
|
34057
34125
|
return () => h(AppVue$8, {
|
|
34058
34126
|
show: show2.value,
|
|
@@ -34804,7 +34872,7 @@ const _sfc_main$P = defineComponent({
|
|
|
34804
34872
|
methods: {
|
|
34805
34873
|
numberWithCommas,
|
|
34806
34874
|
async init() {
|
|
34807
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
34875
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
34808
34876
|
this.loading = true;
|
|
34809
34877
|
this.isFirstLoad = true;
|
|
34810
34878
|
const paymentIDParams = {
|
|
@@ -34834,15 +34902,15 @@ const _sfc_main$P = defineComponent({
|
|
|
34834
34902
|
this.errorShow = true;
|
|
34835
34903
|
return;
|
|
34836
34904
|
}
|
|
34837
|
-
const { paymentMethodList, appealDescription } =
|
|
34905
|
+
const { paymentMethodList, appealDescription } = paymentIdResponse.body.unsigned.data.payload;
|
|
34838
34906
|
this.paymentMethodList = paymentMethodList;
|
|
34839
34907
|
this.appealDescription = appealDescription;
|
|
34840
34908
|
this.findFirstValidMethodTopup();
|
|
34841
34909
|
const config2 = getAppConfig();
|
|
34842
34910
|
if (config2) {
|
|
34843
|
-
this.topupHalfSheetAmount = (
|
|
34844
|
-
this.topupButtonsAmount = (
|
|
34845
|
-
this.topupMinAmount = (
|
|
34911
|
+
this.topupHalfSheetAmount = (_f = config2 == null ? void 0 : config2.topupHalfSheetAmount[0]) == null ? void 0 : _f.value;
|
|
34912
|
+
this.topupButtonsAmount = (_g = config2 == null ? void 0 : config2.topupButtonsAmount[0]) == null ? void 0 : _g.value;
|
|
34913
|
+
this.topupMinAmount = (_j = (_i = (_h = config2 == null ? void 0 : config2.topupMinAmount) == null ? void 0 : _h[0]) == null ? void 0 : _i.value) != null ? _j : this.topupMinAmount;
|
|
34846
34914
|
}
|
|
34847
34915
|
this.loading = false;
|
|
34848
34916
|
this.isFirstLoad = false;
|
|
@@ -35958,7 +36026,7 @@ async function getPlatformInformation(params) {
|
|
|
35958
36026
|
async function execute$d(params) {
|
|
35959
36027
|
var _a2, _b;
|
|
35960
36028
|
let sdkVersion = null;
|
|
35961
|
-
|
|
36029
|
+
const preferredLanguage = getPayPayLanguage();
|
|
35962
36030
|
const appVersion = getAppVersion();
|
|
35963
36031
|
if (appVersion) {
|
|
35964
36032
|
try {
|
|
@@ -36227,7 +36295,7 @@ async function execute$b(params) {
|
|
|
36227
36295
|
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, { errorCode: getFailErrorCode(res.ppFetchResult) });
|
|
36228
36296
|
}
|
|
36229
36297
|
if ((_d = res.body.unsigned) == null ? void 0 : _d.data) {
|
|
36230
|
-
|
|
36298
|
+
const response = res.body.unsigned.data;
|
|
36231
36299
|
response.jws = (_e = res.body.signed) == null ? void 0 : _e.jws;
|
|
36232
36300
|
return (_f = params == null ? void 0 : params.success) == null ? void 0 : _f.call(params, response);
|
|
36233
36301
|
} else {
|
|
@@ -36338,9 +36406,9 @@ function useErrorHandling() {
|
|
|
36338
36406
|
});
|
|
36339
36407
|
const handleError2 = () => {
|
|
36340
36408
|
const lg2 = getLanguage();
|
|
36341
|
-
|
|
36342
|
-
|
|
36343
|
-
|
|
36409
|
+
const errorTitle2 = lg2.errorSheet.title1;
|
|
36410
|
+
const errorDescription = lg2.errorSheet.desc;
|
|
36411
|
+
const errorIcon2 = String(img_iconError);
|
|
36344
36412
|
state.errorShow = true;
|
|
36345
36413
|
state.errorTitle = errorTitle2;
|
|
36346
36414
|
state.errorDescription = errorDescription;
|
|
@@ -36520,7 +36588,7 @@ function inputAddress(params) {
|
|
|
36520
36588
|
initInputAddress(params);
|
|
36521
36589
|
}
|
|
36522
36590
|
async function getUserLocation(getUserLocationParams) {
|
|
36523
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
36591
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
36524
36592
|
const params = reconstructParams(getUserLocationParams);
|
|
36525
36593
|
try {
|
|
36526
36594
|
const grantStatus = await checkPermission(
|
|
@@ -36550,6 +36618,12 @@ async function getUserLocation(getUserLocationParams) {
|
|
|
36550
36618
|
return;
|
|
36551
36619
|
}
|
|
36552
36620
|
}
|
|
36621
|
+
if (params.fallbackToGeolocation === false) {
|
|
36622
|
+
(_n = params == null ? void 0 : params.fail) == null ? void 0 : _n.call(params, {
|
|
36623
|
+
errorCode: MiniAppErrorType.noLocationData
|
|
36624
|
+
});
|
|
36625
|
+
return;
|
|
36626
|
+
}
|
|
36553
36627
|
await new Promise((resolve2, _) => {
|
|
36554
36628
|
var _a3;
|
|
36555
36629
|
if (navigator.geolocation) {
|
|
@@ -36585,7 +36659,7 @@ async function getUserLocation(getUserLocationParams) {
|
|
|
36585
36659
|
}
|
|
36586
36660
|
});
|
|
36587
36661
|
} catch {
|
|
36588
|
-
(
|
|
36662
|
+
(_o = params == null ? void 0 : params.fail) == null ? void 0 : _o.call(params, { errorCode: MiniAppErrorType.other });
|
|
36589
36663
|
}
|
|
36590
36664
|
}
|
|
36591
36665
|
async function checkPaymentMethod(checkPayMethodParams) {
|
|
@@ -36598,7 +36672,7 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
36598
36672
|
if (grantStatus !== PermissionStatus.granted) {
|
|
36599
36673
|
return (_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: MiniAppErrorType.insufficientScope });
|
|
36600
36674
|
}
|
|
36601
|
-
|
|
36675
|
+
const result2 = await ppFetch2({
|
|
36602
36676
|
method: "GET",
|
|
36603
36677
|
url: "web-api/app/v2/payment/methods",
|
|
36604
36678
|
params: {
|
|
@@ -36615,7 +36689,7 @@ async function checkPaymentMethod(checkPayMethodParams) {
|
|
|
36615
36689
|
errorCode: getFailErrorCode(result2.ppFetchResult)
|
|
36616
36690
|
});
|
|
36617
36691
|
}
|
|
36618
|
-
|
|
36692
|
+
const paymentMethodList = (_e = (_d = (_c = result2 == null ? void 0 : result2.body.unsigned) == null ? void 0 : _c.data) == null ? void 0 : _d.payload) == null ? void 0 : _e.paymentMethodList;
|
|
36619
36693
|
if (!paymentMethodList) {
|
|
36620
36694
|
return (_f = params == null ? void 0 : params.fail) == null ? void 0 : _f.call(params, { errorCode: MiniAppErrorType.serverError });
|
|
36621
36695
|
} else if (paymentMethodList.length > 0) {
|
|
@@ -36634,7 +36708,7 @@ function debug(params) {
|
|
|
36634
36708
|
function execute$a(params) {
|
|
36635
36709
|
var _a2;
|
|
36636
36710
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
36637
|
-
v: "1.
|
|
36711
|
+
v: "1.69.0"
|
|
36638
36712
|
});
|
|
36639
36713
|
}
|
|
36640
36714
|
function useCallBack(props, ctx) {
|
|
@@ -36891,7 +36965,7 @@ const Email = defineComponent({
|
|
|
36891
36965
|
if (state.validateFailed) {
|
|
36892
36966
|
return;
|
|
36893
36967
|
}
|
|
36894
|
-
|
|
36968
|
+
const value2 = String(props.modelValue);
|
|
36895
36969
|
if (!runSyncRule(value2, rule) && value2) {
|
|
36896
36970
|
state.validateFailed = true;
|
|
36897
36971
|
state.validateMessage = getRuleMessage(value2, rule);
|
|
@@ -38452,7 +38526,7 @@ const en = {
|
|
|
38452
38526
|
};
|
|
38453
38527
|
function getRenderLoginInfo(params) {
|
|
38454
38528
|
var _a2;
|
|
38455
|
-
|
|
38529
|
+
const preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
38456
38530
|
const { smartLogin } = preferredLanguage === "en" ? en : ja$1;
|
|
38457
38531
|
const userInfo = getUserInfo();
|
|
38458
38532
|
const loggedinUser = userInfo ? JSON.parse(userInfo) : void 0;
|
|
@@ -38744,7 +38818,7 @@ const initSmartButton = (params, data2, preferredLanguage, isLoggedIn) => {
|
|
|
38744
38818
|
};
|
|
38745
38819
|
async function getRenderPayInfo(params) {
|
|
38746
38820
|
var _a2;
|
|
38747
|
-
|
|
38821
|
+
const preferredLanguage = (params == null ? void 0 : params.locale) || getPayPayLanguage();
|
|
38748
38822
|
const { smartPay } = preferredLanguage === "en" ? en : ja$1;
|
|
38749
38823
|
const loggedIn = await getIsLoggedIn();
|
|
38750
38824
|
const renderParams = loggedIn ? {
|
|
@@ -38758,7 +38832,7 @@ async function getRenderPayInfo(params) {
|
|
|
38758
38832
|
(_a2 = params == null ? void 0 : params.fail) == null ? void 0 : _a2.call(params, { errorCode: getFailErrorCode(res.ppFetchResult) });
|
|
38759
38833
|
return null;
|
|
38760
38834
|
}
|
|
38761
|
-
|
|
38835
|
+
const cashbackInfo2 = createCashbackInfo(res.body);
|
|
38762
38836
|
const data2 = getRenderPayButtonInfo(params, smartPay, cashbackInfo2);
|
|
38763
38837
|
return {
|
|
38764
38838
|
renderParams,
|
|
@@ -38798,11 +38872,11 @@ async function getExpectedCashbackInfo(orderInfo) {
|
|
|
38798
38872
|
return resp;
|
|
38799
38873
|
}
|
|
38800
38874
|
function createCashbackInfo(cashbackResponse) {
|
|
38801
|
-
var _a2
|
|
38875
|
+
var _a2;
|
|
38802
38876
|
if ((_a2 = cashbackResponse.unsigned) == null ? void 0 : _a2.data) {
|
|
38803
|
-
const { normalCashbackPercentage, lotteryCashbackPercentage } =
|
|
38877
|
+
const { normalCashbackPercentage, lotteryCashbackPercentage } = cashbackResponse.unsigned.data;
|
|
38804
38878
|
if (normalCashbackPercentage || lotteryCashbackPercentage) {
|
|
38805
|
-
|
|
38879
|
+
const tempCashback = Number(
|
|
38806
38880
|
(parseFloat(normalCashbackPercentage != null ? normalCashbackPercentage : "0") + parseFloat(lotteryCashbackPercentage != null ? lotteryCashbackPercentage : "0")).toFixed(1)
|
|
38807
38881
|
);
|
|
38808
38882
|
return tempCashback ? tempCashback.toString() : "";
|
|
@@ -38975,8 +39049,8 @@ const validators = {
|
|
|
38975
39049
|
reason: lg.registerUserInfo.validation.alphabetLength32Error
|
|
38976
39050
|
};
|
|
38977
39051
|
}
|
|
38978
|
-
|
|
38979
|
-
|
|
39052
|
+
const spaceFullWidth = "\u3000";
|
|
39053
|
+
const spaceHalfWidth = " ";
|
|
38980
39054
|
if (isAlphabet(value2)) {
|
|
38981
39055
|
let newValue = getStringConvertedHalfWidth(
|
|
38982
39056
|
value2,
|
|
@@ -40529,7 +40603,7 @@ const _sfc_main$p = defineComponent({
|
|
|
40529
40603
|
const logo = payoutInfo2 == null ? void 0 : payoutInfo2.bankLogoUrl;
|
|
40530
40604
|
const name2 = payoutInfo2 == null ? void 0 : payoutInfo2.bankName;
|
|
40531
40605
|
let branchCode2 = payoutInfo2 == null ? void 0 : payoutInfo2.bankBranchCode;
|
|
40532
|
-
const
|
|
40606
|
+
const branchName2 = payoutInfo2 == null ? void 0 : payoutInfo2.bankBranchName;
|
|
40533
40607
|
const digits = payoutInfo2 == null ? void 0 : payoutInfo2.maskedAccountNumber;
|
|
40534
40608
|
if ((payoutInfo2 == null ? void 0 : payoutInfo2.bankCode) !== bankCode.YUCHO_BANK_CODE) {
|
|
40535
40609
|
branchCode2 = getTypeText((_a2 = payoutInfo2 == null ? void 0 : payoutInfo2.bankAccountType) != null ? _a2 : "");
|
|
@@ -40538,7 +40612,7 @@ const _sfc_main$p = defineComponent({
|
|
|
40538
40612
|
logo,
|
|
40539
40613
|
name: name2,
|
|
40540
40614
|
branchCode: branchCode2,
|
|
40541
|
-
branchName,
|
|
40615
|
+
branchName: branchName2,
|
|
40542
40616
|
digits
|
|
40543
40617
|
};
|
|
40544
40618
|
});
|
|
@@ -43985,7 +44059,7 @@ async function initKycPassport(params) {
|
|
|
43985
44059
|
return initKycPassportError(params, status2);
|
|
43986
44060
|
}
|
|
43987
44061
|
}
|
|
43988
|
-
|
|
44062
|
+
const callbackUrl = new URL(params.callbackUrl);
|
|
43989
44063
|
callbackUrl.searchParams.set("ppFunction", "kycPassport");
|
|
43990
44064
|
callbackUrl.searchParams.set(
|
|
43991
44065
|
"ppEkycDocuments",
|
|
@@ -44486,7 +44560,7 @@ async function execute(params) {
|
|
|
44486
44560
|
return;
|
|
44487
44561
|
}
|
|
44488
44562
|
const userPaymentFeatureSettings = res.body.unsigned.data;
|
|
44489
|
-
|
|
44563
|
+
const paymentFeatures = {};
|
|
44490
44564
|
(_c = Object.entries(userPaymentFeatureSettings)) == null ? void 0 : _c.forEach(([key2, value2]) => {
|
|
44491
44565
|
paymentFeatures[key2.toUpperCase()] = value2 ? "AVAILABLE" : "UNAVAILABLE";
|
|
44492
44566
|
});
|