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