@alipay/ams-checkout 0.0.1757298389-dev.23 → 0.0.1757298389-dev.24
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.
- package/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/index.d.ts +1 -0
- package/esm/config/index.js +2 -1
- package/esm/core/component/element/elementProcessor/addressProcessor.js +2 -3
- package/esm/core/component/element/elementProcessor/authProcessor.js +2 -3
- package/esm/core/component/element/elementProcessor/paymentProcessor.js +3 -4
- package/package.json +1 -1
package/esm/config/index.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export declare const AMSCashierPaymentAppVersion = "1.45.0";
|
|
|
13
13
|
export declare const AMSVaultingAppVersion = "1.45.0";
|
|
14
14
|
export declare const AMSPaymentElementAppVersion = "1.45.0";
|
|
15
15
|
export declare const ADDRESSElementAppVersion = "1.45.0";
|
|
16
|
+
export declare const AUTHElementAppVersion = "1.45.0";
|
package/esm/config/index.js
CHANGED
|
@@ -42,4 +42,5 @@ export var AMSEasyPayAppVersion = '1.45.0'; // easypay
|
|
|
42
42
|
export var AMSCashierPaymentAppVersion = '1.45.0'; // 收银台(卡、apm)
|
|
43
43
|
export var AMSVaultingAppVersion = '1.45.0'; // 绑卡
|
|
44
44
|
export var AMSPaymentElementAppVersion = '1.45.0'; // payment element
|
|
45
|
-
export var ADDRESSElementAppVersion = '1.45.0'; // address element
|
|
45
|
+
export var ADDRESSElementAppVersion = '1.45.0'; // address element
|
|
46
|
+
export var AUTHElementAppVersion = '1.45.0'; // auth element
|
|
@@ -21,7 +21,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
21
21
|
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; } }
|
|
22
22
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
23
23
|
import { parseSessionData } from "../..";
|
|
24
|
-
import
|
|
24
|
+
import { ADDRESSElementAppVersion } from "../../../../config";
|
|
25
25
|
import { ProductSceneEnum } from "../../../../types";
|
|
26
26
|
import { generateIframeSrc as _generateIframeSrc } from "../util";
|
|
27
27
|
import BaseElementProcessor from "./baseElementProcessor";
|
|
@@ -95,8 +95,7 @@ var AddressProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
|
|
|
95
95
|
environment = _this$options.env.environment,
|
|
96
96
|
analytics = _this$options.analytics,
|
|
97
97
|
locale = _this$options.locale;
|
|
98
|
-
var
|
|
99
|
-
var pageUrl = "/element-address/".concat(version, "/pages/address/index.html");
|
|
98
|
+
var pageUrl = "/element-address/".concat(ADDRESSElementAppVersion, "/pages/address/index.html");
|
|
100
99
|
return _generateIframeSrc({
|
|
101
100
|
paymentSession: paymentSession,
|
|
102
101
|
paymentSessionObj: paymentSessionObj,
|
|
@@ -17,8 +17,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
|
|
|
17
17
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
18
|
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; } }
|
|
19
19
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
20
|
+
import { AUTHElementAppVersion } from "../../../../config";
|
|
20
21
|
import { parseSessionData } from "../../index";
|
|
21
|
-
import PackageJson from "../../../../../package.json";
|
|
22
22
|
import { generateIframeSrc as _generateIframeSrc } from "../util";
|
|
23
23
|
import BaseElementProcessor from "./baseElementProcessor";
|
|
24
24
|
var AuthProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
|
|
@@ -69,8 +69,7 @@ var AuthProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
|
|
|
69
69
|
environment = _this$options.env.environment,
|
|
70
70
|
analytics = _this$options.analytics,
|
|
71
71
|
locale = _this$options.locale;
|
|
72
|
-
var
|
|
73
|
-
var pageUrl = "/auth-element/".concat(version, "/pages/element_auth/index.html");
|
|
72
|
+
var pageUrl = "/auth-element/".concat(AUTHElementAppVersion, "/pages/element_auth/index.html");
|
|
74
73
|
return _generateIframeSrc({
|
|
75
74
|
paymentSession: paymentSession,
|
|
76
75
|
paymentSessionObj: paymentSessionObj,
|
|
@@ -23,7 +23,6 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
23
23
|
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; }
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
25
25
|
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); }
|
|
26
|
-
import PackageJson from "../../../../../package.json";
|
|
27
26
|
import { EVENT } from "../../../../constant";
|
|
28
27
|
import { ServiceProvider } from "../../../../foundation/service";
|
|
29
28
|
import { ApplePaySdk, handleGooglePay, isSkipRenderPaymentMethod } from "../../../../plugin/component/channel";
|
|
@@ -33,6 +32,7 @@ import { parseSessionData } from "../../index";
|
|
|
33
32
|
import { oneAccount, sdkAction } from "../mock";
|
|
34
33
|
import { generateIframeSrc as _generateIframeSrc, isElementPad, isElementPC } from "../util";
|
|
35
34
|
import BaseElementProcessor from "./baseElementProcessor";
|
|
35
|
+
import { AMSPaymentElementAppVersion } from "../../../../config";
|
|
36
36
|
var logger = new Logger(LogConfig, true);
|
|
37
37
|
var PaymentProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
|
|
38
38
|
_inherits(PaymentProcessor, _BaseElementProcessor);
|
|
@@ -215,13 +215,12 @@ var PaymentProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
|
|
|
215
215
|
locale = _this$options.locale;
|
|
216
216
|
var _ref3 = paymentSessionObj || {},
|
|
217
217
|
extendInfo = _ref3.extendInfo;
|
|
218
|
-
var
|
|
219
|
-
var pageUrl = "/elements/".concat(version, "/pages/element_payment/index.html");
|
|
218
|
+
var pageUrl = "/elements/".concat(AMSPaymentElementAppVersion, "/pages/element_payment/index.html");
|
|
220
219
|
try {
|
|
221
220
|
var _JSON$parse;
|
|
222
221
|
var expressCheckout = JSON.parse((_JSON$parse = JSON.parse(extendInfo)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.expressCheckout);
|
|
223
222
|
if (expressCheckout) {
|
|
224
|
-
pageUrl = "/elements/".concat(
|
|
223
|
+
pageUrl = "/elements/".concat(AMSPaymentElementAppVersion, "/pages/express_checkout/index.html");
|
|
225
224
|
}
|
|
226
225
|
} catch (error) {}
|
|
227
226
|
var url = _generateIframeSrc({
|