Where is Google pay Developer account and how to generate public key to upload in it?
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?
No, you do not need to pay.
My company already has a google pay console account ( Where you manage and upload apps to goole play store )
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?
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
Important bits:
# 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" -
Where and how will i upload this public key in google pay developer profile?
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
Note that you need to be registered with Google Pay for DIRECT
integration.
Example:
"tokenizationSpecification": {
"type": "DIRECT",
"parameters": {
"protocolVersion": "ECv2",
"publicKey": "BOdoXP1aiNp.....kh3JUhiSZKHYF2Y="
}
}
Can any one click on this link and tell me why it takes you to support page instead of Google pay developer account?
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.
You need to be signed into your Google Account which has access to the Google Pay Developer Profile.
EDIT: Corrected information about uploading the public key.
UPDATE: Google Pay has recently launched the Business Console to sign up and manage Google Pay integrations.
I'm sure you don't have to pay for it. You have to apply for it with this form