Google 在 Android 申请中支付 Api 1 vs Api 2
Google Pay in Android application Api 1 vs Api 2
我已经在 Stripe 网站上完成了这个集成教程,其中显示了 Google 我假设在 Api 版本 1 中的支付集成。
https://stripe.com/docs/mobile/android/google-pay
但现在我发现,从 2018 年 7 月开始,Google Pay 有了新的 Api 版本 2。
https://developers.google.com/pay/api/android/guides/tutorial
我可以看到这个新 api 更多地 JSON 基于使用字符串键值而不是强类型约束。
Api 版本 1 是否已弃用?
是否有 Api 版本 2 等同于 Android?
Stripe 会支持 Api 版本 2 吗?
如果我继续使用 Api 版本 1,我会失去什么?例如,3D 安全卡是否有效?或者从客户的角度来看版本号无关紧要?
我可以看到这是一些新东西:
private static JSONArray getAllowedCardAuthMethods() {
return new JSONArray()
.put("PAN_ONLY")
.put("CRYPTOGRAM_3DS");
}
Is Api version 1 deprecated?
没有。至少还没有。
Is there Api version 2 strongly-typed equivalent for Android?
当前的 API 提供对象构建器和 json 例如IsReadyToPayRequest.newBuilder()
或 IsReadyToPayRequest.fromJson()
,但是 json 是新的首选方法并提供额外的功能:
"In the previous version of the Google Pay API, the Builder object we used only supported cards as a form of payment for IsReadyToPayRequest or PaymentDataRequest. In the latest version of the Google Pay API, the CARD payment method is only one of multiple possible payment methods for IsReadyToPayRequest or PaymentDataRequest."
What I lose if I stay with Api version 1? Will for instance 3D secure
cards work? or version number doesn't matter from client perspective?
https://developers.google.com/pay/api/android/guides/resources/update-to-latest-version
详细说明构建器和 json API 之间的转换,包括标记化的卡片:
If your app supported PAYMENT_METHOD_TOKENIZED_CARD:
Add "CRYPTOGRAM_3DS" to the allowedAuthMethods array.
所以 3DS was/is 可以通过 WalletConstants.PAYMENT_METHOD_TOKENIZED_CARD
与构建器 API 一起使用
我已经在 Stripe 网站上完成了这个集成教程,其中显示了 Google 我假设在 Api 版本 1 中的支付集成。 https://stripe.com/docs/mobile/android/google-pay
但现在我发现,从 2018 年 7 月开始,Google Pay 有了新的 Api 版本 2。
https://developers.google.com/pay/api/android/guides/tutorial
我可以看到这个新 api 更多地 JSON 基于使用字符串键值而不是强类型约束。
Api 版本 1 是否已弃用? 是否有 Api 版本 2 等同于 Android? Stripe 会支持 Api 版本 2 吗? 如果我继续使用 Api 版本 1,我会失去什么?例如,3D 安全卡是否有效?或者从客户的角度来看版本号无关紧要?
我可以看到这是一些新东西:
private static JSONArray getAllowedCardAuthMethods() {
return new JSONArray()
.put("PAN_ONLY")
.put("CRYPTOGRAM_3DS");
}
Is Api version 1 deprecated?
没有。至少还没有。
Is there Api version 2 strongly-typed equivalent for Android?
当前的 API 提供对象构建器和 json 例如IsReadyToPayRequest.newBuilder()
或 IsReadyToPayRequest.fromJson()
,但是 json 是新的首选方法并提供额外的功能:
"In the previous version of the Google Pay API, the Builder object we used only supported cards as a form of payment for IsReadyToPayRequest or PaymentDataRequest. In the latest version of the Google Pay API, the CARD payment method is only one of multiple possible payment methods for IsReadyToPayRequest or PaymentDataRequest."
What I lose if I stay with Api version 1? Will for instance 3D secure cards work? or version number doesn't matter from client perspective?
https://developers.google.com/pay/api/android/guides/resources/update-to-latest-version 详细说明构建器和 json API 之间的转换,包括标记化的卡片:
If your app supported PAYMENT_METHOD_TOKENIZED_CARD:
Add "CRYPTOGRAM_3DS" to the allowedAuthMethods array.
所以 3DS was/is 可以通过 WalletConstants.PAYMENT_METHOD_TOKENIZED_CARD