@paypay/mini-app-js-sdk 1.53.0 → 1.54.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 +218 -199
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +4 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +4 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +4 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +4 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +4 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +4 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +4 -0
- package/dist/types.d.ts +8 -1
- package/dist/utils/getImages.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +3 -0
- package/dist/utils/helper.d.ts +2 -0
- package/dist/utils/minimumAppVersion.d.ts +1 -0
- package/dist/views/error-sheet/Index.vue.d.ts +8 -9
- package/dist/views/get-bank-info/components/GetBankInfoPopup.vue.d.ts +3 -0
- package/dist/views/get-bank-info/components/PayoutMethodList.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +4 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +3 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Consult.vue.d.ts +5 -3
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +4 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/CashBackDetailRow.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +4 -0
- package/dist/views/open-app/App.vue.d.ts +4 -0
- package/dist/views/open-map/App.vue.d.ts +3 -0
- package/dist/views/register-user-info/RegisterUserInfoCancelConfirmationSheet.vue.d.ts +5 -2
- package/dist/views/register-user-info/RegisterUserInfoCategoryView.vue.d.ts +4 -0
- package/dist/views/register-user-info/RegisterUserInfoFooterView.vue.d.ts +3 -0
- package/dist/views/register-user-info/RegisterUserInfoKycInfoSheet.vue.d.ts +5 -2
- package/dist/views/register-user-info/RegisterUserInfoMailInfoSheet.vue.d.ts +5 -2
- package/dist/views/register-user-info/input/RegisterUserInfoEmailInput.vue.d.ts +4 -0
- package/dist/views/register-user-info/input/RegisterUserInfoSimpleInput.vue.d.ts +1 -0
- package/dist/views/registerPaymentFeatures/AutoTopupMethod.vue.d.ts +10 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAmountErrorSheet.vue.d.ts +5 -2
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAmountSettingSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesAutoTopupConfirmSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesChooseAmount.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesChoosePaymentMethodSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesDefaultErrorSheet.vue.d.ts +4 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterUpdateWarning.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterView.vue.d.ts +4 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesFooterViewWithEnableButton.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesMainView.vue.d.ts +9 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesRootView.vue.d.ts +32 -2
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesSettingCompleteSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/RegisterPaymentFeaturesTopupMethodSettingSheet.vue.d.ts +5 -1
- package/dist/views/registerPaymentFeatures/api.d.ts +2 -2
- package/dist/views/registerPaymentFeatures/fallback-method/FallbackMethodAppUpdateWarning.vue.d.ts +1 -0
- package/dist/views/registerPaymentFeatures/store.d.ts +4 -2
- package/dist/views/registerPaymentFeatures/types.d.ts +12 -3
- package/dist/views/show-update-warning/App.vue.d.ts +4 -0
- package/dist/views/three-d-secure-sheet/ThreeDSecureSheet.vue.d.ts +1 -0
- package/dist/views/topup/App.vue.d.ts +4 -0
- package/dist/views/topup/BannerInfo.vue.d.ts +4 -1
- package/dist/views/topup/CashbackInfo.vue.d.ts +3 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +4 -0
- package/package.json +1 -1
|
@@ -85,8 +85,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
85
85
|
}
|
|
86
86
|
class JsBridge {
|
|
87
87
|
constructor(global2) {
|
|
88
|
-
this.version = "1.
|
|
89
|
-
this.revision = "
|
|
88
|
+
this.version = "1.54.0";
|
|
89
|
+
this.revision = "4441e8a";
|
|
90
90
|
this.messageHandlers = new Map();
|
|
91
91
|
this.responseCallbacks = new Map();
|
|
92
92
|
this.global = global2;
|
|
@@ -1212,11 +1212,14 @@ const registerPaymentFeatures$2 = {
|
|
|
1212
1212
|
message: "\u30AA\u30FC\u30C8\u30C1\u30E3\u30FC\u30B8\u3092\u5229\u7528\u3059\u308B\u306B\u306F\n\u30A2\u30D7\u30EA\u3092\u6700\u65B0\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306B\n\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
1213
1213
|
update: "\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3059\u308B",
|
|
1214
1214
|
cancel: "\u4ECA\u306F\u3057\u306A\u3044"
|
|
1215
|
-
}
|
|
1215
|
+
},
|
|
1216
|
+
eMoneyOnly: "\u9280\u884C\u53E3\u5EA7\u304B\u3089\u306E\u30C1\u30E3\u30FC\u30B8\u306E\u307F",
|
|
1217
|
+
topupNoticeEmoneyOnlyTitle: "\u9280\u884C\u53E3\u5EA7\u304B\u3089\u306E\u30C1\u30E3\u30FC\u30B8\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
1218
|
+
topupNoticeEmoneyOnlyDesc: "\u3053\u306E\u304A\u5E97\u3067\u306E\u304A\u652F\u6255\u3044\u306B\u306FPayPay\u30DE\u30CD\u30FC\u304C\u5FC5\u8981\u3067\u3059\u3002PayPay\u30DE\u30CD\u30FC\u306E\u5229\u7528\u306B\u306F\u9280\u884C\u304B\u3089\u306E\u30C1\u30E3\u30FC\u30B8\u8A2D\u5B9A\u304C\u5FC5\u8981\u3067\u3059"
|
|
1216
1219
|
},
|
|
1217
1220
|
autoTopupRootFooter: {
|
|
1218
1221
|
enable: "\u6709\u52B9\u306B\u3059\u308B",
|
|
1219
|
-
notice: "\
|
|
1222
|
+
notice: "\u8A2D\u5B9A\u306FPayPay\u3067\u306E\u3059\u3079\u3066\u306E\u652F\u6255\u3044\u306B\u9069\u7528\u3055\u308C\u307E\u3059\n\u8A2D\u5B9A\u5B8C\u4E86\u5F8C\u3001\u3054\u5229\u7528\u4E2D\u306E\u30DF\u30CB\u30A2\u30D7\u30EA\u306B\u623B\u308A\u307E\u3059",
|
|
1220
1223
|
notNow: "\u4ECA\u306F\u3057\u306A\u3044"
|
|
1221
1224
|
},
|
|
1222
1225
|
amountChange: {
|
|
@@ -1665,14 +1668,7 @@ function openWebview(openWebviewParams) {
|
|
|
1665
1668
|
openUrl2 = appDetail ? new URL(appDetail.openUrl) : null;
|
|
1666
1669
|
} catch (_) {
|
|
1667
1670
|
}
|
|
1668
|
-
if (params == null ? void 0 : params.
|
|
1669
|
-
const url2 = getAuthUrl(params);
|
|
1670
|
-
if (url2 === null) {
|
|
1671
|
-
return;
|
|
1672
|
-
}
|
|
1673
|
-
params.url = url2;
|
|
1674
|
-
openWebviewInternal(params);
|
|
1675
|
-
} else if (["http:", "https:"].includes(url.protocol) && ((params == null ? void 0 : params.style) === "external" || ((_b = appDetail == null ? void 0 : appDetail.whiteListDomains) == null ? void 0 : _b.includes(url.host)) || url.host === (openUrl2 == null ? void 0 : openUrl2.host))) {
|
|
1671
|
+
if (["http:", "https:"].includes(url.protocol) && ((params == null ? void 0 : params.style) === "external" || ((_b = appDetail == null ? void 0 : appDetail.whiteListDomains) == null ? void 0 : _b.includes(url.host)) || url.host === (openUrl2 == null ? void 0 : openUrl2.host))) {
|
|
1676
1672
|
openWebviewInternal(params);
|
|
1677
1673
|
} else {
|
|
1678
1674
|
return (_c = params == null ? void 0 : params.fail) == null ? void 0 : _c.call(params, {
|
|
@@ -1701,35 +1697,6 @@ function openWebviewInternal(params) {
|
|
|
1701
1697
|
}
|
|
1702
1698
|
}
|
|
1703
1699
|
}
|
|
1704
|
-
function getAuthUrl(params) {
|
|
1705
|
-
var _a2, _b;
|
|
1706
|
-
let authUrl = "";
|
|
1707
|
-
switch (getEnv()) {
|
|
1708
|
-
case "staging":
|
|
1709
|
-
authUrl = "https://stg-www.paypay-corp.co.jp";
|
|
1710
|
-
break;
|
|
1711
|
-
case "sandbox":
|
|
1712
|
-
authUrl = "https://stg-www.sandbox.paypay.ne.jp";
|
|
1713
|
-
break;
|
|
1714
|
-
case "canary":
|
|
1715
|
-
authUrl = "https://www-prod-canary.paypay.ne.jp";
|
|
1716
|
-
break;
|
|
1717
|
-
case "qa":
|
|
1718
|
-
authUrl = "https://www.qa.stg.paypay.ne.jp";
|
|
1719
|
-
break;
|
|
1720
|
-
case "production":
|
|
1721
|
-
default:
|
|
1722
|
-
authUrl = "https://www.paypay.ne.jp";
|
|
1723
|
-
}
|
|
1724
|
-
const clientId = (_a2 = getClientId()) != null ? _a2 : "";
|
|
1725
|
-
if (!clientId) {
|
|
1726
|
-
(_b = params == null ? void 0 : params.fail) == null ? void 0 : _b.call(params, {
|
|
1727
|
-
errorCode: MiniAppErrorType.sdkNotInitialized
|
|
1728
|
-
});
|
|
1729
|
-
return null;
|
|
1730
|
-
}
|
|
1731
|
-
return `${authUrl}/portal/auth/mini-app/permission?clientId=${clientId}&redirectUrl=${encodeURIComponent(params.url)}`;
|
|
1732
|
-
}
|
|
1733
1700
|
function isDef(val2) {
|
|
1734
1701
|
return val2 !== void 0 && val2 !== null;
|
|
1735
1702
|
}
|
|
@@ -1984,6 +1951,15 @@ function openUrl(linkUrl) {
|
|
|
1984
1951
|
} catch (_) {
|
|
1985
1952
|
}
|
|
1986
1953
|
}
|
|
1954
|
+
function getButtonType(button4, onlyButton = false) {
|
|
1955
|
+
if (button4.buttonType === UIComponentsButtonType.BLUE || onlyButton) {
|
|
1956
|
+
return "primary";
|
|
1957
|
+
} else if (button4.buttonType === UIComponentsButtonType.WHITE) {
|
|
1958
|
+
return "link";
|
|
1959
|
+
} else {
|
|
1960
|
+
return button4.buttonType;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1987
1963
|
const opaUrl = () => {
|
|
1988
1964
|
switch (getEnv()) {
|
|
1989
1965
|
case "staging":
|
|
@@ -2004,7 +1980,7 @@ const opaUrl = () => {
|
|
|
2004
1980
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
2005
1981
|
let headers = new Headers(__spreadValues({
|
|
2006
1982
|
"Content-Type": "application/json",
|
|
2007
|
-
"Client-Version": "1.
|
|
1983
|
+
"Client-Version": "1.54.0",
|
|
2008
1984
|
"Client-OS-Type": getRuntime()
|
|
2009
1985
|
}, customHeaders));
|
|
2010
1986
|
if (urlEndpoint === "web-api/app/v2/payment/methods" || urlEndpoint === "web-api/app/v2/payment/consult" || urlEndpoint === "web-api/app/v1/payment/cashbackDetail" || urlEndpoint === "web-api/app/v1/confirmAgeForCashback" || urlEndpoint === "web-api/app/v1/internal/request" || urlEndpoint === "web-api/app/v1/addressbyzip" || urlEndpoint === "/web-api/app/platform/v1/balance" || urlEndpoint === "web-api/app/v1/users/autoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/preTransactionAutoTopupConfiguration" || urlEndpoint === "web-api/app/v1/users/consultPaymentFeature") {
|
|
@@ -8420,6 +8396,7 @@ const iconNotice = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-notice
|
|
|
8420
8396
|
const iconTopupSuccess = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-auto-topup-success.svg";
|
|
8421
8397
|
const icon3DSecure = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-3d-secure.svg";
|
|
8422
8398
|
const iconArrowRightBlue = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-arrow-right-blue.svg";
|
|
8399
|
+
const iconInfo = "https://image.paypay.ne.jp/miniapps/mini-app-sdk/icon-info.svg";
|
|
8423
8400
|
var images = {
|
|
8424
8401
|
iconBalanceError,
|
|
8425
8402
|
animationDone,
|
|
@@ -8469,7 +8446,8 @@ var images = {
|
|
|
8469
8446
|
iconNotice,
|
|
8470
8447
|
iconTopupSuccess,
|
|
8471
8448
|
icon3DSecure,
|
|
8472
|
-
iconArrowRightBlue
|
|
8449
|
+
iconArrowRightBlue,
|
|
8450
|
+
iconInfo
|
|
8473
8451
|
};
|
|
8474
8452
|
function getImages() {
|
|
8475
8453
|
return images;
|
|
@@ -8595,15 +8573,7 @@ const _sfc_main$1B = defineComponent({
|
|
|
8595
8573
|
this.$emit("close-click");
|
|
8596
8574
|
return;
|
|
8597
8575
|
},
|
|
8598
|
-
getButtonType
|
|
8599
|
-
if (button4.buttonType === UIComponentsButtonType.BLUE || this.onlyButton) {
|
|
8600
|
-
return "primary";
|
|
8601
|
-
} else if (button4.buttonType === UIComponentsButtonType.WHITE) {
|
|
8602
|
-
return "link";
|
|
8603
|
-
} else {
|
|
8604
|
-
return button4.buttonType;
|
|
8605
|
-
}
|
|
8606
|
-
}
|
|
8576
|
+
getButtonType
|
|
8607
8577
|
}
|
|
8608
8578
|
});
|
|
8609
8579
|
const _hoisted_1$U = ["src"];
|
|
@@ -8643,7 +8613,7 @@ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8643
8613
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
8644
8614
|
createVNode(_component_Button, {
|
|
8645
8615
|
block: "",
|
|
8646
|
-
type: _ctx.getButtonType(item2),
|
|
8616
|
+
type: _ctx.getButtonType(item2, _ctx.onlyButton),
|
|
8647
8617
|
onClick: ($event) => _ctx.buttonClick(item2)
|
|
8648
8618
|
}, {
|
|
8649
8619
|
default: withCtx(() => [
|
|
@@ -28892,13 +28862,6 @@ const _sfc_main$$ = defineComponent({
|
|
|
28892
28862
|
close: () => true
|
|
28893
28863
|
},
|
|
28894
28864
|
setup(props, context) {
|
|
28895
|
-
const getButtonType = (type) => {
|
|
28896
|
-
var _a2;
|
|
28897
|
-
if (type === UIComponentsButtonType.BLUE || ((_a2 = buttonList == null ? void 0 : buttonList.value) == null ? void 0 : _a2.length) === 1) {
|
|
28898
|
-
return "primary";
|
|
28899
|
-
}
|
|
28900
|
-
return "link";
|
|
28901
|
-
};
|
|
28902
28865
|
const getBehavior = (buttonInfo) => {
|
|
28903
28866
|
var _a2;
|
|
28904
28867
|
if ((buttonInfo == null ? void 0 : buttonInfo.actionType) === UIComponentsButtonActionType.DEEPLINK) {
|
|
@@ -28925,13 +28888,15 @@ const _sfc_main$$ = defineComponent({
|
|
|
28925
28888
|
return filterErrorButtonList(props.consultInfo.buttonList);
|
|
28926
28889
|
});
|
|
28927
28890
|
return {
|
|
28928
|
-
getButtonType,
|
|
28929
28891
|
getBehavior,
|
|
28930
28892
|
iconUrl: computed(() => props.consultInfo.iconUrl),
|
|
28931
28893
|
title: computed(() => props.consultInfo.title),
|
|
28932
28894
|
description: computed(() => props.consultInfo.description),
|
|
28933
28895
|
buttonList
|
|
28934
28896
|
};
|
|
28897
|
+
},
|
|
28898
|
+
methods: {
|
|
28899
|
+
getButtonType
|
|
28935
28900
|
}
|
|
28936
28901
|
});
|
|
28937
28902
|
const _hoisted_1$z = ["src"];
|
|
@@ -28960,11 +28925,12 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
28960
28925
|
], 2),
|
|
28961
28926
|
createBaseVNode("div", null, [
|
|
28962
28927
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (buttonInfo, index2) => {
|
|
28928
|
+
var _a2;
|
|
28963
28929
|
return openBlock(), createBlock(_component_Button, {
|
|
28964
28930
|
key: `${index2}-${buttonInfo.type}`,
|
|
28965
28931
|
"data-testid": "consult-button",
|
|
28966
28932
|
block: "",
|
|
28967
|
-
type: _ctx.getButtonType(buttonInfo.
|
|
28933
|
+
type: _ctx.getButtonType(buttonInfo, ((_a2 = _ctx.buttonList) == null ? void 0 : _a2.length) === 1),
|
|
28968
28934
|
onClick: ($event) => _ctx.getBehavior(buttonInfo)
|
|
28969
28935
|
}, {
|
|
28970
28936
|
default: withCtx(() => [
|
|
@@ -33162,12 +33128,12 @@ const Currency = defineComponent({
|
|
|
33162
33128
|
}, [renderInput()])]);
|
|
33163
33129
|
}
|
|
33164
33130
|
});
|
|
33165
|
-
const bannerInfoContainer = "
|
|
33166
|
-
const bannerInfoIcon = "
|
|
33167
|
-
const bannerDesc = "
|
|
33168
|
-
const bannerTitle = "
|
|
33131
|
+
const bannerInfoContainer = "_bannerInfoContainer_ykpz3_2";
|
|
33132
|
+
const bannerInfoIcon = "_bannerInfoIcon_ykpz3_16";
|
|
33133
|
+
const bannerDesc = "_bannerDesc_ykpz3_20";
|
|
33134
|
+
const bannerTitle = "_bannerTitle_ykpz3_26";
|
|
33169
33135
|
var style0$C = {
|
|
33170
|
-
"ppmna-default-font": "_ppmna-default-
|
|
33136
|
+
"ppmna-default-font": "_ppmna-default-font_ykpz3_1",
|
|
33171
33137
|
bannerInfoContainer,
|
|
33172
33138
|
bannerInfoIcon,
|
|
33173
33139
|
bannerDesc,
|
|
@@ -33209,12 +33175,15 @@ const _sfc_main$L = defineComponent({
|
|
|
33209
33175
|
return (_c = (_b = (_a2 = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a2.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.description;
|
|
33210
33176
|
}),
|
|
33211
33177
|
buttonList: computed(() => {
|
|
33212
|
-
var _a2, _b, _c;
|
|
33213
|
-
return (_c = (_b = (_a2 = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a2.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.buttonList;
|
|
33178
|
+
var _a2, _b, _c, _d;
|
|
33179
|
+
return filterErrorButtonList((_d = (_c = (_b = (_a2 = props == null ? void 0 : props.selectedPaymentMethod) == null ? void 0 : _a2.descriptionBannerInfo) == null ? void 0 : _b.displayResponse) == null ? void 0 : _c.buttonList) != null ? _d : []);
|
|
33214
33180
|
}),
|
|
33215
33181
|
click,
|
|
33216
33182
|
style
|
|
33217
33183
|
};
|
|
33184
|
+
},
|
|
33185
|
+
methods: {
|
|
33186
|
+
getButtonType
|
|
33218
33187
|
}
|
|
33219
33188
|
});
|
|
33220
33189
|
const _hoisted_1$m = ["src"];
|
|
@@ -33234,12 +33203,13 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33234
33203
|
class: normalizeClass(_ctx.style.bannerDesc)
|
|
33235
33204
|
}, toDisplayString(_ctx.description), 3),
|
|
33236
33205
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (item2, index2) => {
|
|
33206
|
+
var _a2;
|
|
33237
33207
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
33238
33208
|
createVNode(_component_Button, {
|
|
33239
33209
|
name: "listbtn_" + index2,
|
|
33240
33210
|
block: "",
|
|
33241
33211
|
"tab-index": index2,
|
|
33242
|
-
type: item2.
|
|
33212
|
+
type: _ctx.getButtonType(item2, ((_a2 = _ctx.buttonList) == null ? void 0 : _a2.length) === 1),
|
|
33243
33213
|
onClick: ($event) => _ctx.click(item2, index2)
|
|
33244
33214
|
}, {
|
|
33245
33215
|
default: withCtx(() => [
|
|
@@ -35469,7 +35439,7 @@ function debug(params) {
|
|
|
35469
35439
|
function execute$6(params) {
|
|
35470
35440
|
var _a2;
|
|
35471
35441
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params, {
|
|
35472
|
-
v: "1.
|
|
35442
|
+
v: "1.54.0"
|
|
35473
35443
|
});
|
|
35474
35444
|
}
|
|
35475
35445
|
function useCallBack(props, ctx) {
|
|
@@ -37045,11 +37015,14 @@ const registerPaymentFeatures$1 = {
|
|
|
37045
37015
|
message: "To use Auto Charge, \nplease update the application \nto the latest version",
|
|
37046
37016
|
update: "Update app",
|
|
37047
37017
|
cancel: "Don't do it now"
|
|
37048
|
-
}
|
|
37018
|
+
},
|
|
37019
|
+
eMoneyOnly: "Top-up from bank account only",
|
|
37020
|
+
topupNoticeEmoneyOnlyTitle: "Choose Top-Up from Bank Account",
|
|
37021
|
+
topupNoticeEmoneyOnlyDesc: "You need to use PayPay Money to pay at this store. Top up from a bank account to use PayPay Money."
|
|
37049
37022
|
},
|
|
37050
37023
|
autoTopupRootFooter: {
|
|
37051
37024
|
enable: "Enable",
|
|
37052
|
-
notice: "
|
|
37025
|
+
notice: "Settings apply to all PayPay payments\nAfter completing the settings, return to the mini app you are using.",
|
|
37053
37026
|
notNow: "Not now"
|
|
37054
37027
|
},
|
|
37055
37028
|
amountChange: {
|
|
@@ -38691,12 +38664,12 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38691
38664
|
const cssModules$k = {};
|
|
38692
38665
|
cssModules$k["$style"] = style0$k;
|
|
38693
38666
|
var RegisterUserInfoCategoryView = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__cssModules", cssModules$k]]);
|
|
38694
|
-
const container$6 = "
|
|
38695
|
-
const text$1 = "
|
|
38696
|
-
const buttonRow = "
|
|
38697
|
-
const back = "
|
|
38698
|
-
const next = "
|
|
38699
|
-
const cancel$1 = "
|
|
38667
|
+
const container$6 = "_container_on600_1";
|
|
38668
|
+
const text$1 = "_text_on600_4";
|
|
38669
|
+
const buttonRow = "_buttonRow_on600_9";
|
|
38670
|
+
const back = "_back_on600_15";
|
|
38671
|
+
const next = "_next_on600_26";
|
|
38672
|
+
const cancel$1 = "_cancel_on600_41";
|
|
38700
38673
|
var style0$j = {
|
|
38701
38674
|
container: container$6,
|
|
38702
38675
|
text: text$1,
|
|
@@ -39543,13 +39516,11 @@ function execute$1(params) {
|
|
|
39543
39516
|
(_b = params == null ? void 0 : params.complete) == null ? void 0 : _b.call(params);
|
|
39544
39517
|
}
|
|
39545
39518
|
}
|
|
39546
|
-
function getTopupConfiguration() {
|
|
39519
|
+
function getTopupConfiguration(params) {
|
|
39547
39520
|
return ppFetch2({
|
|
39548
39521
|
method: "GET",
|
|
39549
39522
|
url: "web-api/app/v1/users/autoTopupConfiguration",
|
|
39550
|
-
params
|
|
39551
|
-
includePaymentMethodList: true
|
|
39552
|
-
}
|
|
39523
|
+
params
|
|
39553
39524
|
});
|
|
39554
39525
|
}
|
|
39555
39526
|
function updatePreTransactionAutoTopupConfiguration(params) {
|
|
@@ -39572,7 +39543,8 @@ function getConsultPaymentFeature(params) {
|
|
|
39572
39543
|
url: "web-api/app/v1/users/consultPaymentFeature",
|
|
39573
39544
|
params: {
|
|
39574
39545
|
paymentFeatureType: params.paymentFeatureType,
|
|
39575
|
-
merchant: params == null ? void 0 : params.merchant
|
|
39546
|
+
merchant: params == null ? void 0 : params.merchant,
|
|
39547
|
+
productType: params == null ? void 0 : params.productType
|
|
39576
39548
|
}
|
|
39577
39549
|
});
|
|
39578
39550
|
}
|
|
@@ -39630,7 +39602,10 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39630
39602
|
},
|
|
39631
39603
|
errorSheet: {
|
|
39632
39604
|
isVisible: false
|
|
39633
|
-
}
|
|
39605
|
+
},
|
|
39606
|
+
isEmoneyOnly: false,
|
|
39607
|
+
showEmoneyOnlyNotice: false,
|
|
39608
|
+
ptacPaymentMethodId: void 0
|
|
39634
39609
|
};
|
|
39635
39610
|
},
|
|
39636
39611
|
getters: {
|
|
@@ -39690,18 +39665,27 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39690
39665
|
this.minimumTopupAmount = payload.amount;
|
|
39691
39666
|
},
|
|
39692
39667
|
selectPaymentMethod(payload) {
|
|
39668
|
+
var _a2;
|
|
39693
39669
|
this.selectedPaymentMethodInfo = this.availablePaymentMethodList ? this.availablePaymentMethodList[payload.paymentIndex] : void 0;
|
|
39670
|
+
if (((_a2 = this.selectedPaymentMethodInfo) == null ? void 0 : _a2.paymentMethodId) !== this.ptacPaymentMethodId && this.isEmoneyOnly) {
|
|
39671
|
+
this.showEmoneyOnlyNotice = false;
|
|
39672
|
+
}
|
|
39694
39673
|
},
|
|
39695
|
-
async initialize(
|
|
39674
|
+
async initialize(isEmoneyOnly, needUpdate, merchant2, productType) {
|
|
39696
39675
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
39697
|
-
|
|
39698
|
-
if (!isAvailablePreTransactionAutoTopup) {
|
|
39676
|
+
if (needUpdate) {
|
|
39699
39677
|
this.needUpdate = true;
|
|
39700
39678
|
this.renderRoot = true;
|
|
39701
39679
|
this.openSetting();
|
|
39702
39680
|
return;
|
|
39703
39681
|
}
|
|
39704
|
-
|
|
39682
|
+
this.isEmoneyOnly = isEmoneyOnly;
|
|
39683
|
+
const topupConfigParams = {
|
|
39684
|
+
includePaymentMethodList: true,
|
|
39685
|
+
merchant: merchant2,
|
|
39686
|
+
productType
|
|
39687
|
+
};
|
|
39688
|
+
const response = await getTopupConfiguration(topupConfigParams);
|
|
39705
39689
|
if (response.ppFetchResult !== "success") {
|
|
39706
39690
|
this.handleErrorResponse(response);
|
|
39707
39691
|
return;
|
|
@@ -39709,38 +39693,16 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39709
39693
|
const config2 = (_b = (_a2 = response.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data;
|
|
39710
39694
|
this.mode = getTopupSettingMode(config2);
|
|
39711
39695
|
if (this.mode === AutoTopupModeType.PRE_AUTO_TOPUP) {
|
|
39712
|
-
|
|
39713
|
-
|
|
39714
|
-
|
|
39715
|
-
|
|
39716
|
-
|
|
39717
|
-
|
|
39718
|
-
|
|
39719
|
-
|
|
39720
|
-
const consultResponse = await getConsultPaymentFeature(params);
|
|
39721
|
-
if (consultResponse.ppFetchResult !== "success") {
|
|
39722
|
-
this.handleErrorResponse(consultResponse);
|
|
39723
|
-
return;
|
|
39724
|
-
}
|
|
39725
|
-
const nextAction = (_e = (_d = (_c = consultResponse.body) == null ? void 0 : _c.unsigned) == null ? void 0 : _d.data) == null ? void 0 : _e.nextAction;
|
|
39726
|
-
if (nextAction === ConsultPaymentFeatureTypes.PRE_TRANSACTION_AUTO_CHARGE) {
|
|
39727
|
-
await this.showAddBankUI();
|
|
39728
|
-
return;
|
|
39696
|
+
this.ptacPaymentMethodId = (_c = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _c.paymentMethodId;
|
|
39697
|
+
this.paymentMethodList = (_d = config2.paymentMethodList) != null ? _d : [];
|
|
39698
|
+
this.minimumTopupAmount = (_e = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _e.minimumTopupAmount;
|
|
39699
|
+
if (((_f = this.paymentMethodList) == null ? void 0 : _f.length) > 0 && this.existActivatedMethod) {
|
|
39700
|
+
this.selectedPaymentMethodInfo = config2.preTransactionAutoTopupPaymentMethod;
|
|
39701
|
+
const isMethodAvailableInList = (_g = this.paymentMethodList) == null ? void 0 : _g.find((element) => element.paymentMethodId === this.ptacPaymentMethodId);
|
|
39702
|
+
if (!isMethodAvailableInList && this.isEmoneyOnly) {
|
|
39703
|
+
this.showEmoneyOnlyNotice = true;
|
|
39729
39704
|
}
|
|
39730
39705
|
}
|
|
39731
|
-
this.paymentMethodList = config2.paymentMethodList;
|
|
39732
|
-
this.minimumTopupAmount = (_f = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _f.minimumTopupAmount;
|
|
39733
|
-
this.selectedPaymentMethodInfo = (_g = this.paymentMethodList) == null ? void 0 : _g.find((element) => {
|
|
39734
|
-
var _a3;
|
|
39735
|
-
return element.paymentMethodId === ((_a3 = config2.preTransactionAutoTopupConfiguration) == null ? void 0 : _a3.paymentMethodId);
|
|
39736
|
-
});
|
|
39737
|
-
if (this.selectedAvailableTopupMethod) {
|
|
39738
|
-
this.isFinishSetting = true;
|
|
39739
|
-
this.result = {
|
|
39740
|
-
type: "success"
|
|
39741
|
-
};
|
|
39742
|
-
return;
|
|
39743
|
-
}
|
|
39744
39706
|
}
|
|
39745
39707
|
const appConfig = await this.initAppConfig();
|
|
39746
39708
|
if (!appConfig) {
|
|
@@ -39883,7 +39845,7 @@ const useRegisterPaymentFeaturesStore = defineStore("registerPaymentFeatures", {
|
|
|
39883
39845
|
}
|
|
39884
39846
|
},
|
|
39885
39847
|
selectTopupMethodSetting() {
|
|
39886
|
-
if (this.
|
|
39848
|
+
if (this.existActivatedMethod) {
|
|
39887
39849
|
this.openChooseTopupMethodSheet();
|
|
39888
39850
|
} else {
|
|
39889
39851
|
this.openTopupMethodSetting();
|
|
@@ -39988,7 +39950,7 @@ function getTopupSettingMode(config2) {
|
|
|
39988
39950
|
}
|
|
39989
39951
|
return AutoTopupModeType.UNREGISTERED;
|
|
39990
39952
|
}
|
|
39991
|
-
const container$2 = "
|
|
39953
|
+
const container$2 = "_container_1fgx4_1";
|
|
39992
39954
|
var style0$c = {
|
|
39993
39955
|
container: container$2
|
|
39994
39956
|
};
|
|
@@ -40011,7 +39973,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40011
39973
|
class: normalizeClass(_ctx.$style.container)
|
|
40012
39974
|
}, [
|
|
40013
39975
|
createVNode(_component_Button, {
|
|
40014
|
-
type: "
|
|
39976
|
+
type: "outLined",
|
|
40015
39977
|
block: "",
|
|
40016
39978
|
onClick: _ctx.store.cancelSetting
|
|
40017
39979
|
}, {
|
|
@@ -40025,9 +39987,9 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40025
39987
|
const cssModules$c = {};
|
|
40026
39988
|
cssModules$c["$style"] = style0$c;
|
|
40027
39989
|
var RegisterPaymentFeaturesFooterView = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__cssModules", cssModules$c]]);
|
|
40028
|
-
const container$1 = "
|
|
40029
|
-
const description$7 = "
|
|
40030
|
-
const enable = "
|
|
39990
|
+
const container$1 = "_container_zhmhg_1";
|
|
39991
|
+
const description$7 = "_description_zhmhg_6";
|
|
39992
|
+
const enable = "_enable_zhmhg_16";
|
|
40031
39993
|
var style0$b = {
|
|
40032
39994
|
container: container$1,
|
|
40033
39995
|
description: description$7,
|
|
@@ -40051,12 +40013,16 @@ const _sfc_main$d = defineComponent({
|
|
|
40051
40013
|
loading2.value = false;
|
|
40052
40014
|
});
|
|
40053
40015
|
};
|
|
40016
|
+
const showEmoneyOnlyNotice = computed(() => {
|
|
40017
|
+
return store.showEmoneyOnlyNotice;
|
|
40018
|
+
});
|
|
40054
40019
|
return {
|
|
40055
40020
|
lg: getLanguage().registerPaymentFeatures.autoTopupRootFooter,
|
|
40056
40021
|
close,
|
|
40057
40022
|
enable: enable2,
|
|
40058
40023
|
loading: loading2,
|
|
40059
|
-
store
|
|
40024
|
+
store,
|
|
40025
|
+
showEmoneyOnlyNotice
|
|
40060
40026
|
};
|
|
40061
40027
|
}
|
|
40062
40028
|
});
|
|
@@ -40073,7 +40039,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40073
40039
|
block: "",
|
|
40074
40040
|
class: normalizeClass(_ctx.$style.enable),
|
|
40075
40041
|
loading: _ctx.loading,
|
|
40076
|
-
disabled: _ctx.loading,
|
|
40042
|
+
disabled: _ctx.loading || _ctx.showEmoneyOnlyNotice,
|
|
40077
40043
|
onClick: _ctx.enable
|
|
40078
40044
|
}, {
|
|
40079
40045
|
default: withCtx(() => [
|
|
@@ -40155,17 +40121,21 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40155
40121
|
const cssModules$a = {};
|
|
40156
40122
|
cssModules$a["$style"] = style0$a;
|
|
40157
40123
|
var RegisterPaymentFeaturesFooterUpdateWarning = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__cssModules", cssModules$a]]);
|
|
40158
|
-
const method = "
|
|
40159
|
-
const icon$7 = "
|
|
40160
|
-
const bankIcon = "
|
|
40161
|
-
const text = "
|
|
40162
|
-
const
|
|
40124
|
+
const method = "_method_tc4a7_1";
|
|
40125
|
+
const icon$7 = "_icon_tc4a7_10";
|
|
40126
|
+
const bankIcon = "_bankIcon_tc4a7_13";
|
|
40127
|
+
const text = "_text_tc4a7_16";
|
|
40128
|
+
const eMoneyOnly = "_eMoneyOnly_tc4a7_24";
|
|
40129
|
+
const bankInfo = "_bankInfo_tc4a7_34";
|
|
40130
|
+
const eMoneyOnlyMethod = "_eMoneyOnlyMethod_tc4a7_37";
|
|
40163
40131
|
var style0$9 = {
|
|
40164
40132
|
method,
|
|
40165
40133
|
icon: icon$7,
|
|
40166
40134
|
bankIcon,
|
|
40167
40135
|
text,
|
|
40168
|
-
|
|
40136
|
+
eMoneyOnly,
|
|
40137
|
+
bankInfo,
|
|
40138
|
+
eMoneyOnlyMethod
|
|
40169
40139
|
};
|
|
40170
40140
|
const _sfc_main$b = defineComponent({
|
|
40171
40141
|
name: "AutoTopupMethod",
|
|
@@ -40217,6 +40187,12 @@ const _sfc_main$b = defineComponent({
|
|
|
40217
40187
|
const onSelectTopupMethodSetting = () => {
|
|
40218
40188
|
emit("settingTopupMethod");
|
|
40219
40189
|
};
|
|
40190
|
+
const isEmoneyOnly = computed(() => {
|
|
40191
|
+
return store.isEmoneyOnly;
|
|
40192
|
+
});
|
|
40193
|
+
const showEmoneyOnlyNotice = computed(() => {
|
|
40194
|
+
return store.showEmoneyOnlyNotice;
|
|
40195
|
+
});
|
|
40220
40196
|
return {
|
|
40221
40197
|
lg: getLanguage().registerPaymentFeatures.autoTopupRoot,
|
|
40222
40198
|
images: getImages(),
|
|
@@ -40226,7 +40202,9 @@ const _sfc_main$b = defineComponent({
|
|
|
40226
40202
|
onSelectTopupMethodSetting,
|
|
40227
40203
|
store,
|
|
40228
40204
|
sbidMethod,
|
|
40229
|
-
payLaterCcMethod
|
|
40205
|
+
payLaterCcMethod,
|
|
40206
|
+
isEmoneyOnly,
|
|
40207
|
+
showEmoneyOnlyNotice
|
|
40230
40208
|
};
|
|
40231
40209
|
}
|
|
40232
40210
|
});
|
|
@@ -40257,7 +40235,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40257
40235
|
}, [
|
|
40258
40236
|
_ctx.bankMethod ? (openBlock(), createElementBlock("div", {
|
|
40259
40237
|
key: 0,
|
|
40260
|
-
class: normalizeClass([
|
|
40238
|
+
class: normalizeClass([
|
|
40239
|
+
_ctx.$style.method,
|
|
40240
|
+
_ctx.$style.bankInfo,
|
|
40241
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40242
|
+
])
|
|
40261
40243
|
}, [
|
|
40262
40244
|
createVNode(_component_Bank, {
|
|
40263
40245
|
bank: _ctx.bankMethod,
|
|
@@ -40270,7 +40252,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40270
40252
|
], 2)) : createCommentVNode("", true),
|
|
40271
40253
|
_ctx.creditMethod ? (openBlock(), createElementBlock("div", {
|
|
40272
40254
|
key: 1,
|
|
40273
|
-
class: normalizeClass([
|
|
40255
|
+
class: normalizeClass([
|
|
40256
|
+
_ctx.$style.method,
|
|
40257
|
+
_ctx.$style.bankInfo,
|
|
40258
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40259
|
+
])
|
|
40274
40260
|
}, [
|
|
40275
40261
|
createVNode(_component_CreditCard, { credit: _ctx.creditMethod }, null, 8, ["credit"]),
|
|
40276
40262
|
createBaseVNode("img", {
|
|
@@ -40280,7 +40266,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40280
40266
|
], 2)) : createCommentVNode("", true),
|
|
40281
40267
|
_ctx.sbidMethod ? (openBlock(), createElementBlock("div", {
|
|
40282
40268
|
key: 2,
|
|
40283
|
-
class: normalizeClass([
|
|
40269
|
+
class: normalizeClass([
|
|
40270
|
+
_ctx.$style.method,
|
|
40271
|
+
_ctx.$style.bankInfo,
|
|
40272
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40273
|
+
])
|
|
40284
40274
|
}, [
|
|
40285
40275
|
createVNode(_component_SbidBank, { sbid: _ctx.sbidMethod }, null, 8, ["sbid"]),
|
|
40286
40276
|
createBaseVNode("img", {
|
|
@@ -40290,7 +40280,11 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40290
40280
|
], 2)) : createCommentVNode("", true),
|
|
40291
40281
|
_ctx.payLaterCcMethod ? (openBlock(), createElementBlock("div", {
|
|
40292
40282
|
key: 3,
|
|
40293
|
-
class: normalizeClass([
|
|
40283
|
+
class: normalizeClass([
|
|
40284
|
+
_ctx.$style.method,
|
|
40285
|
+
_ctx.$style.bankInfo,
|
|
40286
|
+
{ [_ctx.$style.eMoneyOnlyMethod]: _ctx.showEmoneyOnlyNotice }
|
|
40287
|
+
])
|
|
40294
40288
|
}, [
|
|
40295
40289
|
createVNode(_component_PayLaterCC, { "pay-later": _ctx.payLaterCcMethod }, null, 8, ["pay-later"]),
|
|
40296
40290
|
createBaseVNode("img", {
|
|
@@ -40313,14 +40307,20 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40313
40307
|
alt: ""
|
|
40314
40308
|
}, null, 10, _hoisted_5)
|
|
40315
40309
|
], 2),
|
|
40316
|
-
createBaseVNode("
|
|
40317
|
-
|
|
40318
|
-
|
|
40319
|
-
|
|
40320
|
-
|
|
40310
|
+
createBaseVNode("div", null, [
|
|
40311
|
+
createBaseVNode("p", {
|
|
40312
|
+
class: normalizeClass(_ctx.$style.text)
|
|
40313
|
+
}, [
|
|
40314
|
+
_ctx.store.isEmptyPaymentMethodList ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.lg.addTopupMethod), 1)) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(_ctx.lg.noActivatedTopupMethod), 1))
|
|
40315
|
+
], 2),
|
|
40316
|
+
_ctx.isEmoneyOnly ? (openBlock(), createElementBlock("p", {
|
|
40317
|
+
key: 0,
|
|
40318
|
+
class: normalizeClass(_ctx.$style.eMoneyOnly)
|
|
40319
|
+
}, toDisplayString(_ctx.lg.eMoneyOnly), 3)) : createCommentVNode("", true)
|
|
40320
|
+
]),
|
|
40321
40321
|
createBaseVNode("img", {
|
|
40322
40322
|
class: normalizeClass(_ctx.$style.icon),
|
|
40323
|
-
src: _ctx.images.
|
|
40323
|
+
src: _ctx.images.iconArrowRightBlue
|
|
40324
40324
|
}, null, 10, _hoisted_8)
|
|
40325
40325
|
], 2))
|
|
40326
40326
|
]);
|
|
@@ -40328,23 +40328,26 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40328
40328
|
const cssModules$9 = {};
|
|
40329
40329
|
cssModules$9["$style"] = style0$9;
|
|
40330
40330
|
var AutoTopupMethod = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__cssModules", cssModules$9]]);
|
|
40331
|
-
const container = "
|
|
40332
|
-
const mainContents = "
|
|
40333
|
-
const section = "
|
|
40334
|
-
const main = "
|
|
40335
|
-
const icon$6 = "
|
|
40336
|
-
const title$5 = "
|
|
40337
|
-
const description$6 = "
|
|
40338
|
-
const config = "
|
|
40339
|
-
const item = "
|
|
40340
|
-
const label = "
|
|
40341
|
-
const contents$5 = "
|
|
40342
|
-
const inner$5 = "
|
|
40343
|
-
const price = "
|
|
40344
|
-
const amount = "
|
|
40345
|
-
const unit$1 = "
|
|
40346
|
-
const notice = "
|
|
40347
|
-
const
|
|
40331
|
+
const container = "_container_rj0l8_1";
|
|
40332
|
+
const mainContents = "_mainContents_rj0l8_7";
|
|
40333
|
+
const section = "_section_rj0l8_13";
|
|
40334
|
+
const main = "_main_rj0l8_7";
|
|
40335
|
+
const icon$6 = "_icon_rj0l8_21";
|
|
40336
|
+
const title$5 = "_title_rj0l8_25";
|
|
40337
|
+
const description$6 = "_description_rj0l8_32";
|
|
40338
|
+
const config = "_config_rj0l8_42";
|
|
40339
|
+
const item = "_item_rj0l8_47";
|
|
40340
|
+
const label = "_label_rj0l8_57";
|
|
40341
|
+
const contents$5 = "_contents_rj0l8_61";
|
|
40342
|
+
const inner$5 = "_inner_rj0l8_61";
|
|
40343
|
+
const price = "_price_rj0l8_67";
|
|
40344
|
+
const amount = "_amount_rj0l8_72";
|
|
40345
|
+
const unit$1 = "_unit_rj0l8_77";
|
|
40346
|
+
const notice = "_notice_rj0l8_82";
|
|
40347
|
+
const eMoneyOnlyNotice = "_eMoneyOnlyNotice_rj0l8_103";
|
|
40348
|
+
const noticeTitle = "_noticeTitle_rj0l8_107";
|
|
40349
|
+
const noticeDesc = "_noticeDesc_rj0l8_111";
|
|
40350
|
+
const updateMessage = "_updateMessage_rj0l8_114";
|
|
40348
40351
|
var style0$8 = {
|
|
40349
40352
|
container,
|
|
40350
40353
|
mainContents,
|
|
@@ -40362,6 +40365,9 @@ var style0$8 = {
|
|
|
40362
40365
|
amount,
|
|
40363
40366
|
unit: unit$1,
|
|
40364
40367
|
notice,
|
|
40368
|
+
eMoneyOnlyNotice,
|
|
40369
|
+
noticeTitle,
|
|
40370
|
+
noticeDesc,
|
|
40365
40371
|
updateMessage
|
|
40366
40372
|
};
|
|
40367
40373
|
const _sfc_main$a = defineComponent({
|
|
@@ -40400,6 +40406,9 @@ const _sfc_main$a = defineComponent({
|
|
|
40400
40406
|
const title2 = computed(() => {
|
|
40401
40407
|
return store.needUpdate ? lg2.titleNeedUpdate : lg2.title;
|
|
40402
40408
|
});
|
|
40409
|
+
const showEmoneyOnlyNotice = computed(() => {
|
|
40410
|
+
return store.showEmoneyOnlyNotice;
|
|
40411
|
+
});
|
|
40403
40412
|
return {
|
|
40404
40413
|
topupAmount: topupAmount2,
|
|
40405
40414
|
images: getImages(),
|
|
@@ -40412,7 +40421,8 @@ const _sfc_main$a = defineComponent({
|
|
|
40412
40421
|
onSelectTopupAmount,
|
|
40413
40422
|
categoryStyle,
|
|
40414
40423
|
containerStyle,
|
|
40415
|
-
title: title2
|
|
40424
|
+
title: title2,
|
|
40425
|
+
showEmoneyOnlyNotice
|
|
40416
40426
|
};
|
|
40417
40427
|
}
|
|
40418
40428
|
});
|
|
@@ -40495,19 +40505,30 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40495
40505
|
}, null, 8, ["topup-method", "onSelectTopupMethod", "onSettingTopupMethod"])
|
|
40496
40506
|
]),
|
|
40497
40507
|
createBaseVNode("div", {
|
|
40498
|
-
class: normalizeClass(
|
|
40508
|
+
class: normalizeClass([
|
|
40509
|
+
_ctx.$style.notice,
|
|
40510
|
+
{ [_ctx.$style.eMoneyOnlyNotice]: _ctx.showEmoneyOnlyNotice }
|
|
40511
|
+
])
|
|
40499
40512
|
}, [
|
|
40500
40513
|
createBaseVNode("div", {
|
|
40501
40514
|
class: normalizeClass(_ctx.$style.icon)
|
|
40502
40515
|
}, [
|
|
40503
40516
|
createBaseVNode("img", {
|
|
40504
|
-
src: _ctx.images.iconNotice,
|
|
40517
|
+
src: _ctx.showEmoneyOnlyNotice ? _ctx.images.iconInfo : _ctx.images.iconNotice,
|
|
40505
40518
|
alt: ""
|
|
40506
40519
|
}, null, 8, _hoisted_3)
|
|
40507
40520
|
], 2),
|
|
40508
40521
|
createBaseVNode("div", {
|
|
40509
40522
|
class: normalizeClass(_ctx.$style.contents)
|
|
40510
|
-
},
|
|
40523
|
+
}, [
|
|
40524
|
+
_ctx.showEmoneyOnlyNotice ? (openBlock(), createElementBlock("p", {
|
|
40525
|
+
key: 0,
|
|
40526
|
+
class: normalizeClass(_ctx.$style.noticeTitle)
|
|
40527
|
+
}, toDisplayString(_ctx.lg.topupNoticeEmoneyOnlyTitle), 3)) : createCommentVNode("", true),
|
|
40528
|
+
createBaseVNode("p", {
|
|
40529
|
+
class: normalizeClass(_ctx.$style.noticeDesc)
|
|
40530
|
+
}, toDisplayString(_ctx.showEmoneyOnlyNotice ? _ctx.lg.topupNoticeEmoneyOnlyDesc : _ctx.lg.topupNotice), 3)
|
|
40531
|
+
], 2)
|
|
40511
40532
|
], 2)
|
|
40512
40533
|
], 2)) : (openBlock(), createElementBlock("div", {
|
|
40513
40534
|
key: 1,
|
|
@@ -41189,6 +41210,16 @@ const _sfc_main$1 = defineComponent({
|
|
|
41189
41210
|
params: {
|
|
41190
41211
|
type: Object,
|
|
41191
41212
|
required: true
|
|
41213
|
+
},
|
|
41214
|
+
isEmoneyOnly: {
|
|
41215
|
+
type: Boolean,
|
|
41216
|
+
default: false,
|
|
41217
|
+
required: false
|
|
41218
|
+
},
|
|
41219
|
+
needUpdate: {
|
|
41220
|
+
type: Boolean,
|
|
41221
|
+
default: false,
|
|
41222
|
+
required: false
|
|
41192
41223
|
}
|
|
41193
41224
|
},
|
|
41194
41225
|
emits: {
|
|
@@ -41198,7 +41229,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
41198
41229
|
var _a2, _b;
|
|
41199
41230
|
const lg2 = getLanguage().registerPaymentFeatures.autoTopupRoot;
|
|
41200
41231
|
const store = useRegisterPaymentFeaturesStore();
|
|
41201
|
-
store.initialize((_a2 = props.params) == null ? void 0 : _a2.
|
|
41232
|
+
store.initialize(props.isEmoneyOnly, props.needUpdate, (_a2 = props.params) == null ? void 0 : _a2.merchant, (_b = props.params) == null ? void 0 : _b.productType).catch(() => {
|
|
41202
41233
|
});
|
|
41203
41234
|
const complete = () => {
|
|
41204
41235
|
var _a3, _b2;
|
|
@@ -41389,6 +41420,7 @@ const cssModules = {};
|
|
|
41389
41420
|
cssModules["$style"] = style0;
|
|
41390
41421
|
var FallbackMethodAppUpdateWarning = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
|
|
41391
41422
|
const MinVersion = {
|
|
41423
|
+
PRE_TRANSACTION_AUTO_CHARGE: "3.43.0",
|
|
41392
41424
|
FALLBACK_PAYMENT_METHOD: "3.61.0"
|
|
41393
41425
|
};
|
|
41394
41426
|
function checkIfValidInput(params) {
|
|
@@ -41412,59 +41444,46 @@ function registerPaymentFeatures(params) {
|
|
|
41412
41444
|
(_b = params.complete) == null ? void 0 : _b.call(params);
|
|
41413
41445
|
return;
|
|
41414
41446
|
}
|
|
41415
|
-
|
|
41416
|
-
|
|
41417
|
-
} else if (params.paymentFeatureType === PaymentFeatureTypes.FALLBACK_PAYMENT_METHOD) {
|
|
41418
|
-
checkVersionAndHandleCallback(params, () => {
|
|
41419
|
-
consultPaymentFeatureType(params, true).catch(() => {
|
|
41420
|
-
});
|
|
41421
|
-
});
|
|
41422
|
-
} else {
|
|
41423
|
-
consultPaymentFeatureType(params).catch(() => {
|
|
41424
|
-
});
|
|
41425
|
-
}
|
|
41447
|
+
consultPaymentFeatureType(params).catch(() => {
|
|
41448
|
+
});
|
|
41426
41449
|
}
|
|
41427
|
-
async function consultPaymentFeatureType(params
|
|
41450
|
+
async function consultPaymentFeatureType(params) {
|
|
41428
41451
|
var _a2, _b;
|
|
41429
41452
|
const consultResponse = await getConsultPaymentFeatureAction(params);
|
|
41430
41453
|
if (!consultResponse) {
|
|
41431
41454
|
return;
|
|
41432
41455
|
}
|
|
41433
|
-
if (consultResponse === ConsultPaymentFeatureTypes.NONE) {
|
|
41456
|
+
if (consultResponse.nextAction === ConsultPaymentFeatureTypes.NONE) {
|
|
41434
41457
|
(_a2 = params == null ? void 0 : params.success) == null ? void 0 : _a2.call(params);
|
|
41435
41458
|
(_b = params == null ? void 0 : params.complete) == null ? void 0 : _b.call(params);
|
|
41436
|
-
} else if (consultResponse === ConsultPaymentFeatureTypes.PRE_TRANSACTION_AUTO_CHARGE) {
|
|
41437
|
-
|
|
41438
|
-
|
|
41439
|
-
|
|
41459
|
+
} else if (consultResponse.nextAction === ConsultPaymentFeatureTypes.PRE_TRANSACTION_AUTO_CHARGE) {
|
|
41460
|
+
const isMethodSupported = checkVersion(MinVersion.PRE_TRANSACTION_AUTO_CHARGE);
|
|
41461
|
+
const props = {
|
|
41462
|
+
isEmoneyOnly: consultResponse.isEmoneyOnly,
|
|
41463
|
+
needUpdate: !isMethodSupported
|
|
41464
|
+
};
|
|
41465
|
+
mountUIComponent(params, RegisterPaymentFeaturesRootView, props);
|
|
41466
|
+
} else if (consultResponse.nextAction === ConsultPaymentFeatureTypes.FALLBACK_PAYMENT_METHOD) {
|
|
41467
|
+
const isMethodSupported = checkVersion(MinVersion.FALLBACK_PAYMENT_METHOD);
|
|
41468
|
+
if (isMethodSupported) {
|
|
41440
41469
|
triggerFallbackPaymentMethod(params);
|
|
41441
41470
|
} else {
|
|
41442
|
-
|
|
41443
|
-
triggerFallbackPaymentMethod(params);
|
|
41444
|
-
});
|
|
41471
|
+
mountUIComponent(params, FallbackMethodAppUpdateWarning);
|
|
41445
41472
|
}
|
|
41446
41473
|
} else {
|
|
41447
41474
|
triggerFailCallback(params, MiniAppErrorType.unknown);
|
|
41448
41475
|
}
|
|
41449
41476
|
}
|
|
41450
|
-
function
|
|
41451
|
-
const isFallbackMethodSupported = checkVersion(MinVersion.FALLBACK_PAYMENT_METHOD);
|
|
41452
|
-
if (!isFallbackMethodSupported) {
|
|
41453
|
-
mountUIComponent(params, FallbackMethodAppUpdateWarning);
|
|
41454
|
-
} else {
|
|
41455
|
-
callback();
|
|
41456
|
-
}
|
|
41457
|
-
}
|
|
41458
|
-
function mountUIComponent(params, component) {
|
|
41477
|
+
function mountUIComponent(params, component, props) {
|
|
41459
41478
|
const container2 = document.createElement("div");
|
|
41460
41479
|
container2.className = "ppmna-reset-css";
|
|
41461
|
-
const app = createApp(component, {
|
|
41480
|
+
const app = createApp(component, __spreadValues({
|
|
41462
41481
|
onComplete: () => {
|
|
41463
41482
|
app.unmount();
|
|
41464
41483
|
document.body.removeChild(container2);
|
|
41465
41484
|
},
|
|
41466
41485
|
params
|
|
41467
|
-
});
|
|
41486
|
+
}, props));
|
|
41468
41487
|
app.use(createPinia());
|
|
41469
41488
|
app.directive(HORIZONTAL_SCROLL_KEY, useHorizontalScrollDirective);
|
|
41470
41489
|
app.directive(VERTICAL_SCROLL_KEY, useVerticalScrollDirective);
|
|
@@ -41472,7 +41491,7 @@ function mountUIComponent(params, component) {
|
|
|
41472
41491
|
document.body.appendChild(container2);
|
|
41473
41492
|
}
|
|
41474
41493
|
async function getConsultPaymentFeatureAction(params) {
|
|
41475
|
-
var _a2, _b
|
|
41494
|
+
var _a2, _b;
|
|
41476
41495
|
const response = await getConsultPaymentFeature(params);
|
|
41477
41496
|
switch (response.ppFetchResult) {
|
|
41478
41497
|
case "success":
|
|
@@ -41484,7 +41503,7 @@ async function getConsultPaymentFeatureAction(params) {
|
|
|
41484
41503
|
triggerFailCallback(params, MiniAppErrorType.serverError);
|
|
41485
41504
|
return false;
|
|
41486
41505
|
}
|
|
41487
|
-
return (
|
|
41506
|
+
return (_b = (_a2 = response.body) == null ? void 0 : _a2.unsigned) == null ? void 0 : _b.data;
|
|
41488
41507
|
}
|
|
41489
41508
|
function triggerFallbackPaymentMethod(params) {
|
|
41490
41509
|
var _a2;
|