@alipay/ams-checkout 0.0.1717141544-dev.6 → 0.0.1717141544-dev.7

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.
@@ -17,6 +17,7 @@ export default class ComponentApp {
17
17
  private _selector;
18
18
  private _appVersion;
19
19
  private _isRetention;
20
+ private _allowSubmitPayCallAhead;
20
21
  private _actionQueryPromise;
21
22
  private _actionSubmitPromise;
22
23
  private _renderParams;
@@ -47,6 +47,7 @@ var ComponentApp = /*#__PURE__*/function () {
47
47
  _defineProperty(this, "_selector", void 0);
48
48
  _defineProperty(this, "_appVersion", void 0);
49
49
  _defineProperty(this, "_isRetention", void 0);
50
+ _defineProperty(this, "_allowSubmitPayCallAhead", void 0);
50
51
  _defineProperty(this, "_actionQueryPromise", null);
51
52
  _defineProperty(this, "_actionSubmitPromise", null);
52
53
  _defineProperty(this, "_renderParams", null);
@@ -672,15 +673,17 @@ var ComponentApp = /*#__PURE__*/function () {
672
673
  params['signAgreement'] = enableSignAgreement;
673
674
  }
674
675
  }
676
+ // 带上标记告知WebCheckOut SDK已发送submitpay请求
677
+ _this6._allowSubmitPayCallAhead = !shouldSkipSubmitPayInSDK;
675
678
  if (!shouldSkipSubmitPayInSDK) {
676
- _context3.next = 5;
679
+ _context3.next = 6;
677
680
  break;
678
681
  }
679
682
  return _context3.abrupt("return", resolve({
680
683
  message: 'sdk no need to make submitPay request',
681
684
  success: true
682
685
  }));
683
- case 5:
686
+ case 6:
684
687
  _this6.AMSSDK.logger.logInfo({
685
688
  title: 'sdk_event_submitPay'
686
689
  }, {
@@ -699,9 +702,9 @@ var ComponentApp = /*#__PURE__*/function () {
699
702
  _context3.t0 = submitPayInfo;
700
703
  _context3.t1 = params;
701
704
  _context3.t2 = _this6.AMSSDK.options.env.environment;
702
- _context3.next = 13;
705
+ _context3.next = 14;
703
706
  return _this6.getDeviceIdAndLog();
704
- case 13:
707
+ case 14:
705
708
  _context3.t3 = _context3.sent;
706
709
  _context3.t4 = {
707
710
  deviceId: _context3.t3
@@ -735,7 +738,7 @@ var ComponentApp = /*#__PURE__*/function () {
735
738
  success: false
736
739
  });
737
740
  });
738
- case 18:
741
+ case 19:
739
742
  case "end":
740
743
  return _context3.stop();
741
744
  }
@@ -1552,6 +1555,7 @@ var ComponentApp = /*#__PURE__*/function () {
1552
1555
  appearance: (_this$_renderParams18 = this._renderParams) === null || _this$_renderParams18 === void 0 ? void 0 : _this$_renderParams18.appearance,
1553
1556
  notRedirectAfterComplete: ((_this$_renderParams19 = this._renderParams) === null || _this$_renderParams19 === void 0 ? void 0 : _this$_renderParams19.notRedirectAfterComplete) === true,
1554
1557
  merchantAppointParam: this._merchantAppointParam,
1558
+ allowSubmitPayCallAhead: this._allowSubmitPayCallAhead,
1555
1559
  envInfo: {
1556
1560
  screenHeight: screen.height,
1557
1561
  screenWidth: screen.width
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1717141544-dev.6",
3
+ "version": "0.0.1717141544-dev.7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",