@alipay/ams-checkout 0.0.1733711101-dev.15 → 0.0.1733711101-dev.17
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.26.0";
|
9
|
+
export declare const AMSAutoDebitAppVersion = "1.26.0";
|
10
|
+
export declare const AMSEasyPayAppVersion = "1.26.0";
|
11
|
+
export declare const AMSCashierPaymentAppVersion = "1.26.0";
|
12
|
+
export declare const AMSVaultingAppVersion = "1.26.0";
|
13
|
+
export declare const AMSPaymentElementAppVersion = "1.26.0";
|
14
|
+
export declare const ADDRESSElementAppVersion = "1.26.0";
|
package/esm/config/index.js
CHANGED
@@ -35,10 +35,10 @@ export var sdkVersion = json.version;
|
|
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.26.0'; // 兜底版本号
|
39
|
+
export var AMSAutoDebitAppVersion = '1.26.0'; // 代扣
|
40
|
+
export var AMSEasyPayAppVersion = '1.26.0'; // easypay
|
41
|
+
export var AMSCashierPaymentAppVersion = '1.26.0'; // 收银台(卡、apm)
|
42
|
+
export var AMSVaultingAppVersion = '1.26.0'; // 绑卡
|
43
|
+
export var AMSPaymentElementAppVersion = '1.26.0'; // payment element
|
44
|
+
export var ADDRESSElementAppVersion = '1.26.0'; // address element
|
@@ -302,6 +302,7 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
302
302
|
var platform = this.paymentContext.displayInfo.platform;
|
303
303
|
var payload = this.bizFlowStartBehavior.payload;
|
304
304
|
var closeBtnCallbackForPopup = function closeBtnCallbackForPopup() {
|
305
|
+
var isOnCloseEvent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
305
306
|
if (displayType === DisplayTypeEnum.inline) {
|
306
307
|
return;
|
307
308
|
}
|
@@ -309,13 +310,13 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
309
310
|
showRetentionPopup();
|
310
311
|
return;
|
311
312
|
} else {
|
312
|
-
_this2.handleClose();
|
313
|
+
_this2.handleClose(isOnCloseEvent);
|
313
314
|
}
|
314
315
|
};
|
315
316
|
|
316
317
|
// TODO 感觉有死循环
|
317
318
|
eventCenter.listen(EVENT.close.name, function () {
|
318
|
-
closeBtnCallbackForPopup();
|
319
|
+
closeBtnCallbackForPopup(true);
|
319
320
|
});
|
320
321
|
eventCenter.listen(EVENT.setAllowRetention.name, function (data) {
|
321
322
|
if (data === undefined || typeof data !== 'boolean') {
|
@@ -351,9 +352,10 @@ export var AntomSDKCore = /*#__PURE__*/function () {
|
|
351
352
|
}, {
|
352
353
|
key: "handleClose",
|
353
354
|
value: function handleClose() {
|
355
|
+
var isOnCloseEvent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
354
356
|
var eventCenter = ServiceProvider.getInstance(this.instanceId).getService('EventCenter');
|
355
357
|
eventCenter.emit(EVENT.closeCallback.name, {});
|
356
|
-
if (this.enablePopWindowEventCallback) {
|
358
|
+
if (this.enablePopWindowEventCallback && !isOnCloseEvent) {
|
357
359
|
eventCenter.emit(EVENT.eventCallback.name, {
|
358
360
|
code: eventCodeEnum.SDK_PAYMENT_CANCEL,
|
359
361
|
result: {
|