Skip to main content

Introduction

Google Pay is a widely used mobile payment solution that offers a convenient and secure way for customers to pay for goods and services. Integrating Google Pay with Payrails allows you to provide a fast, easy-to-use payment option for your customers while leveraging our platform to route the payment to any Payment Service Provider (PSP). This guide will explain the process of integrating Google Pay into your app or website using Payrails. Google Pay payment flow overview through Payrails

Pre-requisites

In order to start using Google Pay with Payrails, you must:
  1. Integrate with Payrails using one of our SDKs or accept payments via API
  2. Configure a new integration account for Google Pay via Stripe, Checkout.com, and Adyen.
  3. Enable Google Pay as a payment option.
  4. Follow the setup steps in the Google Pay documentation below. The exact steps you must follow depend on the nature of your integration with Payrails. In any case, you must get your Google Pay implementation approved by Google as described in Publish your Google Pay integration. Please then ensure to configure your Google Pay merchant ID in your SDK implementation as described in Google Pay Element.
  5. Make sure you’re sending the Google Pay-specific meta fields (found under Merchant configurations -> Meta fields on your Payrails dashboard and in the examples below) in your requests.

Google Pay on Android Devices

Google Pay on the Web

Ways to integrate

Payrails SDK

The simplest way to use Google Pay with Payrails is to use our drop-in in your checkout flow. With this integration type, no additional development work is required to accept payments with Google Pay. For a more flexible implementation using our SDK, you can use our Google Pay element. For your client-side implementation, see Google Pay Element.

Server-to-server integration

You also have the option to completely manage your own client-side implementation, and use Payrails APIs with a server-to-server integration to process payments with Google Pay. With this approach, follow the Google documentation linked above to build Google Pay into your applications.

Pass Google Pay configuration in lookup response to Google Pay SDK

With a server-to-server integration, you can call our lookup payment options endpoint to get available payment options and relevant configurations for each payment method. You can get allowedAuthMethods and allowedCardNetworks from the response here and pass it to the Google Pay SDK. Please contact your Payrails representative during the onboarding phase in order to set these configurations before going live.
Please setup your gatewayMerchantId with Payrails before you start testing your Google Pay integration in case of client owned Google Pay integration. Payrails performs validations on the merchant Id we receive after decrypting the token to ensure that we did not receive a forged token.

Pass Google Pay payment token in request to authorize payment with Payrails

When you initiate a transaction with the Google Pay SDK, a Payment Token (paymentMethodData.tokenizationData.token) containing a JSON-formatted string is sent to the merchant app. Pass the paymentMethodData.tokenizationData.token in your call to our authorize a payment endpoint. See an example below.

Supported regions / countries

Google Pay is available to customers based in:
RegionsCountries
Africa🇲🇦 Morocco🇿🇦 South Africa
Asia Pacific🇦🇺 Australia🇭🇰 Hong Kong🇯🇵 Japan🇲🇾 Malaysia🇳🇿 New Zealand🇸🇬 Singapore🇹🇭 Thailand
Europe🇦🇹 Austria🇧🇪 Belgium🇧🇬 Bulgaria🇭🇷 Croatia🇨🇾 Cyprus🇨🇿 Czech Republic🇩🇰 Denmark🇪🇪 Estonia🇫🇮 Finland🇫🇷 France🇩🇪 Germany🇬🇮 Gibraltar🇬🇷 Greece🇭🇺 Hungary🇮🇸 Iceland🇮🇪 Ireland🇮🇹 Italy🇱🇻 Latvia🇱🇮 Liechtenstein🇱🇹 Lithuania🇱🇺 Luxembourg🇲🇹 Malta🇳🇱 Netherlands🇳🇴 Norway🇵🇱 Poland🇵🇹 Portugal🇷🇴 Romania🇸🇰 Slovakia🇸🇮 Slovenia🇪🇸 Spain🇸🇪 Sweden🇨🇭 Switzerland🇬🇧 United Kingdom
Latin America🇧🇷 Brazil🇲🇽 Mexico🇵🇷 Puerto Rico
Middle East🇦🇪 United Arab Emirates
North America🇨🇦 Canada🇺🇸 United States
Google Pay payments may be available in additional countries based on the status of their integrations and each provider’s technology rollout.

Supported workflows and services

WorkflowSupported
Payrails SDK✔
Payrails API✔
Delayed / Manual Capture✔
Instant Capture✔
Cancel / Void✔
Refund / Reverse✔
Save Instruments✔
Merchant Initiated Transaction (MIT)✔
InteroperabilityPSP tokens, Network tokens
Last modified on October 16, 2026