@alipay/ams-checkout 0.0.1701393225-dev.3 → 0.0.1701393225-dev.5
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.
@@ -43,7 +43,8 @@ var ApplePayService = /*#__PURE__*/function () {
|
|
43
43
|
displayName: _this.merchantName,
|
44
44
|
merchantIdentifier: _this.merchantIdentifier,
|
45
45
|
validationUrl: event.validationURL
|
46
|
-
}).then(function (
|
46
|
+
}).then(function (merchantSessionObjectString) {
|
47
|
+
var merchantSessionObject = JSON.parse(merchantSessionObjectString);
|
47
48
|
_this.session.completeMerchantValidation(merchantSessionObject);
|
48
49
|
_this.applePayTrace('completeMerchantValidation');
|
49
50
|
}).catch(function (error) {
|
@@ -284,7 +284,7 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
284
284
|
};
|
285
285
|
var logError = function logError(msg, error) {
|
286
286
|
// TODO 回抛错误给商户
|
287
|
-
console.error('
|
287
|
+
console.error('logError', msg, error);
|
288
288
|
// this._eventCenter.emit(EVENT.error.name, error);
|
289
289
|
_this3._eventCenter.emit(EVENT.eventCallback.name, {
|
290
290
|
code: eventCodeEnum.SDK_PAYMENT_FAIL,
|
@@ -295,7 +295,7 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
295
295
|
};
|
296
296
|
var applePayTrace = function applePayTrace(msg) {
|
297
297
|
// TODO 记录日志
|
298
|
-
console.
|
298
|
+
console.log('applePayTrace', msg);
|
299
299
|
_this3.logger.logInfo({
|
300
300
|
title: 'APPLE_PAY'
|
301
301
|
}, {
|