@alipay/ams-checkout 0.0.1701393225-dev.11 → 0.0.1701393225-dev.13

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.
@@ -253,7 +253,7 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
253
253
  _context3.t6 = _this3.logger;
254
254
  return _context3.abrupt("return", (0, _context3.t0)(_context3.t1, _context3.t5, _context3.t6).then(function (res) {
255
255
  console.log('completePaymentAuthorized then', res);
256
- if (res !== null && res !== void 0 && res.success) {
256
+ if (res !== null && res !== void 0 && res.success || !(res !== null && res !== void 0 && res.success) && (res === null || res === void 0 ? void 0 : res.errorCode) === 'U') {
257
257
  return Promise.resolve(res);
258
258
  }
259
259
  return Promise.reject({
@@ -262,7 +262,7 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
262
262
  });
263
263
  }).catch(function (error) {
264
264
  console.log('completePaymentAuthorized catch', error);
265
- return Promise.resolve(error);
265
+ return Promise.reject(error);
266
266
  }));
267
267
  case 12:
268
268
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1701393225-dev.11",
3
+ "version": "0.0.1701393225-dev.13",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",