Skip to main content
This page explains how to add Google Pay to your existing Web Components integration. When shoppers select Google Pay, the Component presents the Google Pay payment sheet where shoppers choose a card they want to use. If shoppers select a card that requires 3D Secure authentication, the Component also handles redirecting shoppers to another website to complete the verification.

Requirements

API reference

You do not need to send additional fields for Google Pay. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:

Component configuration

Step 1: Load the Google Pay API JavaScript library

We recommend that you preload the Google Pay API JavaScript library, by including the
following script in your checkout page:
If you are loading the Drop-in inside an iframe element, add the allow attribute to the iframe to render Google Pay. For example:

Step 2: Create a DOM element

Create a DOM element on your checkout page, placing it where you want the payment method form to be rendered:

Step 3: Create an instance of the Component

Select which endpoint you are using:
This is the default with Components v5.0.0 or later.There’s no additional configuration you need to include for Google Pay.

v6.0.0 or later

Create an instance of the Component, passing:
  • Your instance of AdyenCheckout.
**

v5.x.x or earlier

Use the create method of your AdyenCheckout instance, in this case checkout, to create the Component: