Google Pay Integration
Accept payments from Google Pay users across Android devices and the web with fast, simple checkout and enhanced security features.
This guide walks you through adding Google Pay to an existing Connected Payments payment page. There are three stages:
- Configure Google Pay — set up your Google Pay settings in the dashboard
- Enable Google Pay — activate it on your payment page
- Add the button — insert the Google Pay button into your page config
This documentation pertains to version 3.0.10 of the @google-pay/button-react library. Check for updates in newer versions that may affect functionality or usage.
Step 1 — Configure Google Pay in the Dashboard
Follow these steps to set up Google Pay in your Connected Payments dashboard:
- Log in to your Connected Payments account and navigate to the Customer Configs section.
- Select the config you want to enable Google Pay for and click Edit.
- Go to Configuration → 3rd Party Integrations tab and update the Google Pay settings as required (see configuration reference below).
- Click Save to apply the changes.
Before going live, you must request production access to the Google Pay API via the Google Pay & Wallet Console.
Google Pay Configuration Reference
The following fields are available when configuring Google Pay:
| Field | Type | Example | Description |
|---|---|---|---|
gatewayMerchantId | string | "test" | The unique identifier for your payment gateway. |
merchantId | string | "test" | The unique identifier for the merchant, matching the ID used in the Google Pay API. |
merchantName | string | "Example Merchant" | A user-visible merchant name. If not set, the business name from your Google Pay Developer Profile is used. |
currencyCode | string | "AUD" | ISO 4217 alphabetic currency code for the transaction. |
validCardTypes | string[] | ["VISA", "MASTERCARD"] | The card networks your gateway supports for card transactions. |
Step 2 — Add the Google Pay Button to your page
Once Google Pay is enabled, insert the following JSON object into your page config at the position where you want the button to appear:
{
"googlePayTag": "googlePayButton",
"class": "google-pay-button",
"children": []
}
Compliance and Branding
By using this service you acknowledge and accept the following Google Pay policies:
Before going live, make sure you have reviewed:
Google Pay has strict branding guidelines that must be followed when displaying the Google Pay button. Failure to comply may result in loss of access to the Google Pay API.