Google Pay

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 in Android apps and on the web.

This document replaces our old instructions for Android Pay. For the legacy instructions, see our Android Pay page.

Step 1: Integrate the Google Pay SDK

In order to use Google Pay with Adyen, you must submit the following parameters in the request you make to Google API:

'allowedPaymentMethods': ['CARD','TOKENIZED_CARD'],
'paymentMethodTokenizationParameters': {
   'tokenizationType': 'PAYMENT_GATEWAY',
   'parameters':    {
     'gateway': 'adyen'
     'gatewayMerchantId': '<name of MerchantAccount>'
   }
}

The allowedPaymentMethods parameter can take one of the following values:

  • CARD: payment cards.
  • TOKENIZED_CARD: Android device tokens.

For more information, refer to the Google Pay API guide and Google Pay API reference.

Step 2: Send the token to Adyen

After your server has received the token, submit an /authorise request to Adyen passing the token value.

The following example demonstrates how to submit this API request. The token value must be set to the paywithgoogle.token field included into the additionalData object.

Submit this request to the https://pal-test.adyen.com/pal/servlet/Payment/v30/authorise endpoint.

{
   "amount":{
      "value":2000,
      "currency":"EUR"
   },
   "reference":"Your Reference Here",
   "merchantAccount":"TestMerchant",
   "additionalData":{
      "paywithgoogle.token":"==Payload as retrieved from Google Pay response=="
   }
}

Step 3: Go live

Once you completed the steps above and tested your integration, contact Support Team to configure live processing of Google Pay payments.