@alipay/ams-checkout 0.0.1704122903-dev.0 → 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.
@@ -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-6517.sggz00b.dev.alipay.net/mgw.htm',
16
- dev: host || 'http://imgs-6517.sggz00b.dev.alipay.net/mgw.htm',
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 || 'GROUP_20230913102142';
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',
@@ -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
- popupWindow: {
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,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";
@@ -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
- popupWindow: {
141
- name: 'popupWindow'
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,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';
@@ -10,8 +10,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
10
10
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
11
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
14
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
15
15
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
16
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
17
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -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) {
@@ -6,8 +6,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
7
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
11
  /**
12
12
  * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
13
13
  *
@@ -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(error === null || error === void 0 ? void 0 : error.toString());
195
+ failCallback && failCallback(JSON.stringify(error));
196
196
  }
197
197
  }
198
198
  /**
package/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
3
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
7
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
8
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -1,7 +1,7 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
4
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  /**
6
6
  * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
7
7
  *
@@ -21,8 +21,7 @@ var getAppVersion = function getAppVersion(_extendInfo) {
21
21
  }
22
22
  };
23
23
  var getFinalProductSceneVersion = function getFinalProductSceneVersion(componentSign, productSceneVersion) {
24
- var _signSupportMap;
25
- var signSupportMap = (_signSupportMap = {}, _defineProperty(_signSupportMap, componentSignEnum.NONE, ['']), _defineProperty(_signSupportMap, componentSignEnum.AUTO_DEBIT_WALLET, ['1.0']), _defineProperty(_signSupportMap, componentSignEnum.CASHIER_PAYMENT_BANK, ['1.0']), _defineProperty(_signSupportMap, componentSignEnum.CASHIER_PAYMENT_CARD, ['1.0']), _defineProperty(_signSupportMap, componentSignEnum.EASY_PAY_WALLET, ['1.0', '2.0']), _defineProperty(_signSupportMap, componentSignEnum.VAULTING_CARD, ['1.0']), _signSupportMap);
24
+ var signSupportMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentSignEnum.NONE, ['']), componentSignEnum.AUTO_DEBIT_WALLET, ['1.0']), componentSignEnum.CASHIER_PAYMENT_BANK, ['1.0']), componentSignEnum.CASHIER_PAYMENT_CARD, ['1.0']), componentSignEnum.EASY_PAY_WALLET, ['1.0', '2.0']), componentSignEnum.VAULTING_CARD, ['1.0']);
26
25
  var supportProductSceneVersion = signSupportMap[componentSign];
27
26
  // 从左到右,从旧到新
28
27
  var isSupport = supportProductSceneVersion.find(function (it) {
@@ -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
@@ -6,8 +6,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
7
7
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
8
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
10
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
11
  /**
12
12
  * Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
13
13
  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -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, POPUP_LOADTIME_LOG_LIMIT } 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 } 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._appVersion = '1.7.1';
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 = 10;
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
- if (window.userAgent.indexOf('miniProgram') > -1) {
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 = 18;
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 = 15;
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 15:
396
- _context2.next = 17;
393
+ case 14:
394
+ _context2.next = 16;
397
395
  return _this5.getDeviceIdAndLog();
398
- case 17:
396
+ case 16:
399
397
  envInfo.deviceId = _context2.sent;
400
- case 18:
398
+ case 17:
401
399
  if (!(componentSignEnum.AUTO_DEBIT_WALLET === _this5._componentSign)) {
402
- _context2.next = 28;
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 = 23;
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 23:
413
+ case 22:
416
414
  if (!(!signType || signType !== 'REDIRECT')) {
417
- _context2.next = 25;
415
+ _context2.next = 24;
418
416
  break;
419
417
  }
420
418
  return _context2.abrupt("return", resolve({
421
419
  success: false
422
420
  }));
423
- case 25:
424
- _context2.next = 27;
421
+ case 24:
422
+ _context2.next = 26;
425
423
  return _this5.getDeviceIdAndLog();
426
- case 27:
424
+ case 26:
427
425
  envInfo.deviceId = _context2.sent;
428
- case 28:
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 30:
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 _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
- }()
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 _callee5(eventContext) {
685
+ var _getDeviceIdAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(eventContext) {
740
686
  var deviceId;
741
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
742
- while (1) switch (_context5.prev = _context5.next) {
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
- _context5.next = 5;
691
+ _context4.next = 5;
746
692
  break;
747
693
  }
748
- _context5.next = 3;
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 = _context5.sent;
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 _context5.stop();
709
+ return _context4.stop();
764
710
  }
765
- }, _callee5, this);
711
+ }, _callee4, this);
766
712
  }));
767
- function getDeviceIdAndCallback(_x5) {
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 _callee6(eventContext) {
776
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
777
- while (1) switch (_context6.prev = _context6.next) {
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
- // TODO 预发前删除window.location.search,这个是用于调试配置的后门
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 _context6.stop();
740
+ return _context5.stop();
798
741
  }
799
- }, _callee6, this);
742
+ }, _callee5, this);
800
743
  }));
801
- function getUserAgentAndCallback(_x6) {
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 _callee7(eventContext) {
752
+ var _returnDataAndCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(eventContext) {
810
753
  var _eventContext$data, targetData;
811
- return _regeneratorRuntime().wrap(function _callee7$(_context7) {
812
- while (1) switch (_context7.prev = _context7.next) {
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 _context7.stop();
769
+ return _context6.stop();
827
770
  }
828
- }, _callee7, this);
771
+ }, _callee6, this);
829
772
  }));
830
- function returnDataAndCallback(_x7) {
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.popupWindow.name) {
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;
@@ -1183,27 +1126,27 @@ var ComponentApp = /*#__PURE__*/function () {
1183
1126
  */
1184
1127
  }, {
1185
1128
  key: "sendRenderEvent",
1186
- value: function () {
1187
- var _sendRenderEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
1129
+ value: (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 _callee8$(_context8) {
1190
- while (1) switch (_context8.prev = _context8.next) {
1132
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
1133
+ while (1) switch (_context7.prev = _context7.next) {
1191
1134
  case 0:
1192
- _context8.prev = 0;
1135
+ _context7.prev = 0;
1193
1136
  if (!(!this._actionQueryPromise || !this._actionSubmitPromise)) {
1194
- _context8.next = 3;
1137
+ _context7.next = 3;
1195
1138
  break;
1196
1139
  }
1197
- return _context8.abrupt("return");
1140
+ return _context7.abrupt("return");
1198
1141
  case 3:
1199
- _context8.next = 5;
1142
+ _context7.next = 5;
1200
1143
  return this._actionQueryPromise;
1201
1144
  case 5:
1202
- res = _context8.sent;
1203
- _context8.next = 8;
1145
+ res = _context7.sent;
1146
+ _context7.next = 8;
1204
1147
  return this._actionSubmitPromise;
1205
1148
  case 8:
1206
- submitRes = _context8.sent;
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
- _context8.next = 16;
1183
+ _context7.next = 16;
1240
1184
  break;
1241
1185
  case 14:
1242
- _context8.prev = 14;
1243
- _context8.t0 = _context8["catch"](0);
1186
+ _context7.prev = 14;
1187
+ _context7.t0 = _context7["catch"](0);
1244
1188
  case 16:
1245
1189
  case "end":
1246
- return _context8.stop();
1190
+ return _context7.stop();
1247
1191
  }
1248
- }, _callee8, this, [[0, 14]]);
1192
+ }, _callee7, this, [[0, 14]]);
1249
1193
  }));
1250
1194
  function sendRenderEvent() {
1251
1195
  return _sendRenderEvent.apply(this, arguments);
@@ -1255,6 +1199,7 @@ var ComponentApp = /*#__PURE__*/function () {
1255
1199
  /**
1256
1200
  * @description close cashier
1257
1201
  */
1202
+ )
1258
1203
  }, {
1259
1204
  key: "cleanContainer",
1260
1205
  value: function cleanContainer() {