@pisell/private-materials 3.4.88 → 3.4.90
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/utils.js +24 -11
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +36 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +76 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +6 -6
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +28 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +292 -115
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +12 -2
- package/es/components/pay/toC/index.js +53 -18
- package/es/components/pay/toC/locales.d.ts +115 -0
- package/es/components/pay/toC/locales.js +143 -18
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/serve.d.ts +10 -0
- package/es/components/pay/toC/serve.js +40 -1
- package/es/components/pay/toC/utils.d.ts +5 -0
- package/es/components/pay/toC/utils.js +10 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -7
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/utils.js +15 -3
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +24 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +38 -2
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +6 -6
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +17 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +99 -16
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +19 -14
- package/lib/components/pay/toC/index.js +34 -3
- package/lib/components/pay/toC/locales.d.ts +115 -0
- package/lib/components/pay/toC/locales.js +133 -18
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/serve.d.ts +10 -0
- package/lib/components/pay/toC/serve.js +10 -0
- package/lib/components/pay/toC/utils.d.ts +5 -0
- package/lib/components/pay/toC/utils.js +17 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -7
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/package.json +4 -4
|
@@ -65,7 +65,7 @@ var isOfflinePayment = (type) => {
|
|
|
65
65
|
].includes(type);
|
|
66
66
|
};
|
|
67
67
|
var PaymentMethods = (props, ref) => {
|
|
68
|
-
var _a;
|
|
68
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
69
69
|
const MWCreditCardRef2 = (0, import_react.useRef)(null);
|
|
70
70
|
const SuperPayAliPayH5Ref2 = (0, import_react.useRef)(null);
|
|
71
71
|
const StripePayRef2 = (0, import_react.useRef)(null);
|
|
@@ -82,10 +82,15 @@ var PaymentMethods = (props, ref) => {
|
|
|
82
82
|
const GlobePayQrcodeRef2 = (0, import_react.useRef)(null);
|
|
83
83
|
const context = (0, import_useEngineContext.default)();
|
|
84
84
|
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
85
|
+
const dvaStore = (_e = (_d = (_c = (_b = context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getState();
|
|
86
|
+
const shop = ((_g = (_f = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _f.core) == null ? void 0 : _g.shop) || {};
|
|
87
|
+
const shopName = (shop == null ? void 0 : shop.name) || "";
|
|
88
|
+
const shopPhone = (shop == null ? void 0 : shop.phone) || "";
|
|
89
|
+
const shopEmail = (shop == null ? void 0 : shop.contact_email) || "";
|
|
85
90
|
const init = async ({ type, payGroup }) => {
|
|
86
|
-
var _a2,
|
|
91
|
+
var _a2, _b2;
|
|
87
92
|
const waitAmount = (payGroup == null ? void 0 : payGroup.wait_amount) || 0;
|
|
88
|
-
const cards = (
|
|
93
|
+
const cards = (_b2 = (_a2 = payGroup == null ? void 0 : payGroup.walletPass) == null ? void 0 : _a2.cards) == null ? void 0 : _b2.length;
|
|
89
94
|
(0, import_utils2.sendWarningLog)({
|
|
90
95
|
title: "支付初始化",
|
|
91
96
|
content: [
|
|
@@ -144,9 +149,9 @@ var PaymentMethods = (props, ref) => {
|
|
|
144
149
|
await onPayByType({ type, payGroup });
|
|
145
150
|
};
|
|
146
151
|
(0, import_react.useEffect)(() => {
|
|
147
|
-
var _a2,
|
|
148
|
-
console.log("paymentResult isAppEnv", (
|
|
149
|
-
if ((
|
|
152
|
+
var _a2, _b2, _c2, _d2;
|
|
153
|
+
console.log("paymentResult isAppEnv", (_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.isAppEnv) == null ? void 0 : _b2.call(_a2));
|
|
154
|
+
if ((_d2 = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.isAppEnv) == null ? void 0 : _d2.call(_c2)) {
|
|
150
155
|
interaction.utils.mountFunction("global", "paymentResult", (strResult) => {
|
|
151
156
|
console.log("paymentResult", strResult);
|
|
152
157
|
if (!(0, import_utils2.isJson)(strResult)) return;
|
|
@@ -162,34 +167,34 @@ var PaymentMethods = (props, ref) => {
|
|
|
162
167
|
}
|
|
163
168
|
}, []);
|
|
164
169
|
const onPayByType = async ({ type, payGroup }) => {
|
|
165
|
-
var _a2,
|
|
170
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j, _k, _l, _m, _n;
|
|
166
171
|
console.log(type, payGroup);
|
|
167
172
|
if (type === "mw.apple") {
|
|
168
173
|
await ((_a2 = ApplePayRef2.current) == null ? void 0 : _a2.init({ payGroup }));
|
|
169
174
|
return;
|
|
170
175
|
}
|
|
171
176
|
if (type === "mw.google") {
|
|
172
|
-
await ((
|
|
177
|
+
await ((_b2 = GooglePayRef2.current) == null ? void 0 : _b2.init({ payGroup }));
|
|
173
178
|
return;
|
|
174
179
|
}
|
|
175
180
|
if (type === "mw.credit_card") {
|
|
176
|
-
(
|
|
181
|
+
(_c2 = MWCreditCardRef2.current) == null ? void 0 : _c2.init({ payGroup });
|
|
177
182
|
return;
|
|
178
183
|
}
|
|
179
184
|
if (type === "superpay.alipay.h5") {
|
|
180
|
-
await ((
|
|
185
|
+
await ((_d2 = SuperPayAliPayH5Ref2.current) == null ? void 0 : _d2.init({ payGroup }));
|
|
181
186
|
return;
|
|
182
187
|
}
|
|
183
188
|
if (type === "superpay.wechat.h5") {
|
|
184
|
-
await ((
|
|
189
|
+
await ((_e2 = SuperPayWxPayH5Ref2.current) == null ? void 0 : _e2.init({ payGroup }));
|
|
185
190
|
return;
|
|
186
191
|
}
|
|
187
192
|
if (type === "stripe") {
|
|
188
|
-
(
|
|
193
|
+
(_f2 = StripePayRef2.current) == null ? void 0 : _f2.init({ payGroup });
|
|
189
194
|
return;
|
|
190
195
|
}
|
|
191
196
|
if (type === "pisell.offline_payment") {
|
|
192
|
-
await ((
|
|
197
|
+
await ((_g2 = OfflinePaymentRef2.current) == null ? void 0 : _g2.init({ payGroup }));
|
|
193
198
|
return;
|
|
194
199
|
}
|
|
195
200
|
if (type === "pisell.bank_deposit") {
|
|
@@ -227,6 +232,6 @@ var PaymentMethods = (props, ref) => {
|
|
|
227
232
|
onPay: init
|
|
228
233
|
})
|
|
229
234
|
);
|
|
230
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(import_MWCreditCard.default, { ref: MWCreditCardRef2 }), /* @__PURE__ */ import_react.default.createElement(import_SuperPayAliPayH5.default, { ref: SuperPayAliPayH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_StripePay.default, { ref: StripePayRef2 }), /* @__PURE__ */ import_react.default.createElement(import_OfflinePayment.default, { ref: OfflinePaymentRef2 }), /* @__PURE__ */ import_react.default.createElement(import_BankDeposit.default, { ref: BankDepositRef2 }), /* @__PURE__ */ import_react.default.createElement(import_SuperPayWxPayH5.default, { ref: SuperPayWxPayH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_CustomPayment.default, { ref: CustomPaymentRef2 }), /* @__PURE__ */ import_react.default.createElement(import_ApplePay.default, { ref: ApplePayRef2 }), /* @__PURE__ */ import_react.default.createElement(import_GooglePay.default, { ref: GooglePayRef2 }), /* @__PURE__ */ import_react.default.createElement(import_CashManual.default, { ref: CashManualRef2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayAliPayH5.default, { ref: GlobePayAliPayH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayWxH5.default, { ref: GlobePayWxH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayPaypalH5.default, { ref: GlobePayPaypalH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayQrcode.default, { ref: GlobePayQrcodeRef2 }));
|
|
235
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(import_MWCreditCard.default, { ref: MWCreditCardRef2, shopName, shopPhone, shopEmail }), /* @__PURE__ */ import_react.default.createElement(import_SuperPayAliPayH5.default, { ref: SuperPayAliPayH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_StripePay.default, { ref: StripePayRef2 }), /* @__PURE__ */ import_react.default.createElement(import_OfflinePayment.default, { ref: OfflinePaymentRef2 }), /* @__PURE__ */ import_react.default.createElement(import_BankDeposit.default, { ref: BankDepositRef2 }), /* @__PURE__ */ import_react.default.createElement(import_SuperPayWxPayH5.default, { ref: SuperPayWxPayH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_CustomPayment.default, { ref: CustomPaymentRef2 }), /* @__PURE__ */ import_react.default.createElement(import_ApplePay.default, { ref: ApplePayRef2 }), /* @__PURE__ */ import_react.default.createElement(import_GooglePay.default, { ref: GooglePayRef2 }), /* @__PURE__ */ import_react.default.createElement(import_CashManual.default, { ref: CashManualRef2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayAliPayH5.default, { ref: GlobePayAliPayH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayWxH5.default, { ref: GlobePayWxH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayPaypalH5.default, { ref: GlobePayPaypalH5Ref2 }), /* @__PURE__ */ import_react.default.createElement(import_GlobePayQrcode.default, { ref: GlobePayQrcodeRef2 }));
|
|
231
236
|
};
|
|
232
237
|
var PaymentMethods_default = (0, import_react.forwardRef)(PaymentMethods);
|
|
@@ -69,6 +69,7 @@ var ToCPay = (props, ref) => {
|
|
|
69
69
|
});
|
|
70
70
|
const [showInformation, setShowInformation] = (0, import_react.useState)(false);
|
|
71
71
|
const [showDetectIncognitoConfirm, setShowDetectIncognitoConfirm] = (0, import_react.useState)(false);
|
|
72
|
+
const [showPendingPayment, setShowPendingPayment] = (0, import_react.useState)(false);
|
|
72
73
|
const utils = context.appHelper.utils || {};
|
|
73
74
|
const dvaStore = (_d = (_c = (_b = context.appHelper.utils) == null ? void 0 : _b.getStore) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.getState();
|
|
74
75
|
const customer_id = (_j = (_i = (_h = (_g = (_f = (_e = context.appHelper.utils) == null ? void 0 : _e.getStore()) == null ? void 0 : _f.getState) == null ? void 0 : _g.call(_f)) == null ? void 0 : _h.global) == null ? void 0 : _i.userInfo) == null ? void 0 : _j.id;
|
|
@@ -83,7 +84,7 @@ var ToCPay = (props, ref) => {
|
|
|
83
84
|
...initProps,
|
|
84
85
|
status: "init",
|
|
85
86
|
// 将支付回调储存在store, 方便其他模块调用
|
|
86
|
-
payCallback
|
|
87
|
+
payCallback,
|
|
87
88
|
history: (_a2 = context.appHelper.utils) == null ? void 0 : _a2.history,
|
|
88
89
|
front_order_uuid: (0, import_utils.getUniqueId)("front_order_uuid_")
|
|
89
90
|
// 支付组
|
|
@@ -120,7 +121,7 @@ var ToCPay = (props, ref) => {
|
|
|
120
121
|
});
|
|
121
122
|
};
|
|
122
123
|
const init = async (initProps) => {
|
|
123
|
-
var _a2;
|
|
124
|
+
var _a2, _b2, _c2;
|
|
124
125
|
const { renderType: renderType2 } = initProps;
|
|
125
126
|
paymentLogger.addLog({
|
|
126
127
|
key: "初始化开始",
|
|
@@ -131,6 +132,18 @@ var ToCPay = (props, ref) => {
|
|
|
131
132
|
setOpen(true);
|
|
132
133
|
setSubmitLoading(false);
|
|
133
134
|
setLoading(true);
|
|
135
|
+
const { has_pending } = await (0, import_serve.checkPendingPayment)({
|
|
136
|
+
order_id: (_a2 = initProps.order) == null ? void 0 : _a2.order_id
|
|
137
|
+
});
|
|
138
|
+
if (has_pending) {
|
|
139
|
+
paymentLogger.addLog({
|
|
140
|
+
key: "检测到处理中的交易",
|
|
141
|
+
value: `订单${(_b2 = initProps.order) == null ? void 0 : _b2.order_id} 存在处理中的交易,中断支付流程`
|
|
142
|
+
});
|
|
143
|
+
setLoading(false);
|
|
144
|
+
setShowPendingPayment(true);
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
134
147
|
_initStore(initProps);
|
|
135
148
|
(0, import_payGroup.removePayGroupFromStorage)(initProps.order.order_id);
|
|
136
149
|
await _getPaymentsAndWalletPass(initProps.order);
|
|
@@ -143,13 +156,15 @@ var ToCPay = (props, ref) => {
|
|
|
143
156
|
paymentLogger.addLog({
|
|
144
157
|
key: "初始化错误",
|
|
145
158
|
value: {
|
|
146
|
-
title: `订单${(
|
|
159
|
+
title: `订单${(_c2 = initProps == null ? void 0 : initProps.order) == null ? void 0 : _c2.order_id} 初始化失败: ${(error == null ? void 0 : error.message) || "未知错误"}`,
|
|
147
160
|
data: {
|
|
148
161
|
order: initProps == null ? void 0 : initProps.order
|
|
149
162
|
}
|
|
150
163
|
}
|
|
151
164
|
});
|
|
152
165
|
paymentLogger.sendLogs("支付初始化失败", error);
|
|
166
|
+
setOpen(false);
|
|
167
|
+
setLoading(false);
|
|
153
168
|
throw error;
|
|
154
169
|
}
|
|
155
170
|
};
|
|
@@ -555,6 +570,22 @@ var ToCPay = (props, ref) => {
|
|
|
555
570
|
}
|
|
556
571
|
}
|
|
557
572
|
),
|
|
573
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
574
|
+
import_materials.PisellModal.Information,
|
|
575
|
+
{
|
|
576
|
+
open: showPendingPayment,
|
|
577
|
+
describe: import_utils.locales.getText("tocPay.text.pendingPaymentDesc"),
|
|
578
|
+
okText: import_utils.locales.getText("tocPay.text.pendingPaymentOk"),
|
|
579
|
+
cancelVisible: false,
|
|
580
|
+
closable: false,
|
|
581
|
+
maskClosable: false,
|
|
582
|
+
onOk: () => {
|
|
583
|
+
paymentLogger.sendLogs("此订单有一笔支付正在处理中");
|
|
584
|
+
setShowPendingPayment(false);
|
|
585
|
+
setOpen(false);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
),
|
|
558
589
|
/* @__PURE__ */ import_react.default.createElement(
|
|
559
590
|
import_materials.PisellModal.Information,
|
|
560
591
|
{
|
|
@@ -17,6 +17,7 @@ declare const _default: {
|
|
|
17
17
|
'tocPay.text.enterCVV': string;
|
|
18
18
|
'tocPay.text.enterValidCVV': string;
|
|
19
19
|
'tocPay.text.addCard': string;
|
|
20
|
+
'tocPay.text.secureCardPayment': string;
|
|
20
21
|
'tocPay.text.creditorDebitCard': string;
|
|
21
22
|
'tocPay.text.addCreditOrDebitCard': string;
|
|
22
23
|
'tocPay.text.cardNumber': string;
|
|
@@ -29,7 +30,11 @@ declare const _default: {
|
|
|
29
30
|
'tocPay.text.enterEnglishName': string;
|
|
30
31
|
'tocPay.text.incorrectName': string;
|
|
31
32
|
'tocPay.text.saveCardForNextTime': string;
|
|
33
|
+
'tocPay.text.saveCardEncryption': string;
|
|
32
34
|
'tocPay.text.secureBankInfo': string;
|
|
35
|
+
'tocPay.text.merchantAuthorizationBefore': string;
|
|
36
|
+
'tocPay.text.merchantAuthorizationAfter': string;
|
|
37
|
+
'tocPay.text.threeDSecureProtection': string;
|
|
33
38
|
'tocPay.text.pay': string;
|
|
34
39
|
'tocPay.text.surcharge': string;
|
|
35
40
|
'tocPay.text.done': string;
|
|
@@ -48,6 +53,14 @@ declare const _default: {
|
|
|
48
53
|
'tocPay.text.continuePay': string;
|
|
49
54
|
'tocPay.text.leave': string;
|
|
50
55
|
'tocPay.text.getParamsFail': string;
|
|
56
|
+
'tocPay.text.checkingCard': string;
|
|
57
|
+
'tocPay.text.processingPayment': string;
|
|
58
|
+
'tocPay.text.securityCheckRequired': string;
|
|
59
|
+
'tocPay.text.doNotClosePage': string;
|
|
60
|
+
'tocPay.text.stopWaitingTitle': string;
|
|
61
|
+
'tocPay.text.stopWaitingDesc': string;
|
|
62
|
+
'tocPay.text.continueWaiting': string;
|
|
63
|
+
'tocPay.text.viewOrder': string;
|
|
51
64
|
'tocPay.text.walletPass': string;
|
|
52
65
|
'tocPay.text.toUse': string;
|
|
53
66
|
'tocPay.text.searchResult': string;
|
|
@@ -100,6 +113,16 @@ declare const _default: {
|
|
|
100
113
|
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
101
114
|
'tocPay.text.domestic': string;
|
|
102
115
|
'tocPay.text.rest-of-world': string;
|
|
116
|
+
'tocPay.text.tdsErrorTitle': string;
|
|
117
|
+
'tocPay.text.tdsErrorDesc': string;
|
|
118
|
+
'tocPay.text.bankVerifyFailedTitle': string;
|
|
119
|
+
'tocPay.text.bankVerifyFailedDesc': string;
|
|
120
|
+
'tocPay.text.useAnotherCard': string;
|
|
121
|
+
'tocPay.text.useAnotherPayment': string;
|
|
122
|
+
'tocPay.text.payLater': string;
|
|
123
|
+
'tocPay.text.paymentTroubleContact': (phone: string, email: string) => string;
|
|
124
|
+
'tocPay.text.pendingPaymentDesc': string;
|
|
125
|
+
'tocPay.text.pendingPaymentOk': string;
|
|
103
126
|
};
|
|
104
127
|
'zh-CN': {
|
|
105
128
|
'tocPay.text.checkout': string;
|
|
@@ -119,6 +142,7 @@ declare const _default: {
|
|
|
119
142
|
'tocPay.text.enterCVV': string;
|
|
120
143
|
'tocPay.text.enterValidCVV': string;
|
|
121
144
|
'tocPay.text.addCard': string;
|
|
145
|
+
'tocPay.text.secureCardPayment': string;
|
|
122
146
|
'tocPay.text.creditorDebitCard': string;
|
|
123
147
|
'tocPay.text.addCreditOrDebitCard': string;
|
|
124
148
|
'tocPay.text.cardNumber': string;
|
|
@@ -131,7 +155,11 @@ declare const _default: {
|
|
|
131
155
|
'tocPay.text.enterEnglishName': string;
|
|
132
156
|
'tocPay.text.incorrectName': string;
|
|
133
157
|
'tocPay.text.saveCardForNextTime': string;
|
|
158
|
+
'tocPay.text.saveCardEncryption': string;
|
|
134
159
|
'tocPay.text.secureBankInfo': string;
|
|
160
|
+
'tocPay.text.merchantAuthorizationBefore': string;
|
|
161
|
+
'tocPay.text.merchantAuthorizationAfter': string;
|
|
162
|
+
'tocPay.text.threeDSecureProtection': string;
|
|
135
163
|
'tocPay.text.pay': string;
|
|
136
164
|
'tocPay.text.surcharge': string;
|
|
137
165
|
'tocPay.text.done': string;
|
|
@@ -150,6 +178,14 @@ declare const _default: {
|
|
|
150
178
|
'tocPay.text.continuePay': string;
|
|
151
179
|
'tocPay.text.leave': string;
|
|
152
180
|
'tocPay.text.getParamsFail': string;
|
|
181
|
+
'tocPay.text.checkingCard': string;
|
|
182
|
+
'tocPay.text.processingPayment': string;
|
|
183
|
+
'tocPay.text.securityCheckRequired': string;
|
|
184
|
+
'tocPay.text.doNotClosePage': string;
|
|
185
|
+
'tocPay.text.stopWaitingTitle': string;
|
|
186
|
+
'tocPay.text.stopWaitingDesc': string;
|
|
187
|
+
'tocPay.text.continueWaiting': string;
|
|
188
|
+
'tocPay.text.viewOrder': string;
|
|
153
189
|
'tocPay.text.walletPass': string;
|
|
154
190
|
'tocPay.text.toUse': string;
|
|
155
191
|
'tocPay.text.searchResult': string;
|
|
@@ -201,6 +237,16 @@ declare const _default: {
|
|
|
201
237
|
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
202
238
|
'tocPay.text.domestic': string;
|
|
203
239
|
'tocPay.text.rest-of-world': string;
|
|
240
|
+
'tocPay.text.tdsErrorTitle': string;
|
|
241
|
+
'tocPay.text.tdsErrorDesc': string;
|
|
242
|
+
'tocPay.text.bankVerifyFailedTitle': string;
|
|
243
|
+
'tocPay.text.bankVerifyFailedDesc': string;
|
|
244
|
+
'tocPay.text.useAnotherCard': string;
|
|
245
|
+
'tocPay.text.useAnotherPayment': string;
|
|
246
|
+
'tocPay.text.payLater': string;
|
|
247
|
+
'tocPay.text.paymentTroubleContact': (phone: string, email: string) => string;
|
|
248
|
+
'tocPay.text.pendingPaymentDesc': string;
|
|
249
|
+
'tocPay.text.pendingPaymentOk': string;
|
|
204
250
|
};
|
|
205
251
|
'zh-HK': {
|
|
206
252
|
'tocPay.text.checkout': string;
|
|
@@ -220,6 +266,7 @@ declare const _default: {
|
|
|
220
266
|
'tocPay.text.enterCVV': string;
|
|
221
267
|
'tocPay.text.enterValidCVV': string;
|
|
222
268
|
'tocPay.text.addCard': string;
|
|
269
|
+
'tocPay.text.secureCardPayment': string;
|
|
223
270
|
'tocPay.text.creditorDebitCard': string;
|
|
224
271
|
'tocPay.text.addCreditOrDebitCard': string;
|
|
225
272
|
'tocPay.text.cardNumber': string;
|
|
@@ -232,7 +279,11 @@ declare const _default: {
|
|
|
232
279
|
'tocPay.text.enterEnglishName': string;
|
|
233
280
|
'tocPay.text.incorrectName': string;
|
|
234
281
|
'tocPay.text.saveCardForNextTime': string;
|
|
282
|
+
'tocPay.text.saveCardEncryption': string;
|
|
235
283
|
'tocPay.text.secureBankInfo': string;
|
|
284
|
+
'tocPay.text.merchantAuthorizationBefore': string;
|
|
285
|
+
'tocPay.text.merchantAuthorizationAfter': string;
|
|
286
|
+
'tocPay.text.threeDSecureProtection': string;
|
|
236
287
|
'tocPay.text.pay': string;
|
|
237
288
|
'tocPay.text.surcharge': string;
|
|
238
289
|
'tocPay.text.done': string;
|
|
@@ -251,6 +302,14 @@ declare const _default: {
|
|
|
251
302
|
'tocPay.text.continuePay': string;
|
|
252
303
|
'tocPay.text.leave': string;
|
|
253
304
|
'tocPay.text.getParamsFail': string;
|
|
305
|
+
'tocPay.text.checkingCard': string;
|
|
306
|
+
'tocPay.text.processingPayment': string;
|
|
307
|
+
'tocPay.text.securityCheckRequired': string;
|
|
308
|
+
'tocPay.text.doNotClosePage': string;
|
|
309
|
+
'tocPay.text.stopWaitingTitle': string;
|
|
310
|
+
'tocPay.text.stopWaitingDesc': string;
|
|
311
|
+
'tocPay.text.continueWaiting': string;
|
|
312
|
+
'tocPay.text.viewOrder': string;
|
|
254
313
|
'tocPay.text.walletPass': string;
|
|
255
314
|
'tocPay.text.toUse': string;
|
|
256
315
|
'tocPay.text.searchResult': string;
|
|
@@ -302,6 +361,16 @@ declare const _default: {
|
|
|
302
361
|
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
303
362
|
'tocPay.text.domestic': string;
|
|
304
363
|
'tocPay.text.rest-of-world': string;
|
|
364
|
+
'tocPay.text.tdsErrorTitle': string;
|
|
365
|
+
'tocPay.text.tdsErrorDesc': string;
|
|
366
|
+
'tocPay.text.bankVerifyFailedTitle': string;
|
|
367
|
+
'tocPay.text.bankVerifyFailedDesc': string;
|
|
368
|
+
'tocPay.text.useAnotherCard': string;
|
|
369
|
+
'tocPay.text.useAnotherPayment': string;
|
|
370
|
+
'tocPay.text.payLater': string;
|
|
371
|
+
'tocPay.text.paymentTroubleContact': (phone: string, email: string) => string;
|
|
372
|
+
'tocPay.text.pendingPaymentDesc': string;
|
|
373
|
+
'tocPay.text.pendingPaymentOk': string;
|
|
305
374
|
};
|
|
306
375
|
ja: {
|
|
307
376
|
'tocPay.text.checkout': string;
|
|
@@ -321,6 +390,7 @@ declare const _default: {
|
|
|
321
390
|
'tocPay.text.enterCVV': string;
|
|
322
391
|
'tocPay.text.enterValidCVV': string;
|
|
323
392
|
'tocPay.text.addCard': string;
|
|
393
|
+
'tocPay.text.secureCardPayment': string;
|
|
324
394
|
'tocPay.text.creditorDebitCard': string;
|
|
325
395
|
'tocPay.text.addCreditOrDebitCard': string;
|
|
326
396
|
'tocPay.text.cardNumber': string;
|
|
@@ -333,7 +403,11 @@ declare const _default: {
|
|
|
333
403
|
'tocPay.text.enterEnglishName': string;
|
|
334
404
|
'tocPay.text.incorrectName': string;
|
|
335
405
|
'tocPay.text.saveCardForNextTime': string;
|
|
406
|
+
'tocPay.text.saveCardEncryption': string;
|
|
336
407
|
'tocPay.text.secureBankInfo': string;
|
|
408
|
+
'tocPay.text.merchantAuthorizationBefore': string;
|
|
409
|
+
'tocPay.text.merchantAuthorizationAfter': string;
|
|
410
|
+
'tocPay.text.threeDSecureProtection': string;
|
|
337
411
|
'tocPay.text.pay': string;
|
|
338
412
|
'tocPay.text.surcharge': string;
|
|
339
413
|
'tocPay.text.done': string;
|
|
@@ -352,6 +426,14 @@ declare const _default: {
|
|
|
352
426
|
'tocPay.text.continuePay': string;
|
|
353
427
|
'tocPay.text.leave': string;
|
|
354
428
|
'tocPay.text.getParamsFail': string;
|
|
429
|
+
'tocPay.text.checkingCard': string;
|
|
430
|
+
'tocPay.text.processingPayment': string;
|
|
431
|
+
'tocPay.text.securityCheckRequired': string;
|
|
432
|
+
'tocPay.text.doNotClosePage': string;
|
|
433
|
+
'tocPay.text.stopWaitingTitle': string;
|
|
434
|
+
'tocPay.text.stopWaitingDesc': string;
|
|
435
|
+
'tocPay.text.continueWaiting': string;
|
|
436
|
+
'tocPay.text.viewOrder': string;
|
|
355
437
|
'tocPay.text.walletPass': string;
|
|
356
438
|
'tocPay.text.toUse': string;
|
|
357
439
|
'tocPay.text.searchResult': string;
|
|
@@ -404,6 +486,16 @@ declare const _default: {
|
|
|
404
486
|
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
405
487
|
'tocPay.text.domestic': string;
|
|
406
488
|
'tocPay.text.rest-of-world': string;
|
|
489
|
+
'tocPay.text.tdsErrorTitle': string;
|
|
490
|
+
'tocPay.text.tdsErrorDesc': string;
|
|
491
|
+
'tocPay.text.bankVerifyFailedTitle': string;
|
|
492
|
+
'tocPay.text.bankVerifyFailedDesc': string;
|
|
493
|
+
'tocPay.text.useAnotherCard': string;
|
|
494
|
+
'tocPay.text.useAnotherPayment': string;
|
|
495
|
+
'tocPay.text.payLater': string;
|
|
496
|
+
'tocPay.text.paymentTroubleContact': (phone: string, email: string) => string;
|
|
497
|
+
'tocPay.text.pendingPaymentDesc': string;
|
|
498
|
+
'tocPay.text.pendingPaymentOk': string;
|
|
407
499
|
};
|
|
408
500
|
pt: {
|
|
409
501
|
'tocPay.text.checkout': string;
|
|
@@ -423,6 +515,7 @@ declare const _default: {
|
|
|
423
515
|
'tocPay.text.enterCVV': string;
|
|
424
516
|
'tocPay.text.enterValidCVV': string;
|
|
425
517
|
'tocPay.text.addCard': string;
|
|
518
|
+
'tocPay.text.secureCardPayment': string;
|
|
426
519
|
'tocPay.text.creditorDebitCard': string;
|
|
427
520
|
'tocPay.text.addCreditOrDebitCard': string;
|
|
428
521
|
'tocPay.text.cardNumber': string;
|
|
@@ -435,7 +528,11 @@ declare const _default: {
|
|
|
435
528
|
'tocPay.text.enterEnglishName': string;
|
|
436
529
|
'tocPay.text.incorrectName': string;
|
|
437
530
|
'tocPay.text.saveCardForNextTime': string;
|
|
531
|
+
'tocPay.text.saveCardEncryption': string;
|
|
438
532
|
'tocPay.text.secureBankInfo': string;
|
|
533
|
+
'tocPay.text.merchantAuthorizationBefore': string;
|
|
534
|
+
'tocPay.text.merchantAuthorizationAfter': string;
|
|
535
|
+
'tocPay.text.threeDSecureProtection': string;
|
|
439
536
|
'tocPay.text.pay': string;
|
|
440
537
|
'tocPay.text.surcharge': string;
|
|
441
538
|
'tocPay.text.done': string;
|
|
@@ -454,6 +551,14 @@ declare const _default: {
|
|
|
454
551
|
'tocPay.text.continuePay': string;
|
|
455
552
|
'tocPay.text.leave': string;
|
|
456
553
|
'tocPay.text.getParamsFail': string;
|
|
554
|
+
'tocPay.text.checkingCard': string;
|
|
555
|
+
'tocPay.text.processingPayment': string;
|
|
556
|
+
'tocPay.text.securityCheckRequired': string;
|
|
557
|
+
'tocPay.text.doNotClosePage': string;
|
|
558
|
+
'tocPay.text.stopWaitingTitle': string;
|
|
559
|
+
'tocPay.text.stopWaitingDesc': string;
|
|
560
|
+
'tocPay.text.continueWaiting': string;
|
|
561
|
+
'tocPay.text.viewOrder': string;
|
|
457
562
|
'tocPay.text.walletPass': string;
|
|
458
563
|
'tocPay.text.toUse': string;
|
|
459
564
|
'tocPay.text.searchResult': string;
|
|
@@ -506,6 +611,16 @@ declare const _default: {
|
|
|
506
611
|
'tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater': string;
|
|
507
612
|
'tocPay.text.domestic': string;
|
|
508
613
|
'tocPay.text.rest-of-world': string;
|
|
614
|
+
'tocPay.text.tdsErrorTitle': string;
|
|
615
|
+
'tocPay.text.tdsErrorDesc': string;
|
|
616
|
+
'tocPay.text.bankVerifyFailedTitle': string;
|
|
617
|
+
'tocPay.text.bankVerifyFailedDesc': string;
|
|
618
|
+
'tocPay.text.useAnotherCard': string;
|
|
619
|
+
'tocPay.text.useAnotherPayment': string;
|
|
620
|
+
'tocPay.text.payLater': string;
|
|
621
|
+
'tocPay.text.paymentTroubleContact': (phone: string, email: string) => string;
|
|
622
|
+
'tocPay.text.pendingPaymentDesc': string;
|
|
623
|
+
'tocPay.text.pendingPaymentOk': string;
|
|
509
624
|
};
|
|
510
625
|
};
|
|
511
626
|
export default _default;
|