@alipay/ams-checkout 0.0.1730878287-dev.3 → 0.0.1730878287-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.
@@ -26,9 +26,9 @@ export var elementAppMarmotMap = {
26
26
  dev: 'http://page.alipay.net/page/antom-web-checkout-v2',
27
27
  sit: 'http://page.test.alipay.net/page/antom-web-checkout-v2',
28
28
  pre: 'https://pre.ac.alipay.com/page/antom-web-checkout-v2',
29
- sandbox: 'https://checkout.antom.com/page/antom-web-checkout-v2',
30
- light_sandbox: 'https://checkout.antom.com/page/antom-web-checkout-v2',
31
- prod: 'https://checkout.antom.com/page/antom-web-checkout-v2'
29
+ sandbox: 'https://checkout.antom.com',
30
+ light_sandbox: 'https://checkout.antom.com',
31
+ prod: 'https://checkout.antom.com'
32
32
  };
33
33
  export var sdkVersion = json.version;
34
34
 
@@ -326,7 +326,7 @@ export var ElementComponent = /*#__PURE__*/function () {
326
326
  _defineProperty(this, "validatePromiseFuncs", function () {
327
327
  return new Promise( /*#__PURE__*/function () {
328
328
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve) {
329
- var params, _result$data, _result$data2, result, _result$data3, _result$data4, _result, _result2$data, _result2$data2, _result2$data3, _result2;
329
+ var params, _result$data, _result$data2, result, _result$data3, _result$data4, _result, _result2$data, _result2$data2, _result2;
330
330
  return _regeneratorRuntime().wrap(function _callee$(_context) {
331
331
  while (1) switch (_context.prev = _context.next) {
332
332
  case 0:
@@ -364,7 +364,7 @@ export var ElementComponent = /*#__PURE__*/function () {
364
364
  return _context.abrupt("return", resolve(undefined));
365
365
  case 17:
366
366
  if (!_this4.launchSource.includes(ElementPaymentMethod.PAYMENT_ELEMENT)) {
367
- _context.next = 26;
367
+ _context.next = 25;
368
368
  break;
369
369
  }
370
370
  _context.next = 20;
@@ -374,16 +374,13 @@ export var ElementComponent = /*#__PURE__*/function () {
374
374
  console.log('element submit validate payment---------', _result2);
375
375
  params.paymentFactors = (_result2$data = _result2.data) === null || _result2$data === void 0 || (_result2$data = _result2$data.data) === null || _result2$data === void 0 ? void 0 : _result2$data.paymentFactors;
376
376
  params.paymentMethod = (_result2$data2 = _result2.data) === null || _result2$data2 === void 0 || (_result2$data2 = _result2$data2.data) === null || _result2$data2 === void 0 ? void 0 : _result2$data2.paymentMethod;
377
- if (_result2 !== null && _result2 !== void 0 && (_result2$data3 = _result2.data) !== null && _result2$data3 !== void 0 && _result2$data3.success) {
378
- _context.next = 26;
379
- break;
380
- }
381
- return _context.abrupt("return", resolve(undefined));
382
- case 26:
377
+ resolve(undefined);
378
+ // if (!result?.data?.success) return resolve(undefined);
379
+ case 25:
383
380
  // params.paymentFactors = paymentResult.data?.data.paymentFactors;
384
381
  // params.paymentMethod = paymentResult.data?.data.paymentMethod;
385
382
  resolve(params);
386
- case 27:
383
+ case 26:
387
384
  case "end":
388
385
  return _context.stop();
389
386
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1730878287-dev.3",
3
+ "version": "0.0.1730878287-dev.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",