Save credit card to Google Pay

帅比萌擦擦* 提交于 2020-01-03 03:26:06

问题


There are several applications that allow to save a new credit card to a Google Pay. Upon pressing the button, the Google Pay opens with a credit card data pre-filled. However, I couldn't find any mentions of Intents or any API that allow to do that. How do I implement a "save credit/debit card to Google Pay" functionality inside an Android app?


回答1:


I don't think what you are after is directly supported.

One question that I have for you is why do you want to save the card? Is it for the purpose of making a payment or for storing it for later use?

If the purpose is to make a payment, then I would suggest integrating with the Google Pay Android APIs which will give the user the option to either select from an existing set of payment methods or add and save a new payment method for immediate use.

If the purpose is to save a card for later use and you also happen to be a card issuer, then you can achieve this with push provisioning. See answer here.




回答2:


In order to save a credit card detail, your app needs to comply with PCI compliance i.e. Payment Card Industry Data Security Standard (PCI DSS).

Here is checklist for PCI standards : https://www.akamai.com/us/en/resources/pci-compliance-checklist.jsp

In short, its not easy. Big industries do that and develop their own APIs and it takes thousands of dollars every month to remain compliant. Therefore, You will hardly find any open source API for saving credit card information.



来源:https://stackoverflow.com/questions/54576819/save-credit-card-to-google-pay

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