@alipay/ams-checkout 0.0.1747907034-dev.2 → 0.0.1747907034-dev.4
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.
@@ -280,19 +280,33 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
|
|
280
280
|
});
|
281
281
|
requester = ServiceProvider.getInstance(this.instanceId).getService('Requester');
|
282
282
|
_context2.prev = 12;
|
283
|
-
_context2.
|
284
|
-
|
283
|
+
_context2.t0 = requester;
|
284
|
+
_context2.t1 = _objectSpread(_objectSpread({}, queryParams), {}, {
|
285
285
|
actionType: 'init',
|
286
286
|
integrationType: 'SDK',
|
287
287
|
sdkVersion: (_this$paymentContext$6 = this.paymentContext.sdkMetaData.sdkVersion) !== null && _this$paymentContext$6 !== void 0 ? _this$paymentContext$6 : '1.0.0'
|
288
|
-
})
|
289
|
-
|
290
|
-
|
291
|
-
|
288
|
+
});
|
289
|
+
_context2.t2 = this.initConfig.environment;
|
290
|
+
_context2.t3 = this.SDK_REQUEST_TIMEOUT;
|
291
|
+
_context2.next = 19;
|
292
|
+
return this.acquireApdidToken();
|
293
|
+
case 19:
|
294
|
+
_context2.t4 = _context2.sent;
|
295
|
+
_context2.t5 = {
|
296
|
+
deviceId: _context2.t4
|
297
|
+
};
|
298
|
+
_context2.t6 = this.hostSign;
|
299
|
+
_context2.t7 = {
|
300
|
+
env: _context2.t2,
|
301
|
+
timeout: _context2.t3,
|
302
|
+
envInfo: _context2.t5,
|
303
|
+
hostSign: _context2.t6,
|
292
304
|
needEnvInfo: true,
|
293
305
|
'Operation-Type': 'com.ipay.iexpcashier.sdkAction.query'
|
294
|
-
}
|
295
|
-
|
306
|
+
};
|
307
|
+
_context2.next = 25;
|
308
|
+
return _context2.t0.request.call(_context2.t0, _context2.t1, _context2.t7);
|
309
|
+
case 25:
|
296
310
|
res = _context2.sent;
|
297
311
|
this.logger.logInfo({
|
298
312
|
title: 'sdk_event_sdkQueryEnd'
|
@@ -302,23 +316,23 @@ export var EasySafePayProcessor = /*#__PURE__*/function () {
|
|
302
316
|
rpcTraceId: res.traceId
|
303
317
|
});
|
304
318
|
return _context2.abrupt("return", res);
|
305
|
-
case
|
306
|
-
_context2.prev =
|
307
|
-
_context2.
|
319
|
+
case 30:
|
320
|
+
_context2.prev = 30;
|
321
|
+
_context2.t8 = _context2["catch"](12);
|
308
322
|
this.logger.logError({
|
309
323
|
title: 'sdk_event_sdkQuery_failed'
|
310
324
|
}, {
|
311
325
|
config: JSON.stringify(queryParams.paymentSessionConfig),
|
312
|
-
errorMessage: JSON.stringify(_context2.
|
326
|
+
errorMessage: JSON.stringify(_context2.t8),
|
313
327
|
requestId: requestBizId,
|
314
|
-
rpcTraceId: _context2.
|
328
|
+
rpcTraceId: _context2.t8 === null || _context2.t8 === void 0 ? void 0 : _context2.t8.traceId
|
315
329
|
});
|
316
330
|
return _context2.abrupt("return", null);
|
317
|
-
case
|
331
|
+
case 34:
|
318
332
|
case "end":
|
319
333
|
return _context2.stop();
|
320
334
|
}
|
321
|
-
}, _callee2, this, [[12,
|
335
|
+
}, _callee2, this, [[12, 30]]);
|
322
336
|
}));
|
323
337
|
function processQuery() {
|
324
338
|
return _processQuery.apply(this, arguments);
|