@alipay/ams-checkout 0.0.1751356895-dev.1 → 0.0.1752029048-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.
@@ -103,23 +103,8 @@ export var handleGooglePay = function handleGooglePay(data) {
|
|
103
103
|
}
|
104
104
|
}
|
105
105
|
});
|
106
|
-
//
|
107
|
-
|
108
|
-
// PD已反馈给Google,Google已确认bug待修复
|
109
|
-
paymentsClient.isReadyToPay(paymentRequest).then(function (response) {
|
110
|
-
if (response.result) {
|
111
|
-
// 设备支持 GooglePay,继续拉起
|
112
|
-
reject({
|
113
|
-
errorCode: 'GOOGLE_PAY_NOT_SUPPORTED'
|
114
|
-
});
|
115
|
-
} else {
|
116
|
-
// 抛错给收银台,目前errorCode未消费
|
117
|
-
reject({
|
118
|
-
errorCode: 'GOOGLE_PAY_NOT_SUPPORTED'
|
119
|
-
});
|
120
|
-
}
|
121
|
-
}).then(function (paymentData) {
|
122
|
-
// 获取到googlePay token后返回消息给app
|
106
|
+
// 获取到googlePay token后返回消息给app
|
107
|
+
paymentsClient.loadPaymentData(paymentRequest).then(function (paymentData) {
|
123
108
|
if (paymentData) {
|
124
109
|
resolve(paymentData);
|
125
110
|
}
|