@alipay/ams-checkout 0.0.1756796178-dev.2 → 0.0.1756796178-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.
@@ -666,11 +666,18 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
666
666
|
}).send();
|
667
667
|
// fix: 泡泡玛特CVV场景,actionQuery报错会进入错误兜底页,导致CVV页面占用大幅空间
|
668
668
|
if (ComponentSignEnum.CASHIER_PAYMENT_CARD === _this5._componentSign && !(res !== null && res !== void 0 && res.success)) {
|
669
|
+
var _res$errorActions;
|
669
670
|
// 通用操作:抛CREATECOMPONENT_ERROR错误码给商户,商户升级到新版本需要处理CREATECOMPONENT_ERROR逻辑
|
670
|
-
|
671
|
+
var createComponentError = {
|
671
672
|
code: ERRORMESSAGE.CREATECOMPONENT_ERROR.code,
|
672
673
|
message: res === null || res === void 0 ? void 0 : res.errorMessage
|
673
|
-
}
|
674
|
+
};
|
675
|
+
_this5.dispatchToSDK(EVENT.error.name, createComponentError);
|
676
|
+
if ((res === null || res === void 0 || (_res$errorActions = res.errorActions) === null || _res$errorActions === void 0 ? void 0 : _res$errorActions.showType) === 'NONE') {
|
677
|
+
// 抛错销毁SDK,不展示错误页面
|
678
|
+
reject(createComponentError);
|
679
|
+
return;
|
680
|
+
}
|
674
681
|
}
|
675
682
|
resolve(res);
|
676
683
|
}).catch(function (err) {
|
package/esm/types/index.d.ts
CHANGED
@@ -590,6 +590,7 @@ export interface CashierSdkActionQueryResult {
|
|
590
590
|
extendInfo?: {
|
591
591
|
channelOrderId?: string;
|
592
592
|
};
|
593
|
+
errorActions?: Record<string, string>;
|
593
594
|
}
|
594
595
|
export interface CashierSdkActionQuerySessionResult extends IPaymentSessionMetaData {
|
595
596
|
success: boolean;
|