Google Pay

Learn how to accept Google Pay payments on POS terminals, on the web, and in Android apps.

Google Pay is a payment method that allows shoppers to make purchases using the card stored in their Google account. This provides them with a simpler checkout process whether they are buying from their Android devices, on the web, or in-store through POS terminals.

For more information on Google Play availability, see Countries where you can use Google Pay and the list of Supported browsers.

Payment Type Payment flow Recurring Refunds Partial Refunds Captures Partial Captures Chargebacks
Wallet Direct Yes Yes Yes Yes Yes Yes

You can accept Google Pay payments with:


Before you start with your Google Pay implementation, make sure that you:

  1. Read and understand our Web SDKAndroid SDK, or API integration guides.
  2. If you are using our API or have built your own UI for Android, read the Google Pay API Setup and Tutorials documentation for Web or Android.

Integrate with Web SDK

If you are using our  Web SDK, do the following steps first:
  1. Load the Google Pay API JavaScript library before initializing the Checkout SDK.

    <script src=""></script>
  2. Before you can start accepting live Google Pay payments, we need to configure your Google Pay merchantID. Follow Google Pay's Deploy production environment guidelines then contact Support Team and provide your merchantID from your Google Pay Developer Profile.

Integrate with Android SDK

If you are using our drop-in Android Checkout SDK, there is no need for additional configuration. 

If you have built your own UI for Android, you need to generate the Google Pay token then submit it to Adyen to complete the payment.

  1. Generate Google Pay token. Follow the Google Pay documentation to integrate your Android application. Set adyen as your gateway and provide your merchant account name in the gatewayMerchantId parameter.

    Google Pay API PaymentMethodTokenizationSpecification
          new JSONObject()
              .put("gateway", "adyen")
              .put("gatewayMerchantId", "YourMerchantAccount"));

    Get the token from Google Pay API response PaymentData object . 

  2. Include the Google Pay token when you submit the payment.

    GooglePayDetails googlePayDetails = new GooglePayDetails.Builder(<YOUR_TOKEN_HERE>).build();
    mPaymentHandler.initiatePayment(googlePayPaymentMethod, googlePayDetails);

Integrate with API

To use our APIs for Google Pay transactions, you need to obtain a token from Google Pay and then pass the value to Adyen through a /payments request. 

Step 1: Generate Google Pay token

Follow the procedure on Google Pay documentation to integrate your Android application or your web application. Set adyen as your gateway and provide your merchant account name in the gatewayMerchantId parameter.

Google Pay API PaymentMethodTokenizationSpecification
      new JSONObject()
          .put("gateway", "adyen")
          .put("gatewayMerchantId", "YourMerchantAccount"));

After you have successfully completed the integration and handled the response object from Google Pay, get the token from PaymentData

Step 2: Make a payment

Make a /payments request, providing the: 

  • reference: Your unique reference for this payment.

  • amount

  • typepaywithgoogle
  • paywithgoogle.token: This is the token that you obtained from the Google Pay API response.

  "amount": {
    "currency": "USD",
    "value": 1000
  "reference": "Your order number",
  "paymentMethod": {
    "type": "paywithgoogle",
    "paywithgoogle.token":"==Payload as retrieved from Google Pay response=="
  "returnUrl": "",
  "merchantAccount": "YourMerchantAccount"

If the payment was successful, you'll receive an authorisedresultCode and a pspReference, which is our unique identifier for this payment.

If the shopper used a card with 3D Secure enabled, you will get redirectShopper as resultCode. Follow the steps for Cards with 3D Secure to redirect the shopper and to complete the redirect payment.

Step 3: Present payment result

Use the  resultCode you received from the  /payments endpoint to present the shopper with a the result of the payment via your website or app. Check our  result codes documentation for information on what these mean, and what actions you should take.

Integrate with POS

Google Pay is supported out-of-the-box on our POS terminals without any additional integration effort.

Shoppers using an Android phone with NFC may use Google Pay when purchasing in-store in countries where POS is available.  

Google Pay notifications

Accepting notifications is required for Google Pay. Know the status of the transaction through notifications

Each notification has a pspReference  that you can use to identify the transaction and an eventCode that indicates the transaction status.

Testing Google Pay payments

To test Google Pay, you must:

  • Login to a real Google account.
  • Create a Google Pay wallet with valid card details. Google Pay does not accept test cards.

You can check the status of a Google Pay test payment in your Customer Area > Transactions > Payments.

For more information, see Google Pay's test environment setup for Web or for Android.

Go live checklist

Start accepting live Google Pay payments once you have performed the following:

Google Pay will be available in production mode if:

  • The shopper is logged in to their Google account.
  • The shopper has at least one valid payment method on their Google Pay account.

See also