{"title":"Google Pay (classic)","category":"default","creationDate":1776961627,"content":"<div class=\"sc-notice warning\"><div>\n<p><strong>Adyen is no longer developing the Classic API integration<\/strong><\/p>\n<p>This page is for the Classic API (<code>\/authorise<\/code>) integration, which we no longer accept new integrations with. <\/p>\n<p>We strongly recommend migrating to the newer <a href=\"\/payment-methods\/google-pay\">Google Pay<\/a> integration. To use this newer integration, you must also <a href=\"\/pt\/online-payments\/upgrade-your-integration\/migrate-to-checkout-api\">migrate to the Checkout API<\/a>.<\/p>\n<\/div><\/div>\n<p>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.<\/p>\n<h2 id=\"step-1-integrate-the-google-pay-sdk\">Step 1: Integrate the Google Pay SDK<\/h2>\n<p>In order to use Google Pay with Adyen, you must submit the following parameters in the request you make to Google API:<\/p>\n<pre><code class=\"language-json\">'allowedPaymentMethods': ['CARD','TOKENIZED_CARD'],\n'paymentMethodTokenizationParameters': {\n   'tokenizationType': 'PAYMENT_GATEWAY',\n   'parameters':    {\n     'gateway': 'adyen'\n     'gatewayMerchantId': '&lt;name of your MerchantAccount or CompanyAccount&gt;'\n   }\n}<\/code><\/pre>\n<p>The <code>allowedPaymentMethods<\/code> parameter\u00a0can take one of the following values:<\/p>\n<ul>\n<li>CARD: payment cards.<\/li>\n<li>TOKENIZED_CARD: Android device tokens.<\/li>\n<\/ul>\n<p>For more information, refer to the\u00a0<a href=\"https:\/\/developers.google.com\/payments\/overview\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Google Pay API<\/a>\u00a0guide and\u00a0<a href=\"https:\/\/developers.google.com\/pay\/api\/web\/object-reference\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Google Pay API<\/a>\u00a0reference.<\/p>\n<h2 id=\"step-2-send-the-token-to-adyen\">Step 2: Send the token to Adyen<\/h2>\n<p>After your server has received the token, submit an <a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise<\/a>\u00a0request to Adyen passing the token value.<\/p>\n<p>The following example demonstrates how to submit this API request. The token value must be set to the\u00a0<code>googlepay.token<\/code>\u00a0field included into the\u00a0<code>additionalData<\/code>\u00a0object.<\/p>\n<p>Submit this request to the\u00a0<a href=\"https:\/\/docs.adyen.com\/api-explorer\/#\/Payment\/authorise\" class=\"codeLabel external-link no-image\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\/authorise<\/a>\u00a0endpoint.<\/p>\n<pre><code class=\"language-json\">{\n   \"amount\":{\n      \"value\":2000,\n      \"currency\":\"EUR\"\n   },\n   \"reference\":\"Your Reference Here\",\n   \"merchantAccount\":\"YOUR_MERCHANT_ACCOUNT\",\n   \"additionalData\":{\n      \"googlepay.token\":\"==Payload as retrieved from Google Pay response==\"\n   }\n}<\/code><\/pre>\n<h2 id=\"step-3-go-live\">Step 3: Go live<\/h2>\n<p>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 <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">live Customer Area<\/a>. Your merchant ID must be configured in the Adyen payment method configuration for Google Pay.<\/p>","url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration\/classic-google-pay","articleFields":{"id":"42857423","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"14-08-2019 11:29","sitemap":{"priority":0.3},"parameters":{"anchor_new":"<a href=\"\/payment-methods\/google-pay\">Google Pay<\/a>","parent_page":"Classic API (<code>\/authorise<\/code>)","new_desc":"integrating using our Checkout APIs"}},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration\/classic-google-pay","title":"Google Pay (classic)","content":"\nAdyen is no longer developing the Classic API integration\nThis page is for the Classic API (\/authorise) integration, which we no longer accept new integrations with. \nWe strongly recommend migrating to the newer Google Pay integration. To use this newer integration, you must also migrate to the Checkout API.\n\nGoogle 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.\nStep 1: Integrate the Google Pay SDK\nIn order to use Google Pay with Adyen, you must submit the following parameters in the request you make to Google API:\n'allowedPaymentMethods': ['CARD','TOKENIZED_CARD'],\n'paymentMethodTokenizationParameters': {\n   'tokenizationType': 'PAYMENT_GATEWAY',\n   'parameters':    {\n     'gateway': 'adyen'\n     'gatewayMerchantId': '&lt;name of your MerchantAccount or CompanyAccount&gt;'\n   }\n}\nThe allowedPaymentMethods parameter\u00a0can take one of the following values:\n\nCARD: payment cards.\nTOKENIZED_CARD: Android device tokens.\n\nFor more information, refer to the\u00a0Google Pay API\u00a0guide and\u00a0Google Pay API\u00a0reference.\nStep 2: Send the token to Adyen\nAfter your server has received the token, submit an \/authorise\u00a0request to Adyen passing the token value.\nThe following example demonstrates how to submit this API request. The token value must be set to the\u00a0googlepay.token\u00a0field included into the\u00a0additionalData\u00a0object.\nSubmit this request to the\u00a0\/authorise\u00a0endpoint.\n{\n   \"amount\":{\n      \"value\":2000,\n      \"currency\":\"EUR\"\n   },\n   \"reference\":\"Your Reference Here\",\n   \"merchantAccount\":\"YOUR_MERCHANT_ACCOUNT\",\n   \"additionalData\":{\n      \"googlepay.token\":\"==Payload as retrieved from Google Pay response==\"\n   }\n}\nStep 3: Go live\nOnce 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.","type":"page","locale":"pt","boost":16,"hierarchy":{"lvl0":"Home","lvl1":"Online payments","lvl2":"Classic integrations for Ecommerce","lvl3":"Classic API integration","lvl4":"Google Pay (classic)"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/online-payments","lvl2":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations","lvl3":"https:\/\/docs.adyen.com\/pt\/online-payments\/classic-integrations\/classic-api-integration","lvl4":"\/pt\/online-payments\/classic-integrations\/classic-api-integration\/classic-google-pay"},"levels":5,"category":"Online Payments","category_color":"green","tags":["Google","(classic)"]}}
