Google Pay
API integration for Google PayTM allows merchants to embed the Google Pay button on a website or Android native App.
Prerequisites
The following is required for a Google PayTM API integration:
- An active merchant account with our payment gateway
- Your API credentials (API Key and Secret)
Getting Started with Google PayTM
Step 1: Register as a Google Pay Merchant
In order to process Google Pay payments via your website or Android app, merchants using our API are required to register with Google and will be issued with a merchantID.
Follow the steps to register on the Google Pay and Wallet Console:
- Web - Publish your integration | Google Pay API | Google for Developers
- Android - Publish your integration | Google Pay API for Android | Google for Developers
Ensure that you accept the Google Pay API Terms of Service and Acceptable Use Policy.
Step 2: Enable Google Pay on your Ecentric merchant account
- Contact our Product Support team to enable Google Pay on your merchant account.
- You will be issued with a
gatewayMerchantIdwhich is a unique identifier that Ecentric uses for merchant verification. - You will also receive Ecentric's
gatewayId which is used by Google to identify Ecentric as the Payment Processor.
Step 3: Continue with the Integration steps for your website or App
You will need the following definitions for your integration:
Authentication Methods
Google Pay supports card payments via two authentication methods:
- PAN_ONLY: returns a primary account number (PAN). If PAN_ONLY is returned, then we strongly recommend implementing a 3D Secure step-up flow using our Secure3DLookup API request.
- CRYPTOGRAM_3DS: returns a device token with a 3-D Secure cryptogram, reducing step-up requirements.
We recommend that you configure both in allowedCardAuthMethods unless you have a specific reason to restrict this.
NOTE: CRYPTOGRAM_3DS is only supported on Android devices.
| Device / Browser | Supported Authentication Method |
|---|---|
| Android device | CRYPTOGRAM_3DS and PAN_ONLY |
| iOS device | PAN_ONLY |
| Android web browser | CRYPTOGRAM_3DS and PAN_ONLY |
| Desktop browser | PAN_ONLY |
For more information, see CardParameters in Google’s Object reference documentation.
Allowed Networks
The Payment Gateway supports the following networks for Google Pay :
- VISA
- MASTERCARD
These will be used in your integration when you define the allowedCardNetworks.
1. Web Integration
- Ensure that you follow the brand guidelines for Google Pay web integration.
- Follow the Google Pay Web developer documentation to implement your integration.
- Complete the Integration checklist to ensure that you've completed all the required steps in your web integration.
2. Android App Integration
- Ensure that you follow the brand guidelines for Google Pay Android integration.
- Follow the Google Pay Android developer documentation to implement your integration.
- Complete the Integration checklist to ensure that you've completed all the required steps in your Android integration.
Updated 2 days ago
