Google pay Developer帐户在哪里,以及如何生成要在其中上传的公共密钥? [英] Where is Google pay Developer account and how to generate public key to upload in it?

查看:891
本文介绍了Google pay Developer帐户在哪里,以及如何生成要在其中上传的公共密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有人在整个堆栈上溢出,没有人对此有任何答案,我不知道为什么,没有人在Android上使用Google Pay吗?? .根据Google的说法:

No One on Whole of Stack overflow no one has answer to this, I dont know why , has no one worked with Google pay on android?? . According to google :

关注此链接:

https://开发人员. google.com/pay/api/android/guides/resources/payment-data-cryptography#key-rotation

它讨论了密钥轮换,这是在您的App中使用DIRECT集成时必不可少的,这意味着如果您不直接/明确地使用支付处理器.

it talks about key rotation which is mandatory when using DIRECT integration in your App , means if you are not using a payment processor directly/explicitly.

这是它的意思:

按键旋转: 如果您通过直接集成直接在服务器上解密付款方式令牌,则必须旋转密钥 每年.

Key rotation : If you decrypt a payment method token directly on your servers with direct integration, then you must rotate the keys annually.

要旋转加密密钥:

  1. 使用OpenSSL生成新的密钥对.
  2. 打开您的Google Pay开发人员 使用用于管理您的Google帐户登录的个人资料 Google Play控制台中的应用程序,在公共加密密钥"部分下, 选择添加加密密钥按钮.然后,选择公共 加密密钥"文本输入字段,然后添加您新生成的公共 以未经压缩的点格式对Base64编码的密钥.单击保存.
  1. Use OpenSSL to generate a new key pair.
  2. Open your Google Pay Developer Profile while signed in with the Google Account used to manage your app in Google Play Console Under the "Public encryption keys" section, select the Add an encryption key button. Then, select the "Public encryption key" text input field and add your newly generated public key Base64-encoded in uncompressed point format. Click Save.

通过上面的链接查看下面的屏幕截图.谁能点击这个链接,然后告诉我为什么需要您而不是Google Pay开发人员帐户来支持页面?

问题:

  1. 如何创建Google Pay开发者帐户?我需要付款吗?我的公司已经有一个Google Pay控制台帐户(您可以在其中管理应用程序并将其上传到goole Play商店)

  1. How to create a google pay developer account ? Do i need to pay ? My company already has a google pay console account ( Where you manage and upload apps to goole play store )

我在哪里以及如何生成公钥?

Where and how will i generate public key ?

将通过赏识性的示例和屏幕截图来说明这些步骤.

The one who will explain these steps with clear example and screenshots will be given bounty.

编辑 好的,我已经在Mac上使用终端应用程序生成了公钥和私钥.这是屏幕截图:

EDIT Okay I have generated public and private key using Terminal application on my mac .. Here is the screenshot :

现在,我需要将此密钥上载到Google Pay开发者帐户,并且我看不到任何链接或任何教程来描述如果必须将google-Pay集成到我的android应用程序中该如何创建密钥.

Now I need to upload this key into the Google Pay developer account and I can't see any link or any tutorial describing how can i create one if i have to integrate google-Pay into my android App.

推荐答案

如何创建Google Pay开发者帐户?

How to create a google pay developer account?

您需要注册生产访问权限:

You need to sign up for production access: https://developers.google.com/pay/api/web/guides/test-and-deploy/request-prod-access

我需要付款吗?

Do i need to pay?

不,您不需要付款.

我的公司已经拥有一个Google Pay控制台帐户(您可以在其中管理应用并将其上传到goole Play商店)

My company already has a google pay console account ( Where you manage and upload apps to goole play store )

Google 付费开发者资料与Google Play 开发者控制台不同.如果您没有Google Pay开发者资料,则需要注册一个.

The Google Pay Developer Profile is different from the Google Play developer console. If you don't have a Google Pay Developer profile you will need to sign up for one.

我在哪里以及如何生成公钥?

Where and how will i generate public key?

以下链接提供了有关如何使用OpenSSL生成公钥的详细信息:

The following link provides details on how to generate a public key using OpenSSL: https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography#using-openssl

重要的位:

# generate private key
openssl ecparam -name prime256v1 -genkey -noout -out key.pem

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

我在哪里以及如何在Google Pay开发人员资料中上传此公钥?

Where and how will i upload this public key in google pay developer profile?

需要将公钥添加到Google Pay开发者资料中,并作为付款请求的一部分:

The public key needs to be added to both the Google Pay Developer Profile and included as part of the payment request: https://developers.google.com/pay/api/android/reference/request-objects#direct

请注意,您需要在Google Pay中注册才能进行DIRECT集成.

Note that you need to be registered with Google Pay for DIRECT integration.

示例:

"tokenizationSpecification": {
  "type": "DIRECT",
  "parameters": {
    "protocolVersion": "ECv2",
    "publicKey": "BOdoXP1aiNp.....kh3JUhiSZKHYF2Y="
  }
}

任何人都可以单击此链接并告诉我为什么需要您而不是Google Pay开发人员帐户来支持页面吗?

Can any one click on this link and tell me why it takes you to support page instead of Google pay developer account?

如果您使用有权访问Google Pay开发者资料的Google帐户登录,则会看到 Google支付开发者资料详细信息.如果您尚未登录或无权访问该个人资料,您将被重定向到支持页面.

If you are logged in with a Google account with access to the Google Pay Developer Profile, you see the Google Pay Developer Profile details. If you are not logged in or do not have access to the profile you will be redirected to the support page.

您需要登录有权访问Google Pay开发者资料的Google帐户.

You need to be signed into your Google Account which has access to the Google Pay Developer Profile.

更正了有关上传公钥的信息.

Corrected information about uploading the public key.

更新:Google Pay最近启动了业务控制台来注册和管理Google付费集成.

UPDATE: Google Pay has recently launched the Business Console to sign up and manage Google Pay integrations.

这篇关于Google pay Developer帐户在哪里,以及如何生成要在其中上传的公共密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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