On this page, you can find additional configuration for adding Google Pay to your Drop-in integration.
When shoppers select Google Pay, Drop-in 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, Drop-in also handles redirecting shoppers to another website to complete the verification.
Before you begin
Before starting your Google Pay integration:
- Make sure you've integrated Drop-in v4.0.0 or later.
- Contact our Support Team to add Google Pay in your test Customer Area.
To accept live Google Pay payments, you must complete all of the steps in Before you go live.
You don't 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:
- /sessions: This is the default with Drop-in v5.0.0 or later.
- /payments: If you implemented an advanced use case, or integrated Drop-in before v5.0.0.
following script in your checkout page:
Select which endpoint you're integrating:
There's no additional configuration you need to include for Google Pay.
This optional configuration parameter is only accepted on the
Instant payment button configuration
Optional Google Pay configuration
You can configure:
- The merchant name that appears on the Google Pay payment sheet.
- The Google Pay button appearance.
- Your payment requirements.
- The card types that you accept.
- The payment methods that you support.
- Event handlers to use.
Configure the merchant name rendered in the payment sheet. See MerchantInfo for more details.
If you specify
configuration.merchantName, then you must also specify
||The merchant name you want displayed in the payment sheet.|
||The name of your Adyen merchant or company account.|
||Your Google Merchant ID.|
Configure the Google Pay button. See ButtonOptions for more details.
||The type of button you want displayed on your payments form.|
||The color of the button you want displayed on the payment form.|
||The language on the button. Defaults to the
Supported from Web Components v4.1.0.
||Specifies whether the button changes to fill the size of its container (the default), or has a static width and height.
Supported from Web Components v4.1.0.
Configure your payment requirements. See PaymentDataRequest for more details.
||Set this to true if you want to collect the shopper's email address.|
||Set to true to request the shopper's full shipping address.|
||Set any shipping restrictions.|
||Set to true if you want to present shipping options in the payment sheet.|
||Set shipping options and a default shipping option to be shown in the payment sheet.|
Configure accepted card types. See Card Parameters for more details.
||Specify supported authentication methods. Default value is
||Specify allowed card networks. The allowed networks are automatically configured based on your account settings, but you can override this here.|
||Default is true. Set this to false if you don't support credit cards.|
||Default is true. Set this to false if you don't support prepaid cards.|
||Set this to true if you require a billing address.|
||The expected fields returned if
Payment method support
Specify which payment methods are supported. See IsReadyToPayRequest for more details.
||Default is true.|
The following event handlers are supported for Google Pay.
||Called when the shopper clicks the Google Pay button. Call
||Called after the shopper approves the payment on the Google Pay form. The first parameter (
||Called after the shopper approves the payment on the Google Pay form. Contains the full response from Google Pay. Use this if you need additional data such as the shipping address or the shopper email.|
Refer to Tokenization for more information and detailed instructions.
Test and go live
To test Google Pay, you have two different options:
- Login to a Google account and create a Google Pay wallet with valid card details.
- Use a sample card from Google's test card suite .
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.
Before you go live
- Make sure your API credential has the API Clientside Encryption Payments role. Check this in your live Customer Area or ask your Admin user to verify.
- Contact our Support Team and submit a request to configure your Google Pay
- Complete all of the steps in the Google Pay API deploy to production documentation for Web.
In the live environment, note that Google Pay will only be available if:
- The shopper is logged in to their Google account.
- The shopper has at least one valid payment method on their Google Pay account.