How to save an Offer to Google Wallet using JWT?

爷,独闯天下 提交于 2019-12-03 16:33:14

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}

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)`

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!