@alipay/ams-checkout 0.0.1697942541-dev.0 → 0.0.1697942541-dev.1
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.
@@ -210,10 +210,11 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
210
210
|
value: Date.now()
|
211
211
|
});
|
212
212
|
this._actionQueryPromise = new Promise(function (resolve, reject) {
|
213
|
-
var _this3$_renderParams, _this3$_renderParams2, _this3$_renderParams3;
|
213
|
+
var _this3$_renderParams, _this3$_renderParams2, _this3$_renderParams3, _this3$_renderParams4;
|
214
214
|
var params = {
|
215
215
|
paymentSessionData: _this3._renderParams && ((_this3$_renderParams = _this3._renderParams) === null || _this3$_renderParams === void 0 ? void 0 : _this3$_renderParams.sessionData) || '',
|
216
|
-
paymentSessionConfig: (_this3$_renderParams2 = _this3._renderParams) === null || _this3$_renderParams2 === void 0 || (_this3$_renderParams2 = _this3$_renderParams2.paymentSessionMetaData) === null || _this3$_renderParams2 === void 0 ? void 0 : _this3$_renderParams2.paymentSessionConfig
|
216
|
+
paymentSessionConfig: (_this3$_renderParams2 = _this3._renderParams) === null || _this3$_renderParams2 === void 0 || (_this3$_renderParams2 = _this3$_renderParams2.paymentSessionMetaData) === null || _this3$_renderParams2 === void 0 ? void 0 : _this3$_renderParams2.paymentSessionConfig,
|
217
|
+
notRedirectAfterComplete: ((_this3$_renderParams3 = _this3._renderParams) === null || _this3$_renderParams3 === void 0 ? void 0 : _this3$_renderParams3.notRedirectAfterComplete) === true
|
217
218
|
};
|
218
219
|
/**
|
219
220
|
* @description card
|
@@ -223,10 +224,10 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
223
224
|
}
|
224
225
|
var needDeviceId = false;
|
225
226
|
var waitTime = '3000';
|
226
|
-
var securityConfig = (_this3$
|
227
|
+
var securityConfig = (_this3$_renderParams4 = _this3._renderParams) === null || _this3$_renderParams4 === void 0 || (_this3$_renderParams4 = _this3$_renderParams4.paymentSessionMetaData) === null || _this3$_renderParams4 === void 0 ? void 0 : _this3$_renderParams4.securityConfig;
|
227
228
|
if (componentSignEnum.CASHIER_PAYMENT_CARD === _this3._componentSign && securityConfig) {
|
228
|
-
var _this3$
|
229
|
-
var extendInfo = ((_this3$
|
229
|
+
var _this3$_renderParams5;
|
230
|
+
var extendInfo = ((_this3$_renderParams5 = _this3._renderParams) === null || _this3$_renderParams5 === void 0 || (_this3$_renderParams5 = _this3$_renderParams5.paymentSessionMetaData) === null || _this3$_renderParams5 === void 0 ? void 0 : _this3$_renderParams5.extendInfo) || '';
|
230
231
|
var info = JSON.parse(extendInfo);
|
231
232
|
if ((info === null || info === void 0 ? void 0 : info.cardTokenPay) !== 'false') {
|
232
233
|
needDeviceId = true;
|
@@ -238,13 +239,13 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
238
239
|
* @description easyPay
|
239
240
|
*/
|
240
241
|
if (componentSignEnum.EASY_PAY_WALLET === _this3._componentSign) {
|
241
|
-
var _this3$
|
242
|
+
var _this3$_renderParams6;
|
242
243
|
var _ref2 = params.paymentSessionConfig || {},
|
243
244
|
_ref2$productSceneVer = _ref2.productSceneVersion,
|
244
245
|
productSceneVersion = _ref2$productSceneVer === void 0 ? '' : _ref2$productSceneVer,
|
245
246
|
_ref2$productScene = _ref2.productScene,
|
246
247
|
productScene = _ref2$productScene === void 0 ? '' : _ref2$productScene;
|
247
|
-
var _ref3 = ((_this3$
|
248
|
+
var _ref3 = ((_this3$_renderParams6 = _this3._renderParams) === null || _this3$_renderParams6 === void 0 ? void 0 : _this3$_renderParams6.paymentSessionMetaData) || {},
|
248
249
|
_ref3$action = _ref3.action,
|
249
250
|
_ref3$action2 = _ref3$action === void 0 ? {} : _ref3$action,
|
250
251
|
_ref3$action2$autoDeb = _ref3$action2.autoDebitWithToken,
|
@@ -262,8 +263,8 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
262
263
|
* @description autoDebit
|
263
264
|
*/
|
264
265
|
if (componentSignEnum.AUTO_DEBIT_WALLET === _this3._componentSign) {
|
265
|
-
var _this3$
|
266
|
-
var action = ((_this3$
|
266
|
+
var _this3$_renderParams7, _action$web, _action$wap;
|
267
|
+
var action = ((_this3$_renderParams7 = _this3._renderParams) === null || _this3$_renderParams7 === void 0 || (_this3$_renderParams7 = _this3$_renderParams7.paymentSessionMetaData) === null || _this3$_renderParams7 === void 0 ? void 0 : _this3$_renderParams7.action) || {};
|
267
268
|
var 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;
|
268
269
|
if (signType === 'SMS') {
|
269
270
|
return resolve({
|
package/esm/types/index.d.ts
CHANGED
@@ -256,6 +256,7 @@ export interface CashierSdkActionQueryRequest {
|
|
256
256
|
paymentSessionData: string;
|
257
257
|
paymentSessionConfig?: IpaymentSessionConfig;
|
258
258
|
paymentMethodType?: string;
|
259
|
+
notRedirectAfterComplete?: boolean;
|
259
260
|
extParams?: any;
|
260
261
|
}
|
261
262
|
export interface CashierSdkActionQueryResult {
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@alipay/ams-checkout","version":"0.0.1697942541-dev.
|
1
|
+
{"name":"@alipay/ams-checkout","version":"0.0.1697942541-dev.1","description":"","author":"","main":"esm/index.js","module":"esm/index.js","typings":"esm/index.d.ts","files":["dist","esm","LEGAL.md","LICENSE","README.md"],"scripts":{"build":"father build","ci":"npm run lint","cov":"jest --coverage","format":"prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"","lint":"eslint ./src","test":"jest"},"dependencies":{"axios":"^1.3.4","uuid":"^9.0.0"},"devDependencies":{"@alipay/jshield-apdid":"^2.0.3","@babel/core":"^7.20.7","@babel/preset-env":"^7.20.2","@testing-library/jest-dom":"^5.1.1","@testing-library/react":"^9.5.0","@types/jest":"^29.2.4","@types/uuid":"^9.0.0","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"^5.60.0","babel-jest":"^29.3.1","babel-loader":"^9.1.0","babel-plugin-import":"^1.13.0","eslint":"^8.36.0","eslint-plugin-prettier":"latest","father":"^4.2.3","jest":"^29.5.0","jest-environment-jsdom":"^29.3.1","prettier":"^2.8.4","prettier-plugin-organize-imports":"^3.2.3","prettier-plugin-packagejson":"^2.4.5","ts-jest":"^29.0.3","ts-node":"^10.9.1","typescript":"^4.9.5"},"engines":{},"publishConfig":{"access":"public"}}
|