@alipay/ams-checkout 0.0.1701393225-dev.8 → 0.0.1701393225-dev.9
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.
@@ -285,13 +285,19 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
285
285
|
var logError = function logError(msg, error) {
|
286
286
|
// TODO 回抛错误给商户
|
287
287
|
console.error('logError', msg, error);
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
288
|
+
if (msg === 'UserCancel') {
|
289
|
+
_this3._eventCenter.emit(EVENT.eventCallback.name, {
|
290
|
+
code: eventCodeEnum.SDK_PAYMENT_CANCEL
|
291
|
+
});
|
292
|
+
} else {
|
293
|
+
// this._eventCenter.emit(EVENT.error.name, error);
|
294
|
+
_this3._eventCenter.emit(EVENT.eventCallback.name, {
|
295
|
+
code: eventCodeEnum.SDK_PAYMENT_FAIL,
|
296
|
+
result: {
|
297
|
+
errorMsg: msg
|
298
|
+
}
|
299
|
+
});
|
300
|
+
}
|
295
301
|
};
|
296
302
|
var applePayTrace = function applePayTrace(msg) {
|
297
303
|
// TODO 记录日志
|