@alipay/ams-checkout 0.0.1757311345-dev.1 → 0.0.1757400863-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.
@@ -1,6 +1,5 @@
1
1
  import { getDoubleFaUrlFromSession } from "../foundation/utils/web_app_url_utils";
2
2
  import { MODE } from "../constant/easysafepay";
3
- import { queryParse } from "../util";
4
3
  export function getChannelBehavior(notRedirectAfterComplete, paymentSessionMetaData) {
5
4
  var _paymentSessionMetaDa;
6
5
  var allowSubmitPayCallAhead = false;
@@ -37,8 +36,6 @@ export function getChannelBehavior(notRedirectAfterComplete, paymentSessionMetaD
37
36
  };
38
37
  }
39
38
  export function getDoubleFaUrl(params) {
40
- var _queryParse = queryParse(),
41
- _sandbox = _queryParse._sandbox;
42
39
  var instanceId = params.instanceId,
43
40
  paymentMethodType = params.paymentMethodType,
44
41
  paymentSessionData = params.paymentSessionData,
@@ -50,5 +47,5 @@ export function getDoubleFaUrl(params) {
50
47
  var isLandscapeOrientation = false; // Web 不含横屏
51
48
 
52
49
  var baseDoubleFaUrl = getDoubleFaUrlFromSession(paymentSessionObj, env);
53
- return "".concat(baseDoubleFaUrl) + '?' + "scene=cashierResultPage" + '&' + "instanceId=".concat(instanceId) + '&' + "paymentSessionData=".concat(encodeURIComponent(paymentSessionData)) + '&' + "isLandscape=".concat(isLandscapeOrientation ? 'true' : '') + '&' + "pmt=".concat(paymentMethodType) + '&' + "locale=".concat(locale) + '&' + "sdkVersion=".concat(sdkVersion) + '&' + "mode=".concat(MODE.SDK) + '&' + "notRedirectAfterComplete=".concat(notRedirectAfterComplete) + (env === 'sandbox' || _sandbox === 'true' ? '&shadow=true' : '');
50
+ return "".concat(baseDoubleFaUrl) + '?' + "scene=cashierResultPage" + '&' + "instanceId=".concat(instanceId) + '&' + "paymentSessionData=".concat(encodeURIComponent(paymentSessionData)) + '&' + "isLandscape=".concat(isLandscapeOrientation ? 'true' : '') + '&' + "pmt=".concat(paymentMethodType) + '&' + "locale=".concat(locale) + '&' + "sdkVersion=".concat(sdkVersion) + '&' + "mode=".concat(MODE.SDK) + '&' + "&notRedirectAfterComplete=".concat(notRedirectAfterComplete);
54
51
  }
@@ -6,10 +6,10 @@ export declare const sdkVersion: string;
6
6
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
7
7
  * TODO 这里考虑直接换成packagejson.version
8
8
  */
9
- export declare const AMSCheckoutAppVersion = "1.42.1";
10
- export declare const AMSAutoDebitAppVersion = "1.42.1";
11
- export declare const AMSEasyPayAppVersion = "1.42.1";
12
- export declare const AMSCashierPaymentAppVersion = "1.42.1";
13
- export declare const AMSVaultingAppVersion = "1.42.1";
14
- export declare const AMSPaymentElementAppVersion = "1.42.1";
15
- export declare const ADDRESSElementAppVersion = "1.42.1";
9
+ export declare const AMSCheckoutAppVersion = "1.43.1";
10
+ export declare const AMSAutoDebitAppVersion = "1.43.1";
11
+ export declare const AMSEasyPayAppVersion = "1.43.1";
12
+ export declare const AMSCashierPaymentAppVersion = "1.43.1";
13
+ export declare const AMSVaultingAppVersion = "1.43.1";
14
+ export declare const AMSPaymentElementAppVersion = "1.43.1";
15
+ export declare const ADDRESSElementAppVersion = "1.43.1";
@@ -36,10 +36,10 @@ export var sdkVersion = json.version;
36
36
  * @description: 目前应用层分为v1和v2,会存在两个应用版本号不是同步发布的情况。所以需要把默认的应用版本号配置抽离出来。
37
37
  * TODO 这里考虑直接换成packagejson.version
38
38
  */
39
- export var AMSCheckoutAppVersion = '1.42.1'; // 兜底版本号
40
- export var AMSAutoDebitAppVersion = '1.42.1'; // 代扣
41
- export var AMSEasyPayAppVersion = '1.42.1'; // easypay
42
- export var AMSCashierPaymentAppVersion = '1.42.1'; // 收银台(卡、apm)
43
- export var AMSVaultingAppVersion = '1.42.1'; // 绑卡
44
- export var AMSPaymentElementAppVersion = '1.42.1'; // payment element
45
- export var ADDRESSElementAppVersion = '1.42.1'; // address element
39
+ export var AMSCheckoutAppVersion = '1.43.1'; // 兜底版本号
40
+ export var AMSAutoDebitAppVersion = '1.43.1'; // 代扣
41
+ export var AMSEasyPayAppVersion = '1.43.1'; // easypay
42
+ export var AMSCashierPaymentAppVersion = '1.43.1'; // 收银台(卡、apm)
43
+ export var AMSVaultingAppVersion = '1.43.1'; // 绑卡
44
+ export var AMSPaymentElementAppVersion = '1.43.1'; // payment element
45
+ export var ADDRESSElementAppVersion = '1.43.1'; // address element
@@ -12,7 +12,7 @@ import { BusManager, BusMessage } from "../../core/bus";
12
12
  import { SecuritySDKActionEnum } from "../../core/bus/interface";
13
13
  import { getApplePayPaymentSession, submitPayInfo } from "../../service";
14
14
  import { EnvironmentEnum } from "../../types";
15
- import { device, isEmpty, queryParse } from "../../util";
15
+ import { device, isEmpty } from "../../util";
16
16
  import { APPLE_PAY_RECURRING_VERSION, APPLE_PAY_VERSION } from "../applepay/interface";
17
17
  import { getDoubleFaUrlFromSession } from "../../foundation/utils/web_app_url_utils";
18
18
  import { MODE } from "../../constant/easysafepay";
@@ -65,8 +65,6 @@ export function getChannelBehavior(paymentSessionMetaData, notRedirectAfterCompl
65
65
  return undefined;
66
66
  }
67
67
  export function getDoubleFaUrl(params) {
68
- var _queryParse = queryParse(),
69
- _sandbox = _queryParse._sandbox;
70
68
  var instanceId = params.instanceId,
71
69
  paymentMethodType = params.paymentMethodType,
72
70
  paymentSessionData = params.paymentSessionData,
@@ -78,7 +76,7 @@ export function getDoubleFaUrl(params) {
78
76
  var isLandscapeOrientation = false; // Web 不含横屏
79
77
 
80
78
  var baseDoubleFaUrl = getDoubleFaUrlFromSession(paymentSessionObj, env);
81
- return "".concat(baseDoubleFaUrl) + '?' + "scene=cashierResultPage" + '&' + "instanceId=".concat(instanceId) + '&' + "paymentSessionData=".concat(encodeURIComponent(paymentSessionData)) + '&' + "isLandscape=".concat(isLandscapeOrientation ? 'true' : '') + '&' + "pmt=".concat(paymentMethodType) + '&' + "locale=".concat(locale) + '&' + "mode=".concat(MODE.SDK) + '&' + "sdkVersion=".concat(sdkVersion) + '&' + "notRedirectAfterComplete=".concat(notRedirectAfterComplete) + (env === 'sandbox' || _sandbox === 'true' ? '&shadow=true' : '');
79
+ return "".concat(baseDoubleFaUrl) + '?' + "scene=cashierResultPage" + '&' + "instanceId=".concat(instanceId) + '&' + "paymentSessionData=".concat(encodeURIComponent(paymentSessionData)) + '&' + "isLandscape=".concat(isLandscapeOrientation ? 'true' : '') + '&' + "pmt=".concat(paymentMethodType) + '&' + "locale=".concat(locale) + '&' + "mode=".concat(MODE.SDK) + '&' + "sdkVersion=".concat(sdkVersion) + '&' + "&notRedirectAfterComplete=".concat(notRedirectAfterComplete);
82
80
  }
83
81
  export var handleGooglePay = function handleGooglePay(data) {
84
82
  return new Promise(function (resolve, reject) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1757311345-dev.1",
3
+ "version": "0.0.1757400863-dev.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",