@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
- // 使用GooglePay官方API判断设备是否支持,目前WebView场景有bug,不支持的WebView仍然显示支持
107
- // UA判断方案和isReadyToPay方案PD决策使用【isReadyToPay方案】
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1751356895-dev.1",
3
+ "version": "0.0.1752029048-dev.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",