@alipay/ams-checkout 0.0.1745808793-dev.3 → 0.0.1745808793-dev.5

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.
@@ -196,37 +196,40 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
196
196
  submitRes = _ref2[2],
197
197
  _webLaunchRes = _ref2[3];
198
198
  var logMetaData = _this.logger.getLogConfig().mdata;
199
+ var data = {
200
+ sessionResult: (_this$paymentContext = _this.paymentContext) === null || _this$paymentContext === void 0 ? void 0 : _this$paymentContext.paymentSessionObj,
201
+ submitResult: submitRes,
202
+ paymentSessionData: (_this$paymentContext2 = _this.paymentContext) === null || _this$paymentContext2 === void 0 ? void 0 : _this$paymentContext2.paymentSessionId,
203
+ heightOfVisible: Math.max(window.changingPageHeight, window.innerHeight),
204
+ renderDisplayType: _this.paymentContext.displayInfo.type,
205
+ appearance: (_this$paymentContext$ = _this.paymentContext.displayInfo) === null || _this$paymentContext$ === void 0 ? void 0 : _this$paymentContext$.appearance,
206
+ notRedirectAfterComplete: ((_this$paymentContext$2 = _this.paymentContext.startBizFlowOptions.submitPayRequestExtra) === null || _this$paymentContext$2 === void 0 ? void 0 : _this$paymentContext$2.notRedirectAfterComplete) === true,
207
+ isAppWebview: _this.paymentContext.startBizFlowOptions.isAppWebview,
208
+ merchantAppointParam: (_this$paymentContext$3 = _this.paymentContext.startBizFlowOptions.submitPayRequestExtra) === null || _this$paymentContext$3 === void 0 ? void 0 : _this$paymentContext$3.merchantAppointParam,
209
+ allowSubmitPayCallAhead: _this.allowSubmitPayCallAhead,
210
+ doubleFaUrl: getDefaultEasySafePayPageUrl(ESP_PAGE_NAME.DOUBLE_FA, _this.initConfig.environment),
211
+ envInfo: {
212
+ screenHeight: screen.height,
213
+ screenWidth: screen.width
214
+ },
215
+ logMetaData: _objectSpread(_objectSpread({
216
+ trackId: logMetaData.requestSeq,
217
+ platform: logMetaData.platform,
218
+ firstLogTime: logMetaData.firstLogTime
219
+ }, ((_this$paymentContext$4 = _this.paymentContext.paymentSessionObj) === null || _this$paymentContext$4 === void 0 ? void 0 : _this$paymentContext$4.paymentSessionConfig) || {}), {}, {
220
+ renderDisplayType: logMetaData.renderDisplayType,
221
+ sdkVersion: logMetaData.sdkVersion,
222
+ merchantId: logMetaData.merchantId,
223
+ instanceId: logMetaData.instanceId,
224
+ paymentMethodType: logMetaData.paymentMethodType
225
+ })
226
+ };
227
+ if (queryRes) {
228
+ data.queryResult = queryRes;
229
+ }
199
230
  _this.eventCenter.dispatchToApp({
200
231
  event: 'renderComponent',
201
- data: {
202
- sessionResult: (_this$paymentContext = _this.paymentContext) === null || _this$paymentContext === void 0 ? void 0 : _this$paymentContext.paymentSessionObj,
203
- queryResult: queryRes,
204
- submitResult: submitRes,
205
- paymentSessionData: (_this$paymentContext2 = _this.paymentContext) === null || _this$paymentContext2 === void 0 ? void 0 : _this$paymentContext2.paymentSessionId,
206
- heightOfVisible: Math.max(window.changingPageHeight, window.innerHeight),
207
- renderDisplayType: _this.paymentContext.displayInfo.type,
208
- appearance: (_this$paymentContext$ = _this.paymentContext.displayInfo) === null || _this$paymentContext$ === void 0 ? void 0 : _this$paymentContext$.appearance,
209
- notRedirectAfterComplete: ((_this$paymentContext$2 = _this.paymentContext.startBizFlowOptions.submitPayRequestExtra) === null || _this$paymentContext$2 === void 0 ? void 0 : _this$paymentContext$2.notRedirectAfterComplete) === true,
210
- isAppWebview: _this.paymentContext.startBizFlowOptions.isAppWebview,
211
- merchantAppointParam: (_this$paymentContext$3 = _this.paymentContext.startBizFlowOptions.submitPayRequestExtra) === null || _this$paymentContext$3 === void 0 ? void 0 : _this$paymentContext$3.merchantAppointParam,
212
- allowSubmitPayCallAhead: _this.allowSubmitPayCallAhead,
213
- doubleFaUrl: getDefaultEasySafePayPageUrl(ESP_PAGE_NAME.DOUBLE_FA, _this.initConfig.environment),
214
- envInfo: {
215
- screenHeight: screen.height,
216
- screenWidth: screen.width
217
- },
218
- logMetaData: _objectSpread(_objectSpread({
219
- trackId: logMetaData.requestSeq,
220
- platform: logMetaData.platform,
221
- firstLogTime: logMetaData.firstLogTime
222
- }, ((_this$paymentContext$4 = _this.paymentContext.paymentSessionObj) === null || _this$paymentContext$4 === void 0 ? void 0 : _this$paymentContext$4.paymentSessionConfig) || {}), {}, {
223
- renderDisplayType: logMetaData.renderDisplayType,
224
- sdkVersion: logMetaData.sdkVersion,
225
- merchantId: logMetaData.merchantId,
226
- instanceId: logMetaData.instanceId,
227
- paymentMethodType: logMetaData.paymentMethodType
228
- })
229
- }
232
+ data: data
230
233
  });
231
234
  }).catch(function (error) {
232
235
  _this.eventCenter.emit(EVENT.destroy.name, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1745808793-dev.3",
3
+ "version": "0.0.1745808793-dev.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",
@@ -21,7 +21,8 @@
21
21
  "cov": "jest --coverage",
22
22
  "format": "prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"",
23
23
  "lint": "eslint ./src",
24
- "test": "jest"
24
+ "test": "jest --silent",
25
+ "tsc": "tsc --noEmit"
25
26
  },
26
27
  "dependencies": {
27
28
  "axios": "^1.3.4",