@alipay/ams-checkout 0.0.1730706734-dev.8 → 0.0.1730706734-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.
package/esm/config/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ export declare const sdkVersion: string;
|
|
5
5
|
/**
|
6
6
|
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
7
7
|
*/
|
8
|
-
export declare const AMSCheckoutAppVersion = "1.
|
9
|
-
export declare const AMSAutoDebitAppVersion = "1.
|
10
|
-
export declare const AMSEasyPayAppVersion = "1.
|
11
|
-
export declare const AMSCashierPaymentAppVersion = "1.
|
12
|
-
export declare const AMSVaultingAppVersion = "1.
|
13
|
-
export declare const AMSPaymentElementAppVersion = "1.
|
14
|
-
export declare const ADDRESSElementAppVersion = "1.
|
8
|
+
export declare const AMSCheckoutAppVersion = "1.24.0";
|
9
|
+
export declare const AMSAutoDebitAppVersion = "1.24.0";
|
10
|
+
export declare const AMSEasyPayAppVersion = "1.24.0";
|
11
|
+
export declare const AMSCashierPaymentAppVersion = "1.24.0";
|
12
|
+
export declare const AMSVaultingAppVersion = "1.24.0";
|
13
|
+
export declare const AMSPaymentElementAppVersion = "1.24.0";
|
14
|
+
export declare const ADDRESSElementAppVersion = "1.24.0";
|
package/esm/config/index.js
CHANGED
@@ -26,19 +26,19 @@ 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://
|
30
|
-
light_sandbox: 'https://
|
31
|
-
prod: 'https://
|
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
|
|
35
35
|
/**
|
36
36
|
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
37
37
|
*/
|
38
|
-
export var AMSCheckoutAppVersion = '1.
|
39
|
-
export var AMSAutoDebitAppVersion = '1.
|
40
|
-
export var AMSEasyPayAppVersion = '1.
|
41
|
-
export var AMSCashierPaymentAppVersion = '1.
|
42
|
-
export var AMSVaultingAppVersion = '1.
|
43
|
-
export var AMSPaymentElementAppVersion = '1.
|
44
|
-
export var ADDRESSElementAppVersion = '1.
|
38
|
+
export var AMSCheckoutAppVersion = '1.24.0'; // 兜底版本号
|
39
|
+
export var AMSAutoDebitAppVersion = '1.24.0'; // 代扣
|
40
|
+
export var AMSEasyPayAppVersion = '1.24.0'; // easypay
|
41
|
+
export var AMSCashierPaymentAppVersion = '1.24.0'; // 收银台(卡、apm)
|
42
|
+
export var AMSVaultingAppVersion = '1.24.0'; // 绑卡
|
43
|
+
export var AMSPaymentElementAppVersion = '1.24.0'; // payment element
|
44
|
+
export var ADDRESSElementAppVersion = '1.24.0'; // address element
|
@@ -13,12 +13,13 @@ var CKP_PAYMENT_PAGE_HOST = {
|
|
13
13
|
DEV: 'https://dev.page.alipay.net',
|
14
14
|
TEST: 'https://test.page.alipay.net',
|
15
15
|
PRE: 'https://pre.ac.alipay.com',
|
16
|
-
PROD: 'https://
|
16
|
+
PROD: 'https://checkout.antom.com'
|
17
17
|
};
|
18
18
|
|
19
19
|
// for local development
|
20
20
|
|
21
21
|
var CKP_PAGE_ADDRESS = '/page/antom-web-checkout-v2/checkout-page/pages/payment/index.html';
|
22
|
+
var CKP_PAGE_NEW_ADDRESS = '/checkout-page/pages/payment/index.html';
|
22
23
|
export var getCKPPageAddress = function getCKPPageAddress(env) {
|
23
24
|
switch (env) {
|
24
25
|
case 'dev':
|
@@ -30,7 +31,7 @@ export var getCKPPageAddress = function getCKPPageAddress(env) {
|
|
30
31
|
case 'prod':
|
31
32
|
case 'sandbox':
|
32
33
|
case 'light_sandbox':
|
33
|
-
return "".concat(CKP_PAYMENT_PAGE_HOST.PROD).concat(
|
34
|
+
return "".concat(CKP_PAYMENT_PAGE_HOST.PROD).concat(CKP_PAGE_NEW_ADDRESS);
|
34
35
|
default:
|
35
36
|
// for local development, e.g. http://localhost:5173/checkout-page/src/pages/payment/index.html
|
36
37
|
return env;
|
@@ -373,31 +373,39 @@ export var ElementComponent = /*#__PURE__*/function () {
|
|
373
373
|
}
|
374
374
|
return _context.abrupt("return", resolve(undefined));
|
375
375
|
case 17:
|
376
|
-
if (!_this4.launchSource.includes(ElementPaymentMethod.PAYMENT_ELEMENT)) {
|
377
|
-
_context.next =
|
376
|
+
if (!(_this4.launchSource.includes(ElementPaymentMethod.PAYMENT_ELEMENT) || !_this4.isConnect)) {
|
377
|
+
_context.next = 32;
|
378
378
|
break;
|
379
379
|
}
|
380
|
-
_context.
|
380
|
+
_context.prev = 18;
|
381
|
+
_context.next = 21;
|
381
382
|
return _this4.onValidateFunc(ElementPaymentMethod.PAYMENT_ELEMENT, params);
|
382
|
-
case
|
383
|
+
case 21:
|
383
384
|
_result2 = _context.sent;
|
384
|
-
console.log('element submit validate payment---------', _result2);
|
385
|
+
console.log('element submit validate payment---------', _result2, _this4.isConnect);
|
385
386
|
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;
|
386
387
|
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;
|
387
388
|
if (_result2 !== null && _result2 !== void 0 && (_result2$data3 = _result2.data) !== null && _result2$data3 !== void 0 && _result2$data3.success) {
|
388
|
-
_context.next =
|
389
|
+
_context.next = 27;
|
389
390
|
break;
|
390
391
|
}
|
391
392
|
return _context.abrupt("return", resolve(undefined));
|
392
|
-
case
|
393
|
+
case 27:
|
394
|
+
_context.next = 32;
|
395
|
+
break;
|
396
|
+
case 29:
|
397
|
+
_context.prev = 29;
|
398
|
+
_context.t0 = _context["catch"](18);
|
399
|
+
return _context.abrupt("return", resolve(undefined));
|
400
|
+
case 32:
|
393
401
|
// params.paymentFactors = paymentResult.data?.data.paymentFactors;
|
394
402
|
// params.paymentMethod = paymentResult.data?.data.paymentMethod;
|
395
403
|
resolve(params);
|
396
|
-
case
|
404
|
+
case 33:
|
397
405
|
case "end":
|
398
406
|
return _context.stop();
|
399
407
|
}
|
400
|
-
}, _callee);
|
408
|
+
}, _callee, null, [[18, 29]]);
|
401
409
|
}));
|
402
410
|
return function (_x) {
|
403
411
|
return _ref.apply(this, arguments);
|