@alipay/ams-checkout 0.0.1702608619-dev.0 → 0.0.1704122903-dev.0
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/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/request.js +3 -3
- package/esm/constant/index.d.ts +2 -4
- package/esm/constant/index.js +3 -5
- package/esm/core/component/index.js +13 -0
- package/esm/core/instance/index.js +1 -1
- package/esm/plugin/component/index.d.ts +1 -2
- package/esm/plugin/component/index.js +128 -72
- package/esm/plugin/component/popupWindow.style.d.ts +1 -1
- package/esm/plugin/component/popupWindow.style.js +32 -23
- package/esm/types/index.d.ts +1 -9
- package/esm/util/logger.js +3 -0
- package/esm/util/security.js +1 -1
- package/package.json +1 -1
package/esm/config/request.js
CHANGED
@@ -12,8 +12,8 @@ var _queryParse = queryParse(),
|
|
12
12
|
groupId = _queryParse.groupId,
|
13
13
|
host = _queryParse.requestHost;
|
14
14
|
export var requestHost = {
|
15
|
-
local: 'http://imgs-
|
16
|
-
dev: host || 'http://imgs-
|
15
|
+
local: 'http://imgs-6517.sggz00b.dev.alipay.net/mgw.htm',
|
16
|
+
dev: host || 'http://imgs-6517.sggz00b.dev.alipay.net/mgw.htm',
|
17
17
|
sit: host || 'http://imgs-9.sggz00a.test.alipay.net/mgw.htm',
|
18
18
|
pre: 'https://imgs-sea-pre.alipay.com/mgw.htm',
|
19
19
|
prod: 'https://imgs-sea-global.alipay.com/mgw.htm',
|
@@ -22,7 +22,7 @@ export var requestHost = {
|
|
22
22
|
export var clientId = '5J5Y8X4E2Y25GR00690';
|
23
23
|
export var tntInstId = 'ALIPW3SG';
|
24
24
|
export var appId = 'ANTOM_PAYMENT_WEB';
|
25
|
-
export var sofaId = groupId || '
|
25
|
+
export var sofaId = groupId || 'GROUP_20230913102142';
|
26
26
|
export var hostSignMap = function hostSignMap(hostSign, env) {
|
27
27
|
var map = {
|
28
28
|
SG: 'https://imgs-sea-global.alipay.com/mgw.htm',
|
package/esm/constant/index.d.ts
CHANGED
@@ -55,9 +55,6 @@ export declare const ERRORMESSAGE: {
|
|
55
55
|
CREATEPAYMENT_PARAMETER_ERROR: {
|
56
56
|
code: eventCodeEnum;
|
57
57
|
};
|
58
|
-
CONFIRMPAYMENT_PARAMETER_ERROR: {
|
59
|
-
code: string;
|
60
|
-
};
|
61
58
|
CREATECOMPONENT_ERROR: {
|
62
59
|
code: eventCodeEnum;
|
63
60
|
message: string;
|
@@ -140,7 +137,7 @@ export declare const EVENT: {
|
|
140
137
|
dismissLoading: {
|
141
138
|
name: string;
|
142
139
|
};
|
143
|
-
|
140
|
+
popupWindow: {
|
144
141
|
name: string;
|
145
142
|
};
|
146
143
|
popWindow: {
|
@@ -180,6 +177,7 @@ export declare const INLINE_BASE_STYLE_ID = "ams-inline-component-style";
|
|
180
177
|
export declare const INLINE_IMG_CLASSNAME = "inline-loading";
|
181
178
|
export declare const AMSPOPUP_PREFIX = "ams-popup";
|
182
179
|
export declare const LOADTIME_LIMIT = 15000;
|
180
|
+
export declare const POPUP_LOADTIME_LOG_LIMIT = 3000;
|
183
181
|
export declare const ANIMATION_TIME = 300;
|
184
182
|
export declare const closeImg = "https://cdn.marmot-cloud.com/storage/2023/5/18/1692a487-99b5-4314-9d6f-e9814bc1ca41.svg";
|
185
183
|
export declare const LOADINGIMG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACEBAMAAACjap6UAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAqUExURUdwTKe3zKGxyK27z7K/05ytxLbD1bvH2Jaowb/K28DL3JCjvYueucDL2xLcxpgAAAAOdFJOUwCKoHRft0w5zCgY4fYKKSYvdQAABvtJREFUaN6lmt+LG1UUx6fddbcZHOgkpWutBTPbVBEfNp1xS6uF2oQURUGnBBbqw7YdsooV2ipZ06c+uBBZCistDRMUqgV1gnnwJ4HMg2jBh+Qh1bW1A/lfPOfcO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1f5AQUESCQR2mVh1FkjfAkohJgLj1GEVtZIRFACP0fCm/AgmdREnzYqIRhFHkvq+J77MBFQpEPpCQOYPcntwIWeK6Mu0P9D9pzJq4u5hj+AAAAAElFTkSuQmCC";
|
package/esm/constant/index.js
CHANGED
@@ -55,9 +55,6 @@ export var ERRORMESSAGE = {
|
|
55
55
|
CREATEPAYMENT_PARAMETER_ERROR: {
|
56
56
|
code: eventCodeEnum.SDK_CREATEPAYMENT_PARAMETER_ERROR
|
57
57
|
},
|
58
|
-
CONFIRMPAYMENT_PARAMETER_ERROR: {
|
59
|
-
code: 'SDK_CONFIRMPAYMENT_PARAMETER_ERROR'
|
60
|
-
},
|
61
58
|
CREATECOMPONENT_ERROR: {
|
62
59
|
code: eventCodeEnum.SDK_CREATECOMPONENT_ERROR,
|
63
60
|
message: 'Failed to create component',
|
@@ -140,8 +137,8 @@ export var EVENT = {
|
|
140
137
|
dismissLoading: {
|
141
138
|
name: 'dismissLoading'
|
142
139
|
},
|
143
|
-
|
144
|
-
name: '
|
140
|
+
popupWindow: {
|
141
|
+
name: 'popupWindow'
|
145
142
|
},
|
146
143
|
popWindow: {
|
147
144
|
name: 'popWindow'
|
@@ -180,6 +177,7 @@ export var INLINE_BASE_STYLE_ID = 'ams-inline-component-style';
|
|
180
177
|
export var INLINE_IMG_CLASSNAME = 'inline-loading';
|
181
178
|
export var AMSPOPUP_PREFIX = 'ams-popup';
|
182
179
|
export var LOADTIME_LIMIT = 15000;
|
180
|
+
export var POPUP_LOADTIME_LOG_LIMIT = 3000;
|
183
181
|
export var ANIMATION_TIME = 300;
|
184
182
|
export var closeImg = 'https://cdn.marmot-cloud.com/storage/2023/5/18/1692a487-99b5-4314-9d6f-e9814bc1ca41.svg';
|
185
183
|
export var LOADINGIMG = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACEBAMAAACjap6UAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAITgAACE4AUWWMW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KSIDjnSHj4PNiEpWKWyoNWelewXEoCuhj5EPpEzeEVFa3L3X1bgHaKOQcjOOD0YFXqYtSCRkDEPW7ApbjMJExZ5LasyCIW8M9mBZ4FQLkHB7G2MfzJ3Q8eKyGtVIsFlcKvBwayfh/ldW8Ck4Va7USEorFAkEoi1zu3KQrEu+Ca6wwi54GpFmYeC6ruLRAgffCLVgv2EchwkuGgGVZWe15bElAL5FeUwSUBR1f5AQUESCQR2mVh1FkjfAkohJgLj1GEVtZIRFACP0fCm/AgmdREnzYqIRhFHkvq+J77MBFQpEPpCQOYPcntwIWeK6Mu0P9D9pzJq4u5hj+AAAAAElFTkSuQmCC';
|
@@ -138,6 +138,9 @@ export var AMSComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
138
138
|
key: "pluginAppendIframe",
|
139
139
|
value: function pluginAppendIframe(appendParams) {
|
140
140
|
try {
|
141
|
+
this.logger.logInfo({
|
142
|
+
title: 'sdk_event_createComponent'
|
143
|
+
}).send();
|
141
144
|
return this._componentApp.appendIframeNodes(appendParams.componentSign, appendParams.iframeNodesParams);
|
142
145
|
} catch (error) {
|
143
146
|
return Promise.reject(error);
|
@@ -157,6 +160,11 @@ export var AMSComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
157
160
|
}).then(function (_params) {
|
158
161
|
return handleParams(_params);
|
159
162
|
}).catch(function (error) {
|
163
|
+
_this2.logger.logError({
|
164
|
+
title: 'sdk_error_parameter'
|
165
|
+
}, {
|
166
|
+
params: JSON.stringify(params)
|
167
|
+
}).send();
|
160
168
|
_this2._eventCenter.emit(EVENT.error.name, error);
|
161
169
|
return Promise.reject(error);
|
162
170
|
}).then(function (appendParams) {
|
@@ -179,6 +187,11 @@ export var AMSComponent = /*#__PURE__*/function (_CoreInstance) {
|
|
179
187
|
}).then(function (_params) {
|
180
188
|
return handleParams(_params);
|
181
189
|
}).catch(function (error) {
|
190
|
+
_this3.logger.logError({
|
191
|
+
title: 'sdk_error_parameter'
|
192
|
+
}, {
|
193
|
+
params: JSON.stringify(params)
|
194
|
+
}).send();
|
182
195
|
_this3._eventCenter.emit(EVENT.error.name, error);
|
183
196
|
return Promise.reject(error);
|
184
197
|
}).then(function (appendParams) {
|
@@ -192,7 +192,7 @@ var AMSSDK = /*#__PURE__*/function () {
|
|
192
192
|
securitySdk.initSecurity(successCallback, failCallback);
|
193
193
|
return securitySdk;
|
194
194
|
} catch (error) {
|
195
|
-
failCallback && failCallback(
|
195
|
+
failCallback && failCallback(error === null || error === void 0 ? void 0 : error.toString());
|
196
196
|
}
|
197
197
|
}
|
198
198
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type AMSCheckout from '../../core/instance';
|
2
|
-
import type { eventPayload, eventPayloadContext, IappendIframeNodesParams,
|
2
|
+
import type { eventPayload, eventPayloadContext, IappendIframeNodesParams, Iselector } from '../../types';
|
3
3
|
import { componentSignEnum, platformEnum, renderDisplayTypeEnum } from '../../types';
|
4
4
|
type IrenderFuncParams = (context: ComponentApp, selector: Iselector, renderDisplayType: renderDisplayTypeEnum) => Promise<void>;
|
5
5
|
export default class ComponentApp {
|
@@ -23,7 +23,6 @@ export default class ComponentApp {
|
|
23
23
|
private _appLocationSearch;
|
24
24
|
private _renderDisplayType;
|
25
25
|
private _multipleCallbackEvents;
|
26
|
-
_merchantAppointParam: IMerchantAppointParam;
|
27
26
|
constructor();
|
28
27
|
/**
|
29
28
|
* @description Cancel listening and destroy the dom
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
15
15
|
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
16
16
|
*/
|
17
17
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
18
|
-
import { COMPONENTPLUGINID, COMPONENT_CLOSE_BLOCK_ID, COMPONENT_CONTAINER_ID, COMPONENT_RETENTION_ID, COMPONENT_SECTION_ID, ERRORMESSAGE, EVENT, LISTENER_PREFIX, LOADING_ID, LOADTIME_LIMIT, MOCKUP_ID } from "../../constant";
|
18
|
+
import { COMPONENTPLUGINID, COMPONENT_CLOSE_BLOCK_ID, COMPONENT_CONTAINER_ID, COMPONENT_RETENTION_ID, COMPONENT_SECTION_ID, ERRORMESSAGE, EVENT, LISTENER_PREFIX, LOADING_ID, LOADTIME_LIMIT, MOCKUP_ID, POPUP_LOADTIME_LOG_LIMIT } from "../../constant";
|
19
19
|
import { queryPaymentInfo, submitPayInfo } from "../../service";
|
20
20
|
import { componentSignEnum, eventCodeEnum, messageName, platformEnum, productSceneEnum, RedirectType, renderDisplayTypeEnum, targetEnum } from "../../types";
|
21
21
|
import { getType, isJsonString, isPC } from "../../util";
|
@@ -48,8 +48,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
48
48
|
_defineProperty(this, "_appLocationSearch", void 0);
|
49
49
|
_defineProperty(this, "_renderDisplayType", renderDisplayTypeEnum.popup);
|
50
50
|
_defineProperty(this, "_multipleCallbackEvents", void 0);
|
51
|
-
|
52
|
-
this._appVersion = '1.7.0';
|
51
|
+
this._appVersion = '1.7.1';
|
53
52
|
this._isInitComponent = false;
|
54
53
|
this._selector = "#".concat(COMPONENT_SECTION_ID);
|
55
54
|
this.createIframeNode = function () {
|
@@ -241,7 +240,6 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
241
240
|
this._componentSign = componentSign;
|
242
241
|
if ((_renderParams = renderParams) !== null && _renderParams !== void 0 && _renderParams.selector) this._selector = renderParams.selector;
|
243
242
|
this._renderDisplayType = renderParams.renderDisplayType;
|
244
|
-
this._merchantAppointParam = renderParams.merchantAppointParam;
|
245
243
|
var insertedNode = this._renderDisplayType === renderDisplayTypeEnum.inline ? "#".concat(COMPONENT_CONTAINER_ID) : this._selector;
|
246
244
|
this.initLoggerMeta();
|
247
245
|
this.AMSSDK.logger.logInfo({
|
@@ -351,8 +349,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
351
349
|
params = {
|
352
350
|
paymentSessionData: _this5._renderParams && ((_this5$_renderParams = _this5._renderParams) === null || _this5$_renderParams === void 0 ? void 0 : _this5$_renderParams.sessionData) || '',
|
353
351
|
paymentSessionConfig: (_this5$_renderParams2 = _this5._renderParams) === null || _this5$_renderParams2 === void 0 || (_this5$_renderParams2 = _this5$_renderParams2.paymentSessionMetaData) === null || _this5$_renderParams2 === void 0 ? void 0 : _this5$_renderParams2.paymentSessionConfig,
|
354
|
-
notRedirectAfterComplete: ((_this5$_renderParams3 = _this5._renderParams) === null || _this5$_renderParams3 === void 0 ? void 0 : _this5$_renderParams3.notRedirectAfterComplete) === true
|
355
|
-
merchantAppointParam: _this5._merchantAppointParam
|
352
|
+
notRedirectAfterComplete: ((_this5$_renderParams3 = _this5._renderParams) === null || _this5$_renderParams3 === void 0 ? void 0 : _this5$_renderParams3.notRedirectAfterComplete) === true
|
356
353
|
};
|
357
354
|
/**
|
358
355
|
* @description Simulated or unnecessary scenarios
|
@@ -367,7 +364,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
367
364
|
}));
|
368
365
|
case 4:
|
369
366
|
if (!(componentSignEnum.CASHIER_PAYMENT_CARD === _this5._componentSign || componentSignEnum.VAULTING_CARD === _this5._componentSign)) {
|
370
|
-
_context2.next =
|
367
|
+
_context2.next = 10;
|
371
368
|
break;
|
372
369
|
}
|
373
370
|
params.paymentMethodType = 'CARD';
|
@@ -375,55 +372,60 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
375
372
|
return _this5.getDeviceIdAndLog();
|
376
373
|
case 8:
|
377
374
|
envInfo.deviceId = _context2.sent;
|
378
|
-
|
375
|
+
if (window.userAgent.indexOf('miniProgram') > -1) {
|
376
|
+
envInfo.extendInfo = {
|
377
|
+
WAP_SUB_TYPE: 'WECHAT_MINI_PROGRAM'
|
378
|
+
};
|
379
|
+
}
|
380
|
+
case 10:
|
379
381
|
if (!(componentSignEnum.EASY_PAY_WALLET === _this5._componentSign)) {
|
380
|
-
_context2.next =
|
382
|
+
_context2.next = 18;
|
381
383
|
break;
|
382
384
|
}
|
383
385
|
_ref3 = params.paymentSessionConfig || {}, _ref3$productSceneVer = _ref3.productSceneVersion, productSceneVersion = _ref3$productSceneVer === void 0 ? '' : _ref3$productSceneVer, _ref3$productScene = _ref3.productScene, productScene = _ref3$productScene === void 0 ? '' : _ref3$productScene;
|
384
386
|
_ref4 = ((_this5$_renderParams5 = _this5._renderParams) === null || _this5$_renderParams5 === void 0 ? void 0 : _this5$_renderParams5.paymentSessionMetaData) || {}, _ref4$action = _ref4.action, _ref4$action2 = _ref4$action === void 0 ? {} : _ref4$action, _ref4$action2$autoDeb = _ref4$action2.autoDebitWithToken, autoDebitWithToken = _ref4$action2$autoDeb === void 0 ? false : _ref4$action2$autoDeb;
|
385
387
|
if (!(productScene === productSceneEnum.EASY_PAY && productSceneVersion === '2.0' && !autoDebitWithToken)) {
|
386
|
-
_context2.next =
|
388
|
+
_context2.next = 15;
|
387
389
|
break;
|
388
390
|
}
|
389
391
|
return _context2.abrupt("return", resolve({
|
390
392
|
message: 'sdk no need to make query request',
|
391
393
|
success: true
|
392
394
|
}));
|
393
|
-
case
|
394
|
-
_context2.next =
|
395
|
+
case 15:
|
396
|
+
_context2.next = 17;
|
395
397
|
return _this5.getDeviceIdAndLog();
|
396
|
-
case 16:
|
397
|
-
envInfo.deviceId = _context2.sent;
|
398
398
|
case 17:
|
399
|
+
envInfo.deviceId = _context2.sent;
|
400
|
+
case 18:
|
399
401
|
if (!(componentSignEnum.AUTO_DEBIT_WALLET === _this5._componentSign)) {
|
400
|
-
_context2.next =
|
402
|
+
_context2.next = 28;
|
401
403
|
break;
|
402
404
|
}
|
403
405
|
action = ((_this5$_renderParams6 = _this5._renderParams) === null || _this5$_renderParams6 === void 0 || (_this5$_renderParams6 = _this5$_renderParams6.paymentSessionMetaData) === null || _this5$_renderParams6 === void 0 ? void 0 : _this5$_renderParams6.action) || {};
|
404
406
|
signType = isPC() ? action === null || action === void 0 || (_action$web = action.web) === null || _action$web === void 0 ? void 0 : _action$web.signType : action === null || action === void 0 || (_action$wap = action.wap) === null || _action$wap === void 0 ? void 0 : _action$wap.signType;
|
405
407
|
if (!(signType === 'SMS')) {
|
406
|
-
_context2.next =
|
408
|
+
_context2.next = 23;
|
407
409
|
break;
|
408
410
|
}
|
409
411
|
return _context2.abrupt("return", resolve({
|
410
412
|
message: 'sdk no need to make query request',
|
411
413
|
success: true
|
412
414
|
}));
|
413
|
-
case
|
415
|
+
case 23:
|
414
416
|
if (!(!signType || signType !== 'REDIRECT')) {
|
415
|
-
_context2.next =
|
417
|
+
_context2.next = 25;
|
416
418
|
break;
|
417
419
|
}
|
418
420
|
return _context2.abrupt("return", resolve({
|
419
421
|
success: false
|
420
422
|
}));
|
421
|
-
case
|
422
|
-
_context2.next =
|
423
|
+
case 25:
|
424
|
+
_context2.next = 27;
|
423
425
|
return _this5.getDeviceIdAndLog();
|
424
|
-
case 26:
|
425
|
-
envInfo.deviceId = _context2.sent;
|
426
426
|
case 27:
|
427
|
+
envInfo.deviceId = _context2.sent;
|
428
|
+
case 28:
|
427
429
|
_this5.AMSSDK.logger.logInfo({
|
428
430
|
title: 'sdk_event_sdkQuery'
|
429
431
|
}, {
|
@@ -459,7 +461,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
459
461
|
paymentSessionConfig: JSON.stringify(params.paymentSessionConfig)
|
460
462
|
}).send();
|
461
463
|
});
|
462
|
-
case
|
464
|
+
case 30:
|
463
465
|
case "end":
|
464
466
|
return _context2.stop();
|
465
467
|
}
|
@@ -633,6 +635,9 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
633
635
|
// Subscribe to messages from iframe
|
634
636
|
this.addEventListener();
|
635
637
|
} catch (error) {
|
638
|
+
this.AMSSDK.logger.logError({
|
639
|
+
title: 'sdk_error_created_app_failed'
|
640
|
+
}).send();
|
636
641
|
this.dispatchToSDK(EVENT.error.name, Object.assign({}, ERRORMESSAGE.SDK_COMPATIBILITY_ISSUES.FAILED_TO_CREATE_IFRAME, {
|
637
642
|
stack: error
|
638
643
|
}));
|
@@ -670,31 +675,80 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
670
675
|
}
|
671
676
|
}, {
|
672
677
|
key: "createDialog",
|
673
|
-
value: function
|
674
|
-
var
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
678
|
+
value: function () {
|
679
|
+
var _createDialog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
|
680
|
+
var pageUrl, isLoad, timeout, logTimeout;
|
681
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
682
|
+
while (1) switch (_context4.prev = _context4.next) {
|
683
|
+
case 0:
|
684
|
+
pageUrl = data.url.includes('?') ? "".concat(data.url, "&").concat(this._appLocationSearch) : "".concat(data.url, "?").concat(this._appLocationSearch);
|
685
|
+
_context4.prev = 1;
|
686
|
+
isLoad = false;
|
687
|
+
_context4.next = 5;
|
688
|
+
return createModal({
|
689
|
+
widthPadding: data === null || data === void 0 ? void 0 : data.widthPadding,
|
690
|
+
heightPadding: data === null || data === void 0 ? void 0 : data.heightPadding,
|
691
|
+
device: this.platform,
|
692
|
+
url: pageUrl
|
693
|
+
});
|
694
|
+
case 5:
|
695
|
+
this.popupApp = _context4.sent;
|
696
|
+
timeout = setTimeout(function () {
|
697
|
+
if (isLoad) return;
|
698
|
+
throw {
|
699
|
+
title: 'sdk_error_create_pop_up'
|
700
|
+
};
|
701
|
+
}, LOADTIME_LIMIT);
|
702
|
+
logTimeout = setTimeout(function () {
|
703
|
+
if (isLoad) return;
|
704
|
+
throw {
|
705
|
+
title: 'sdk_error_pop_up_time_out'
|
706
|
+
};
|
707
|
+
}, POPUP_LOADTIME_LOG_LIMIT);
|
708
|
+
this.popupApp.onload = function () {
|
709
|
+
isLoad = true;
|
710
|
+
clearTimeout(timeout);
|
711
|
+
clearTimeout(logTimeout);
|
712
|
+
};
|
713
|
+
_context4.next = 15;
|
714
|
+
break;
|
715
|
+
case 11:
|
716
|
+
_context4.prev = 11;
|
717
|
+
_context4.t0 = _context4["catch"](1);
|
718
|
+
this.AMSSDK.logger.logError({
|
719
|
+
title: (_context4.t0 === null || _context4.t0 === void 0 ? void 0 : _context4.t0.title) || 'sdk_error_create_pop_up'
|
720
|
+
}, {
|
721
|
+
message: _context4.t0 === null || _context4.t0 === void 0 ? void 0 : _context4.t0.message,
|
722
|
+
url: pageUrl
|
723
|
+
});
|
724
|
+
this.dispatchToSDK(EVENT.error.name, ERRORMESSAGE.CREATECOMPONENT_ERROR.LOAD_APP_TIMEOUT);
|
725
|
+
case 15:
|
726
|
+
case "end":
|
727
|
+
return _context4.stop();
|
728
|
+
}
|
729
|
+
}, _callee4, this, [[1, 11]]);
|
730
|
+
}));
|
731
|
+
function createDialog(_x4) {
|
732
|
+
return _createDialog.apply(this, arguments);
|
733
|
+
}
|
734
|
+
return createDialog;
|
735
|
+
}()
|
682
736
|
}, {
|
683
737
|
key: "getDeviceIdAndCallback",
|
684
738
|
value: function () {
|
685
|
-
var _getDeviceIdAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
739
|
+
var _getDeviceIdAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(eventContext) {
|
686
740
|
var deviceId;
|
687
|
-
return _regeneratorRuntime().wrap(function
|
688
|
-
while (1) switch (
|
741
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
742
|
+
while (1) switch (_context5.prev = _context5.next) {
|
689
743
|
case 0:
|
690
744
|
if (!(eventContext !== null && eventContext !== void 0 && eventContext.eventCallbackId)) {
|
691
|
-
|
745
|
+
_context5.next = 5;
|
692
746
|
break;
|
693
747
|
}
|
694
|
-
|
748
|
+
_context5.next = 3;
|
695
749
|
return this.getDeviceIdAndLog(eventContext === null || eventContext === void 0 ? void 0 : eventContext.data, true);
|
696
750
|
case 3:
|
697
|
-
deviceId =
|
751
|
+
deviceId = _context5.sent;
|
698
752
|
this.dispatchToApp({
|
699
753
|
context: {
|
700
754
|
event: 'appEventCallback',
|
@@ -706,11 +760,11 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
706
760
|
});
|
707
761
|
case 5:
|
708
762
|
case "end":
|
709
|
-
return
|
763
|
+
return _context5.stop();
|
710
764
|
}
|
711
|
-
},
|
765
|
+
}, _callee5, this);
|
712
766
|
}));
|
713
|
-
function getDeviceIdAndCallback(
|
767
|
+
function getDeviceIdAndCallback(_x5) {
|
714
768
|
return _getDeviceIdAndCallback.apply(this, arguments);
|
715
769
|
}
|
716
770
|
return getDeviceIdAndCallback;
|
@@ -718,9 +772,9 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
718
772
|
}, {
|
719
773
|
key: "getUserAgentAndCallback",
|
720
774
|
value: function () {
|
721
|
-
var _getUserAgentAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
722
|
-
return _regeneratorRuntime().wrap(function
|
723
|
-
while (1) switch (
|
775
|
+
var _getUserAgentAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(eventContext) {
|
776
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
777
|
+
while (1) switch (_context6.prev = _context6.next) {
|
724
778
|
case 0:
|
725
779
|
if (eventContext !== null && eventContext !== void 0 && eventContext.eventCallbackId) {
|
726
780
|
try {
|
@@ -729,19 +783,22 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
729
783
|
event: 'appEventCallback',
|
730
784
|
eventCallbackId: eventContext === null || eventContext === void 0 ? void 0 : eventContext.eventCallbackId,
|
731
785
|
data: {
|
732
|
-
|
786
|
+
// TODO 预发前删除window.location.search,这个是用于调试配置的后门
|
787
|
+
userAgent: window.navigator.userAgent + window.location.search
|
733
788
|
}
|
734
789
|
}
|
735
790
|
});
|
736
|
-
} catch (error) {
|
791
|
+
} catch (error) {
|
792
|
+
/* empty */
|
793
|
+
}
|
737
794
|
}
|
738
795
|
case 1:
|
739
796
|
case "end":
|
740
|
-
return
|
797
|
+
return _context6.stop();
|
741
798
|
}
|
742
|
-
},
|
799
|
+
}, _callee6, this);
|
743
800
|
}));
|
744
|
-
function getUserAgentAndCallback(
|
801
|
+
function getUserAgentAndCallback(_x6) {
|
745
802
|
return _getUserAgentAndCallback.apply(this, arguments);
|
746
803
|
}
|
747
804
|
return getUserAgentAndCallback;
|
@@ -749,10 +806,10 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
749
806
|
}, {
|
750
807
|
key: "returnDataAndCallback",
|
751
808
|
value: function () {
|
752
|
-
var _returnDataAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
809
|
+
var _returnDataAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(eventContext) {
|
753
810
|
var _eventContext$data, targetData;
|
754
|
-
return _regeneratorRuntime().wrap(function
|
755
|
-
while (1) switch (
|
811
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
812
|
+
while (1) switch (_context7.prev = _context7.next) {
|
756
813
|
case 0:
|
757
814
|
if (eventContext !== null && eventContext !== void 0 && eventContext.eventCallbackId) {
|
758
815
|
targetData = this._globalData.get((_eventContext$data = eventContext.data) === null || _eventContext$data === void 0 ? void 0 : _eventContext$data.dataKey);
|
@@ -766,11 +823,11 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
766
823
|
}
|
767
824
|
case 1:
|
768
825
|
case "end":
|
769
|
-
return
|
826
|
+
return _context7.stop();
|
770
827
|
}
|
771
|
-
},
|
828
|
+
}, _callee7, this);
|
772
829
|
}));
|
773
|
-
function returnDataAndCallback(
|
830
|
+
function returnDataAndCallback(_x7) {
|
774
831
|
return _returnDataAndCallback.apply(this, arguments);
|
775
832
|
}
|
776
833
|
return returnDataAndCallback;
|
@@ -827,7 +884,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
827
884
|
this._globalData.set((_data$context$data = data.context.data) === null || _data$context$data === void 0 ? void 0 : _data$context$data.dataKey, (_data$context$data2 = data.context.data) === null || _data$context$data2 === void 0 ? void 0 : _data$context$data2.data);
|
828
885
|
return;
|
829
886
|
}
|
830
|
-
if (data.context.event === EVENT.
|
887
|
+
if (data.context.event === EVENT.popupWindow.name) {
|
831
888
|
var _data$context;
|
832
889
|
this.createDialog((_data$context = data.context) === null || _data$context === void 0 ? void 0 : _data$context.data);
|
833
890
|
return;
|
@@ -1127,26 +1184,26 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1127
1184
|
}, {
|
1128
1185
|
key: "sendRenderEvent",
|
1129
1186
|
value: function () {
|
1130
|
-
var _sendRenderEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
1187
|
+
var _sendRenderEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
1131
1188
|
var _this$_renderParams6, _this$_renderParams7, _this$_renderParams8, _this$_renderParams9, _this$_renderParams10, res, submitRes;
|
1132
|
-
return _regeneratorRuntime().wrap(function
|
1133
|
-
while (1) switch (
|
1189
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
1190
|
+
while (1) switch (_context8.prev = _context8.next) {
|
1134
1191
|
case 0:
|
1135
|
-
|
1192
|
+
_context8.prev = 0;
|
1136
1193
|
if (!(!this._actionQueryPromise || !this._actionSubmitPromise)) {
|
1137
|
-
|
1194
|
+
_context8.next = 3;
|
1138
1195
|
break;
|
1139
1196
|
}
|
1140
|
-
return
|
1197
|
+
return _context8.abrupt("return");
|
1141
1198
|
case 3:
|
1142
|
-
|
1199
|
+
_context8.next = 5;
|
1143
1200
|
return this._actionQueryPromise;
|
1144
1201
|
case 5:
|
1145
|
-
res =
|
1146
|
-
|
1202
|
+
res = _context8.sent;
|
1203
|
+
_context8.next = 8;
|
1147
1204
|
return this._actionSubmitPromise;
|
1148
1205
|
case 8:
|
1149
|
-
submitRes =
|
1206
|
+
submitRes = _context8.sent;
|
1150
1207
|
this._performanceData.push({
|
1151
1208
|
key: 'sdk_render_component',
|
1152
1209
|
value: Date.now()
|
@@ -1163,7 +1220,6 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1163
1220
|
renderDisplayType: (_this$_renderParams8 = this._renderParams) === null || _this$_renderParams8 === void 0 ? void 0 : _this$_renderParams8.renderDisplayType,
|
1164
1221
|
appearance: (_this$_renderParams9 = this._renderParams) === null || _this$_renderParams9 === void 0 ? void 0 : _this$_renderParams9.appearance,
|
1165
1222
|
notRedirectAfterComplete: ((_this$_renderParams10 = this._renderParams) === null || _this$_renderParams10 === void 0 ? void 0 : _this$_renderParams10.notRedirectAfterComplete) === true,
|
1166
|
-
merchantAppointParam: this._merchantAppointParam,
|
1167
1223
|
envInfo: {
|
1168
1224
|
screenHeight: screen.height,
|
1169
1225
|
screenWidth: screen.width
|
@@ -1180,16 +1236,16 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
1180
1236
|
}
|
1181
1237
|
});
|
1182
1238
|
// eslint-disable-next-line no-empty
|
1183
|
-
|
1239
|
+
_context8.next = 16;
|
1184
1240
|
break;
|
1185
1241
|
case 14:
|
1186
|
-
|
1187
|
-
|
1242
|
+
_context8.prev = 14;
|
1243
|
+
_context8.t0 = _context8["catch"](0);
|
1188
1244
|
case 16:
|
1189
1245
|
case "end":
|
1190
|
-
return
|
1246
|
+
return _context8.stop();
|
1191
1247
|
}
|
1192
|
-
},
|
1248
|
+
}, _callee8, this, [[0, 14]]);
|
1193
1249
|
}));
|
1194
1250
|
function sendRenderEvent() {
|
1195
1251
|
return _sendRenderEvent.apply(this, arguments);
|
@@ -16,29 +16,38 @@ export var createModal = function createModal(_ref) {
|
|
16
16
|
url = _ref.url,
|
17
17
|
widthPadding = _ref.widthPadding,
|
18
18
|
heightPadding = _ref.heightPadding;
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
19
|
+
return new Promise(function (resolve, reject) {
|
20
|
+
try {
|
21
|
+
var overlay = document.createElement('div');
|
22
|
+
overlay.classList.add("".concat(AMSPOPUP_PREFIX, "overlay"), "".concat(AMSPOPUP_PREFIX, "fadeIn"));
|
23
|
+
var modal = document.createElement('div');
|
24
|
+
modal.classList.add("".concat(AMSPOPUP_PREFIX, "modal"), "".concat(AMSPOPUP_PREFIX, "fadeIn"));
|
25
|
+
if (device === 'desktop') {
|
26
|
+
modal.style.width = '600px';
|
27
|
+
modal.style.height = '464px';
|
28
|
+
modal.style.borderRadius = '12px';
|
29
|
+
} else {
|
30
|
+
modal.style.width = "calc(100% - ".concat(2 * widthPadding, "px)");
|
31
|
+
modal.style.height = "calc(100% - ".concat(2 * heightPadding, "px)");
|
32
|
+
modal.style.borderRadius = '8px';
|
33
|
+
}
|
34
|
+
var iframe = document.createElement('iframe');
|
35
|
+
iframe.src = url; // 替换为实际的 URL 地址
|
36
|
+
iframe.style.border = 'none';
|
37
|
+
iframe.style.width = '100%';
|
38
|
+
iframe.style.height = '100%';
|
39
|
+
modal.appendChild(iframe);
|
40
|
+
var body = document.getElementsByTagName('body')[0];
|
41
|
+
body.appendChild(overlay);
|
42
|
+
body.appendChild(modal);
|
43
|
+
resolve(iframe);
|
44
|
+
} catch (error) {
|
45
|
+
reject({
|
46
|
+
title: 'sdk_error_create_pop_up',
|
47
|
+
message: error === null || error === void 0 ? void 0 : error.toString()
|
48
|
+
});
|
49
|
+
}
|
50
|
+
});
|
42
51
|
};
|
43
52
|
|
44
53
|
// 销毁弹窗
|
package/esm/types/index.d.ts
CHANGED
@@ -68,21 +68,14 @@ export interface DeviceIdParameter {
|
|
68
68
|
export interface IcreateComponent {
|
69
69
|
sessionData: string;
|
70
70
|
paymentSessionData?: string;
|
71
|
-
notRedirectAfterComplete?: boolean;
|
72
71
|
appearance?: Record<string, any>;
|
73
|
-
|
72
|
+
notRedirectAfterComplete?: boolean;
|
74
73
|
}
|
75
74
|
export interface IappendIframeNodesParams extends IcreateComponent {
|
76
75
|
paymentSessionMetaData: IpaymentSessionMetaData;
|
77
76
|
renderDisplayType: renderDisplayTypeEnum;
|
78
77
|
selector?: Iselector;
|
79
78
|
}
|
80
|
-
export interface IMerchantAppointParam {
|
81
|
-
storedCard?: IStoredCard;
|
82
|
-
}
|
83
|
-
export interface IStoredCard {
|
84
|
-
needCVV?: boolean;
|
85
|
-
}
|
86
79
|
export interface IbillingAddress {
|
87
80
|
region?: string;
|
88
81
|
address1?: string;
|
@@ -288,7 +281,6 @@ export interface CashierSdkActionQueryRequest {
|
|
288
281
|
paymentSessionConfig?: IpaymentSessionConfig;
|
289
282
|
paymentMethodType?: string;
|
290
283
|
notRedirectAfterComplete?: boolean;
|
291
|
-
merchantAppointParam?: IMerchantAppointParam;
|
292
284
|
extParams?: any;
|
293
285
|
}
|
294
286
|
export interface CashierSubmitPayRequest {
|