@alipay/ams-checkout 0.0.1744698677-dev.1 → 0.0.1744698677-dev.3
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.
@@ -349,9 +349,12 @@ var ElementController = /*#__PURE__*/function () {
|
|
349
349
|
}, {
|
350
350
|
key: "sendReady",
|
351
351
|
value: function sendReady(type, options) {
|
352
|
-
var _this$elementProcesso, _paymentResult$origin;
|
352
|
+
var _this$elementProcesso, _paymentSessionObj$pa, _paymentResult$origin;
|
353
353
|
var paymentResult = (_this$elementProcesso = this.elementProcessors[ElementType.payment]) === null || _this$elementProcesso === void 0 ? void 0 : _this$elementProcesso.getObtainDataRes();
|
354
|
-
|
354
|
+
var paymentContext = this.elementContainer.getPaymentContext();
|
355
|
+
var paymentSessionObj = paymentContext.paymentSessionObj;
|
356
|
+
var isConnect = paymentSessionObj.connectFactor.enableConnect && ((_paymentSessionObj$pa = paymentSessionObj.paymentSessionConfig) === null || _paymentSessionObj$pa === void 0 ? void 0 : _paymentSessionObj$pa.productScene) === ProductSceneEnum.ELEMENT_PAYMENT;
|
357
|
+
if (!(paymentResult !== null && paymentResult !== void 0 && (_paymentResult$origin = paymentResult.originActionQueryResult) !== null && _paymentResult$origin !== void 0 && _paymentResult$origin.success) && isConnect) {
|
355
358
|
var _this$options$onEvent, _this$options;
|
356
359
|
clearTimeout(this.initTimeout);
|
357
360
|
this.changeLoading(false);
|
@@ -363,7 +366,6 @@ var ElementController = /*#__PURE__*/function () {
|
|
363
366
|
this.destroy();
|
364
367
|
return;
|
365
368
|
}
|
366
|
-
var paymentContext = this.elementContainer.getPaymentContext();
|
367
369
|
var params = _objectSpread(_objectSpread({}, options), {}, {
|
368
370
|
originActionQueryResult: paymentResult === null || paymentResult === void 0 ? void 0 : paymentResult.originActionQueryResult,
|
369
371
|
originOneAccountQueryResult: paymentResult === null || paymentResult === void 0 ? void 0 : paymentResult.originOneAccountQueryResult,
|
@@ -74,6 +74,7 @@ export var ContainerService = /*#__PURE__*/function () {
|
|
74
74
|
this.webApp = webApp;
|
75
75
|
this.displayInfo = displayInfo;
|
76
76
|
webApp.src = url;
|
77
|
+
webApp.allow = 'payment';
|
77
78
|
this.eventCenter.addIFrame(webApp);
|
78
79
|
if (webApp.src.includes('?')) {
|
79
80
|
this.popupManager.setPopupUrlQuery(webApp.src.split('?')[1]);
|