Android中的Google Pay API集成 [英] Google Pay API integration in Android

查看:710
本文介绍了Android中的Google Pay API集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试探索Google Pay API集成.

I am trying to explore Google Pay API integration.

我已经阅读了所提供的文件.

I have gone through the document provided.

官方文档.

,还从GITHUB GITHUB LINK

and also downloaded the sample from GITHUB GITHUB LINK

我无法完全理解相同的过程,例如,如果我想在测试环境中运行它,有什么要求?

I am unable to understand fully procedure for the same, like If I want to run it in test environment what are requirements?

1)我是否需要在某个地方创建帐户或在控制台上启用任何api?

1) Do I need to create account somewhere or enabling any api on console?

2)< DIRECT_TOKENIZATION_PUBLIC_KEY >

3)我可以简要了解文档中提到的受支持的处理器和网关吗?

3) Can I get brief idea for supported processors and gateways mentioned in doc.?

4)运行演示和测试功能的主要要求是什么?

4) What are the key requirements to run the demo and test the functionality?

引用任何适当的文档或博客也将有所帮助.

Referring any proper documentations or blog will also be helpful.

推荐答案

您尝试过什么,目前遇到的问题是什么?

What have you tried, and what is the issue that you are having at the moment?

我注意到您的问题引用了DIRECT集成,通常不建议这样做.如果您已经有支持Google Pay的付款处理器,那么建议因为将要满足的其他PCI DCSS要求.

I notice that your question references DIRECT integration and is generally not advised. If you've already got a payment processor which supports Google Pay, then the advice is to follow their instructions instead of DIRECT integration because of the additional PCI DCSS requirements that will be placed on you to go to production.

如果完成直接 tokenizationSpecification类型集成,您必须每年通过Google Pay开发人员资料轮换您的公共加密密钥,并向Google提供PCI证明. PCI认证可以由经 PCI安全标准委员会认证的第三方或合格的安全评估人员提交并获得批准由批准的供应商

If completing a DIRECT tokenizationSpecification type integration, you must annually rotate your public encryption key through the Google Pay Developer Profile and provide PCI Attestation to Google. PCI Attestation can be submitted by a third-party or Qualified Security Assessor certified by the PCI Security Standards Council, and approved by an Approved Vendor or Qualified Assessor.


要回答有关测试环境的特定问题,请参见下文.


To answer your specific questions about the test environment, see below.

1)我是否需要在某个地方创建帐户或在控制台上启用任何api?

1) Do I need to create account somewhere or enabling any api on console?

否,您不需要商家帐户,但是,与您进行测试的用户将需要一个Google帐户,该帐户必须在其

No, you don't need a merchant account, however, the user you are testing with will require a Google account with at least one payment method configured in their Google Pay account

2)<DIRECT_TOKENIZATION_PUBLIC_KEY>

是,请参阅以下内容: https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography#using-openssl

Yes, refer to the following: https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography#using-openssl

特别是:

openssl ecparam -name prime256v1 -genkey -noout -out key.pem

openssl ec -in key.pem -pubout -text -noout 2> /dev/null | grep "pub:" -A5 | sed 1d | xxd -r -p | base64 | paste -sd "\0" -

或者,您可以使用以下密钥进行测试:BOdoXP+9Aq473SnGwg3JU1aiNpsd9vH2ognq4PtDtlLGa3Kj8TPf+jaQNPyDSkh3JUhiS0KyrrlWhAgNZKHYF2Y=

Alternatively, you can use the following key for testing purposes: BOdoXP+9Aq473SnGwg3JU1aiNpsd9vH2ognq4PtDtlLGa3Kj8TPf+jaQNPyDSkh3JUhiS0KyrrlWhAgNZKHYF2Y=

3)我可以简要了解文档中提到的受支持的处理器和网关吗?

有关支持的处理器列表,请参阅以下内容: https://developers.google. com/pay/api#participating-processors

Refer to the following for supported list of processors: https://developers.google.com/pay/api#participating-processors

4)运行演示和测试功能的主要要求是什么?

4) What are the key requirements to run the demo and test the functionality?

除了拥有Google帐户(从第一个答案开始)并具有构建,编译和运行Android应用程序的功能外,对运行和测试该应用程序没有任何其他特殊要求.

Other than a Google account (from 1st answer) and the ability to build, compile and run an Android app, there shouldn't be any additional special requirements to run and test it out.

这篇关于Android中的Google Pay API集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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