@paypay/mini-app-js-sdk 1.30.0 → 1.31.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 +70 -39
- package/dist/mini-app-js-sdk.min.css +1 -1
- package/dist/model/makePayment.d.ts +1 -0
- package/dist/package/payment-method/PayLaterCC.vue.d.ts +1 -0
- package/dist/package/payment-method/SbidBank.vue.d.ts +1 -0
- package/dist/package/payment-method/Wallet.vue.d.ts +1 -0
- package/dist/package/payment-type/PayLaterCC.vue.d.ts +1 -0
- package/dist/package/payment-type/Sbid.vue.d.ts +1 -0
- package/dist/package/payment-type/Wallet.vue.d.ts +2 -0
- package/dist/package/wallet-breakdown/WalletBreakdown.vue.d.ts +1 -0
- package/dist/utils/getLanguage.d.ts +1 -0
- package/dist/views/email-registration/App.vue.d.ts +1 -0
- package/dist/views/error-sheet/Index.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Contents.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/DeleteHalfSheet.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/Footer.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/TagForm.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/AddSheet/index.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Address.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/Footer.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/DisplaySheet/index.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/NoRegisteredAddressMessage.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/SelectedAddress.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/AddressInfo.vue.d.ts +1 -0
- package/dist/views/get-user-address/Sheet/SelectedAddress/components/Footer.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/AddressInfo.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetailList.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirm.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/BirthdayConfirmError.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CashBackDetails/index.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/ChoosePaymentMethod.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/TopContent.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/TopInfo.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Charge/index.vue.d.ts +3 -0
- package/dist/views/make-payment/Sheets/ChoosePayment.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/CloseConfirmation.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/DuplicatePayment.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PayMethod.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/Payment.vue.d.ts +1 -0
- package/dist/views/make-payment/Sheets/PaymentCompletion/index.vue.d.ts +1 -0
- package/dist/views/make-payment/hooks/app-hooks.d.ts +1 -0
- package/dist/views/open-app/App.vue.d.ts +1 -0
- package/dist/views/open-map/App.vue.d.ts +1 -0
- package/dist/views/show-update-warning/App.vue.d.ts +1 -0
- package/dist/views/take-photo/App.vue.d.ts +1 -0
- package/dist/views/topup/App.vue.d.ts +1 -0
- package/dist/views/topup/CashbackInfo.vue.d.ts +1 -0
- package/dist/views/topup/TopupCompletion.vue.d.ts +1 -0
- package/package.json +1 -1
|
@@ -65,8 +65,8 @@ function normalizeNativeResponseData(data2) {
|
|
|
65
65
|
}
|
|
66
66
|
class JsBridge {
|
|
67
67
|
constructor(global2) {
|
|
68
|
-
this.version = "1.
|
|
69
|
-
this.revision = "
|
|
68
|
+
this.version = "1.31.0";
|
|
69
|
+
this.revision = "af22aa7";
|
|
70
70
|
this.messageHandlers = new Map();
|
|
71
71
|
this.responseCallbacks = new Map();
|
|
72
72
|
this.global = global2;
|
|
@@ -1070,8 +1070,9 @@ const wallet$1 = {
|
|
|
1070
1070
|
eMoney: "PayPay\u30DE\u30CD\u30FC",
|
|
1071
1071
|
nonUsable: "PayPay\u30DE\u30CD\u30FC\u30E9\u30A4\u30C8",
|
|
1072
1072
|
cashBackUsable: "PayPay\u30DD\u30A4\u30F3\u30C8",
|
|
1073
|
-
cashBackExpirable: "PayPay\
|
|
1074
|
-
balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A"
|
|
1073
|
+
cashBackExpirable: "PayPay\u30DC\u30FC\u30CA\u30B9\u30E9\u30A4\u30C8",
|
|
1074
|
+
balance: "\u5229\u7528\u53EF\u80FD\u984D\uFF1A",
|
|
1075
|
+
autoCharge: "\u30AA\u30FC\u30C8\u30C1\u30E3\u30FC\u30B8"
|
|
1075
1076
|
};
|
|
1076
1077
|
const payLater$2 = {
|
|
1077
1078
|
title: "PayPay\u3042\u3068\u6255\u3044",
|
|
@@ -1656,7 +1657,7 @@ const opaUrl = () => {
|
|
|
1656
1657
|
const createHeaderMiniAppApi = (urlEndpoint, customHeaders) => {
|
|
1657
1658
|
let headers = new Headers(__spreadValues({
|
|
1658
1659
|
"Content-Type": "application/json",
|
|
1659
|
-
"Client-Version": "1.
|
|
1660
|
+
"Client-Version": "1.31.0",
|
|
1660
1661
|
"Client-OS-Type": getRuntime()
|
|
1661
1662
|
}, customHeaders));
|
|
1662
1663
|
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") {
|
|
@@ -20325,9 +20326,9 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20325
20326
|
}, 8, ["name"])
|
|
20326
20327
|
]);
|
|
20327
20328
|
}
|
|
20328
|
-
const cssModules$
|
|
20329
|
-
cssModules$
|
|
20330
|
-
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$
|
|
20329
|
+
const cssModules$P = {};
|
|
20330
|
+
cssModules$P["$style"] = style0$N;
|
|
20331
|
+
var WalletBreakdown = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["render", _sfc_render$11], ["__cssModules", cssModules$P]]);
|
|
20331
20332
|
const img$b = "_img_373i3_1";
|
|
20332
20333
|
var style0$M = {
|
|
20333
20334
|
img: img$b
|
|
@@ -20388,7 +20389,7 @@ const _hoisted_2$q = { class: "payment-method--content-container--image-containe
|
|
|
20388
20389
|
const _hoisted_3$l = ["src"];
|
|
20389
20390
|
const _hoisted_4$h = { class: "payment-method--content-container--label" };
|
|
20390
20391
|
const _hoisted_5$d = { class: "payment-method--content-container--label--main" };
|
|
20391
|
-
const _hoisted_6$
|
|
20392
|
+
const _hoisted_6$7 = { class: "payment-method--content-container--label--sub" };
|
|
20392
20393
|
function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20393
20394
|
const _component_WalletBreakdown = resolveComponent("WalletBreakdown");
|
|
20394
20395
|
return openBlock(), createElementBlock("div", _hoisted_1$H, [
|
|
@@ -20400,14 +20401,14 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20400
20401
|
]),
|
|
20401
20402
|
createBaseVNode("div", _hoisted_4$h, [
|
|
20402
20403
|
createBaseVNode("span", _hoisted_5$d, toDisplayString(_ctx.lg.wallet.title), 1),
|
|
20403
|
-
createBaseVNode("span", _hoisted_6$
|
|
20404
|
+
createBaseVNode("span", _hoisted_6$7, toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
|
|
20404
20405
|
createVNode(_component_WalletBreakdown, { wallet: _ctx.wallet }, null, 8, ["wallet"])
|
|
20405
20406
|
])
|
|
20406
20407
|
]);
|
|
20407
20408
|
}
|
|
20408
|
-
const cssModules$
|
|
20409
|
-
cssModules$
|
|
20410
|
-
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$
|
|
20409
|
+
const cssModules$O = {};
|
|
20410
|
+
cssModules$O["$style"] = style0$M;
|
|
20411
|
+
var Wallet = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_render$10], ["__cssModules", cssModules$O], ["__scopeId", "data-v-e0654490"]]);
|
|
20411
20412
|
const img$a = "_img_p3zha_1";
|
|
20412
20413
|
const round$2 = "_round_p3zha_5";
|
|
20413
20414
|
const nonVisible$1 = "_nonVisible_p3zha_8";
|
|
@@ -20608,9 +20609,9 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20608
20609
|
], 2)
|
|
20609
20610
|
], 2);
|
|
20610
20611
|
}
|
|
20611
|
-
const cssModules$
|
|
20612
|
-
cssModules$
|
|
20613
|
-
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$
|
|
20612
|
+
const cssModules$N = {};
|
|
20613
|
+
cssModules$N["$style"] = style0$L;
|
|
20614
|
+
var CreditCard = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$], ["__cssModules", cssModules$N], ["__scopeId", "data-v-4589c43a"]]);
|
|
20614
20615
|
const img$8 = "_img_11k9z_1";
|
|
20615
20616
|
const round$1 = "_round_11k9z_5";
|
|
20616
20617
|
const branchNumber = "_branchNumber_11k9z_8";
|
|
@@ -20751,9 +20752,9 @@ function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20751
20752
|
], 2)
|
|
20752
20753
|
], 2);
|
|
20753
20754
|
}
|
|
20754
|
-
const cssModules$
|
|
20755
|
-
cssModules$
|
|
20756
|
-
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$
|
|
20755
|
+
const cssModules$M = {};
|
|
20756
|
+
cssModules$M["$style"] = style0$K;
|
|
20757
|
+
var Bank = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_], ["__cssModules", cssModules$M]]);
|
|
20757
20758
|
const container$k = "_container_82o6p_1";
|
|
20758
20759
|
const imageContainer$1 = "_imageContainer_82o6p_7";
|
|
20759
20760
|
const img$7 = "_img_82o6p_11";
|
|
@@ -20869,9 +20870,9 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20869
20870
|
], 2)
|
|
20870
20871
|
], 2);
|
|
20871
20872
|
}
|
|
20872
|
-
const cssModules$
|
|
20873
|
-
cssModules$
|
|
20874
|
-
var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$
|
|
20873
|
+
const cssModules$L = {};
|
|
20874
|
+
cssModules$L["$style"] = style0$J;
|
|
20875
|
+
var Sbid = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z], ["__cssModules", cssModules$L]]);
|
|
20875
20876
|
const img$6 = "_img_m6p0b_1";
|
|
20876
20877
|
const container$j = "_container_m6p0b_5";
|
|
20877
20878
|
const imgContainer$2 = "_imgContainer_m6p0b_10";
|
|
@@ -20964,9 +20965,9 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20964
20965
|
], 2)
|
|
20965
20966
|
], 2);
|
|
20966
20967
|
}
|
|
20967
|
-
const cssModules$
|
|
20968
|
-
cssModules$
|
|
20969
|
-
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$
|
|
20968
|
+
const cssModules$K = {};
|
|
20969
|
+
cssModules$K["$style"] = style0$I;
|
|
20970
|
+
var PayLaterCC = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_render$Y], ["__cssModules", cssModules$K]]);
|
|
20970
20971
|
const PaymentMethod = defineComponent({
|
|
20971
20972
|
props: {
|
|
20972
20973
|
paymentMethod: {
|
|
@@ -21067,6 +21068,14 @@ function useBreakpoints() {
|
|
|
21067
21068
|
};
|
|
21068
21069
|
}
|
|
21069
21070
|
var Wallet_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
21071
|
+
const chargeContainer = "_chargeContainer_1teaz_1";
|
|
21072
|
+
const greenTick = "_greenTick_1teaz_6";
|
|
21073
|
+
const autoCharge = "_autoCharge_1teaz_10";
|
|
21074
|
+
var style1$1 = {
|
|
21075
|
+
chargeContainer,
|
|
21076
|
+
greenTick,
|
|
21077
|
+
autoCharge
|
|
21078
|
+
};
|
|
21070
21079
|
const _sfc_main$X = defineComponent({
|
|
21071
21080
|
components: {
|
|
21072
21081
|
WalletBreakdown
|
|
@@ -21083,20 +21092,26 @@ const _sfc_main$X = defineComponent({
|
|
|
21083
21092
|
return formatAmount((_d = (_c = (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.walletSummary) == null ? void 0 : _c.totalBalanceInfo) == null ? void 0 : _d.balance);
|
|
21084
21093
|
});
|
|
21085
21094
|
const { isDesktop } = useBreakpoints();
|
|
21095
|
+
const isPreTransactionAutoChargeEnabled = computed(() => {
|
|
21096
|
+
var _a, _b;
|
|
21097
|
+
return (_b = (_a = props == null ? void 0 : props.wallet) == null ? void 0 : _a.walletInfo) == null ? void 0 : _b.isPreTransactionAutoChargeEnabled;
|
|
21098
|
+
});
|
|
21086
21099
|
return {
|
|
21087
21100
|
formattedBalance,
|
|
21088
21101
|
images: getImages(),
|
|
21089
21102
|
lg: getLanguage(),
|
|
21090
|
-
isDesktop
|
|
21103
|
+
isDesktop,
|
|
21104
|
+
isPreTransactionAutoChargeEnabled
|
|
21091
21105
|
};
|
|
21092
21106
|
}
|
|
21093
21107
|
});
|
|
21094
|
-
const _withScopeId$3 = (n) => (pushScopeId("data-v-
|
|
21108
|
+
const _withScopeId$3 = (n) => (pushScopeId("data-v-aa178176"), n = n(), popScopeId(), n);
|
|
21095
21109
|
const _hoisted_1$C = { class: "ppmna-payment-type--container bank-method--right-align" };
|
|
21096
21110
|
const _hoisted_2$n = ["src"];
|
|
21097
21111
|
const _hoisted_3$i = { class: "ppmna-payment-type--container--main" };
|
|
21098
21112
|
const _hoisted_4$e = { class: "ppmna-payment-type--container--sub" };
|
|
21099
|
-
const _hoisted_5$a =
|
|
21113
|
+
const _hoisted_5$a = ["src"];
|
|
21114
|
+
const _hoisted_6$6 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createBaseVNode("div", { class: "payment-type--arrow-right-container" }, [
|
|
21100
21115
|
/* @__PURE__ */ createBaseVNode("i", { class: "ppmna-payment-type--arrow-right" })
|
|
21101
21116
|
], -1));
|
|
21102
21117
|
function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -21111,15 +21126,30 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
21111
21126
|
createBaseVNode("div", null, [
|
|
21112
21127
|
createBaseVNode("div", _hoisted_3$i, toDisplayString(_ctx.lg.wallet.title), 1),
|
|
21113
21128
|
createBaseVNode("div", _hoisted_4$e, toDisplayString(_ctx.lg.wallet.balance) + toDisplayString(_ctx.formattedBalance) + "\u5186 ", 1),
|
|
21114
|
-
_ctx.
|
|
21129
|
+
_ctx.isPreTransactionAutoChargeEnabled ? (openBlock(), createElementBlock("div", {
|
|
21115
21130
|
key: 0,
|
|
21131
|
+
class: normalizeClass(_ctx.$style.chargeContainer)
|
|
21132
|
+
}, [
|
|
21133
|
+
createBaseVNode("img", {
|
|
21134
|
+
class: normalizeClass(_ctx.$style.greenTick),
|
|
21135
|
+
src: _ctx.images.checkGreen,
|
|
21136
|
+
alt: "green-tick"
|
|
21137
|
+
}, null, 10, _hoisted_5$a),
|
|
21138
|
+
createBaseVNode("span", {
|
|
21139
|
+
class: normalizeClass(_ctx.$style.autoCharge)
|
|
21140
|
+
}, toDisplayString(_ctx.lg.wallet.autoCharge), 3)
|
|
21141
|
+
], 2)) : createCommentVNode("", true),
|
|
21142
|
+
_ctx.isDesktop ? (openBlock(), createBlock(_component_WalletBreakdown, {
|
|
21143
|
+
key: 1,
|
|
21116
21144
|
wallet: _ctx.wallet
|
|
21117
21145
|
}, null, 8, ["wallet"])) : createCommentVNode("", true)
|
|
21118
21146
|
]),
|
|
21119
|
-
|
|
21147
|
+
_hoisted_6$6
|
|
21120
21148
|
]);
|
|
21121
21149
|
}
|
|
21122
|
-
|
|
21150
|
+
const cssModules$J = {};
|
|
21151
|
+
cssModules$J["$style"] = style1$1;
|
|
21152
|
+
var WalletType = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X], ["__cssModules", cssModules$J], ["__scopeId", "data-v-aa178176"]]);
|
|
21123
21153
|
const main = "_main_1rgsx_1";
|
|
21124
21154
|
const auth = "_auth_1rgsx_6";
|
|
21125
21155
|
const authImage = "_authImage_1rgsx_11";
|
|
@@ -30093,11 +30123,11 @@ function showAlert(params) {
|
|
|
30093
30123
|
(_a = params == null ? void 0 : params.fail) == null ? void 0 : _a.call(params, { errorCode: MiniAppErrorType.unknown });
|
|
30094
30124
|
}
|
|
30095
30125
|
}
|
|
30096
|
-
const bannerInfoContainer = "
|
|
30097
|
-
const bannerInfoIcon = "
|
|
30098
|
-
const bannerDesc = "
|
|
30099
|
-
const updateIcon = "
|
|
30100
|
-
const bannerTitle = "
|
|
30126
|
+
const bannerInfoContainer = "_bannerInfoContainer_17644_1";
|
|
30127
|
+
const bannerInfoIcon = "_bannerInfoIcon_17644_9";
|
|
30128
|
+
const bannerDesc = "_bannerDesc_17644_14";
|
|
30129
|
+
const updateIcon = "_updateIcon_17644_20";
|
|
30130
|
+
const bannerTitle = "_bannerTitle_17644_23";
|
|
30101
30131
|
var style0$6 = {
|
|
30102
30132
|
bannerInfoContainer,
|
|
30103
30133
|
bannerInfoIcon,
|
|
@@ -32275,7 +32305,7 @@ function debug(params) {
|
|
|
32275
32305
|
function execute$5(params) {
|
|
32276
32306
|
var _a;
|
|
32277
32307
|
(_a = params == null ? void 0 : params.success) == null ? void 0 : _a.call(params, {
|
|
32278
|
-
v: "1.
|
|
32308
|
+
v: "1.31.0"
|
|
32279
32309
|
});
|
|
32280
32310
|
}
|
|
32281
32311
|
function useCallBack(props, ctx) {
|
|
@@ -33738,8 +33768,9 @@ const wallet = {
|
|
|
33738
33768
|
eMoney: "PayPay Money",
|
|
33739
33769
|
nonUsable: "PayPay Money Lite",
|
|
33740
33770
|
cashBackUsable: "PayPay Point",
|
|
33741
|
-
cashBackExpirable: "PayPay
|
|
33742
|
-
balance: "Available amount:"
|
|
33771
|
+
cashBackExpirable: "PayPay Bonus Light",
|
|
33772
|
+
balance: "Available amount:",
|
|
33773
|
+
autoCharge: "Auto charge"
|
|
33743
33774
|
};
|
|
33744
33775
|
const payLater = {
|
|
33745
33776
|
title: "PayPay deferred payment",
|