现在我处于以下情况:我们的服务器为当前用户卡发送准备就绪的 JWT 哈希,但似乎无法从 Android 应用程序按钮打开“保存到 Android 支付”网址:有仅web应用集成教程:https://developers.google.com/save-to-android-pay/reference/s2w-reference
所以,我必须以某种方式呈现这个 html:<g:savetoandroidpay jwt="JWT" onsuccess="successHandler" onfailure="failureHandler" />
进入按钮并处理来自 Java 的 javascript 回调。
或者,也许还有其他方法?
最佳答案
Uri androidPayUri = Uri.parse("https://www.android.com/payapp/savetoandroidpay/" + jwt);
Intent intent = new Intent(Intent.ACTION_VIEW, androidPayUri);
...
您可以在此处找到要测试的 JWT 示例:
https://developers.google.com/save-to-android-pay/reference/s2w-reference
关于java - 如何从 android 应用程序打开 "save to android pay"url?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43950443/