Adyen is no longer developing the Classic API integration
This page is for the Classic API (/authorise
) integration, which we no longer accept new integrations with.
We strongly recommend switching to the newer Google Pay integration.
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.
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 your MerchantAccount or CompanyAccount>'
}
}
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 googlepay.token
field included into the additionalData
object.
Submit this request to the /authorise endpoint.
{
"amount":{
"value":2000,
"currency":"EUR"
},
"reference":"Your Reference Here",
"merchantAccount":"YOUR_MERCHANT_ACCOUNT",
"additionalData":{
"googlepay.token":"==Payload as retrieved from Google Pay response=="
}
}
Step 3: Go live
Once you completed the steps above and tested your integration, before you can accept live payments, you need to submit a request for Google Pay in your live Customer Area. Your merchant ID must be configured in the Adyen payment method configuration for Google Pay.