@alipay/ams-checkout 0.0.1745390310-dev.1 → 0.0.1745390310-dev.2
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.
@@ -133,19 +133,20 @@ var ApplePayService = /*#__PURE__*/function () {
|
|
133
133
|
recurring: _this.isRecurring
|
134
134
|
})
|
135
135
|
}).send();
|
136
|
+
console.log(ApplePaySession, '----ApplePaySession---ApplePaySession');
|
136
137
|
if (!ApplePaySession) {
|
137
138
|
_this.logError(eventCodeEnum.SDK_PAYMENT_ERROR, "ApplePaySession is only support in Safari");
|
138
|
-
return;
|
139
|
+
return false;
|
139
140
|
}
|
140
141
|
if (!(extendInfo !== null && extendInfo !== void 0 && extendInfo.merchantCapabilities) || !(extendInfo !== null && extendInfo !== void 0 && extendInfo.supportedNetworks) || !(merchantInfo !== null && merchantInfo !== void 0 && merchantInfo.registeredCountry) || !(paymentAmount !== null && paymentAmount !== void 0 && paymentAmount.currency) || !(paymentAmount !== null && paymentAmount !== void 0 && paymentAmount.value) || !(merchantInfo !== null && merchantInfo !== void 0 && merchantInfo.merchantName)) {
|
141
142
|
_this.logError(eventCodeEnum.SDK_PAYMENT_ERROR, "Abnormal params paymentSessionFactor");
|
142
|
-
return;
|
143
|
+
return false;
|
143
144
|
}
|
144
145
|
if (recurringInfo) {
|
145
146
|
var _recurringInfo$interv;
|
146
147
|
if (!(order !== null && order !== void 0 && order.orderDescription) || !(recurringInfo !== null && recurringInfo !== void 0 && recurringInfo.managementURL)) {
|
147
148
|
_this.logError(eventCodeEnum.SDK_PAYMENT_ERROR, "Abnormal params recurringInfo");
|
148
|
-
return;
|
149
|
+
return false;
|
149
150
|
}
|
150
151
|
var lineItem = {
|
151
152
|
type: 'final',
|
@@ -213,6 +214,7 @@ var ApplePayService = /*#__PURE__*/function () {
|
|
213
214
|
recurring: recurringInfo !== null
|
214
215
|
})
|
215
216
|
}).send();
|
217
|
+
return true;
|
216
218
|
});
|
217
219
|
this.logger = logger;
|
218
220
|
}
|