@alipay/ams-checkout 2.0.24 → 2.0.26
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/ams-checkout.js +3 -3
- package/dist/ams-checkout.min.js +1 -1
- package/esm/config/index.js +1 -1
- package/esm/core/component/element/modernElementController/index.d.ts +10 -0
- package/esm/core/component/element/modernElementController/index.js +172 -128
- package/esm/modern/index.js +1 -1
- package/esm/modern/tools.js +1 -1
- package/esm/tsdoc-metadata.json +1 -1
- package/esm/util/logger.js +1 -1
- package/package.json +1 -1
package/esm/config/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export var v2AppMarmotMap = {
|
|
|
30
30
|
light_sandbox: 'https://checkout.antom.com',
|
|
31
31
|
prod: 'https://checkout.antom.com'
|
|
32
32
|
};
|
|
33
|
-
export var sdkVersion = "2.0.
|
|
33
|
+
export var sdkVersion = "2.0.26";
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
|
|
@@ -40,6 +40,16 @@ export declare class ModernElementController implements IElementController {
|
|
|
40
40
|
private currentPaymentMethodType;
|
|
41
41
|
/** 提交进行中标志:submitPayment 执行期间为 true,用于拒绝并发重入,避免旧闭包串扰/重复拉起钱包 */
|
|
42
42
|
private isSubmitting;
|
|
43
|
+
/**
|
|
44
|
+
* 当前实例解析出的 merchantId,供 trackXxx / reportApiEnd 统一带上。
|
|
45
|
+
* 实例隔离:多实例并发 mount 时各自持有,避免原模块级 _merchantId 的共享竞争。
|
|
46
|
+
*/
|
|
47
|
+
private merchantId;
|
|
48
|
+
private track;
|
|
49
|
+
private trackMount;
|
|
50
|
+
private trackHandshake;
|
|
51
|
+
private trackElement;
|
|
52
|
+
private trackError;
|
|
43
53
|
constructor({ onStatusChange, ...options }: ModernElementControllerOptions);
|
|
44
54
|
mount(renderOptions: PaymentMountOptions, sdkSelector: string): Promise<ICommonApiResponse>;
|
|
45
55
|
private doMount;
|