如何使用JWT将要约保存到Google电子钱包? [英] How to save an Offer to Google Wallet using JWT?

查看:130
本文介绍了如何使用JWT将要约保存到Google电子钱包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我想将报价保存到"Google电子钱包".由于我在进行RND并遇到

Actually I want to save an offer to 'Google Wallet'. As I haven't worked on it before I did some RND and came across this documentation. In this documentation they are creating Offer class object at Android side but, in my case the Offer class object is creating at our back-end server and I'm getting ready-made JWT token just by hitting one API to our back-end server, now using that JWT token I want to save the offer to the 'Google-Wallet'. Now my question is, is it possible? if Yes please tell me How? Also please let me know if I can provide more details so that you can understand my problem. Thank you

推荐答案

我一直在 PassNinja 上进行研究. .对于您的用例,最方便的方法是使用JWT链接和意图. 填写您生成的JWT和类ID: https://www.android.com/{classid}/savetoandroidpay/{jwt_generated}

I have been working on this at PassNinja. The most convenient method for your use case would be to use the JWT link and intent. Fill in your generated JWT and class ID: https://www.android.com/{classid}/savetoandroidpay/{jwt_generated}

使用ACTION_VIEW意图打开保存到Google Pay"按钮中的深层链接. 确保触发意图的按钮使用品牌准则.

Use an ACTION_VIEW intent to open the deep link from the Save to Google Pay button. Make sure that the button that triggers the intent uses the Brand guidelines.

Intent webIntent = new Intent(Intent.ACTION_VIEW,
        Uri.parse("https://www.android.com/payapp/savetoandroidpay/" + JWT));
context.startActivity(webIntent)`

有关深层链接和保存到Google Pay的更多信息,请此处是视频.

For more info on deep links and Save to Google Pay, here is a video.

这篇关于如何使用JWT将要约保存到Google电子钱包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆