Are you looking for test card numbers?

Would you like to contact support?

No momento, esta página não está disponível em português
Payment-method icon

Google Pay Component integration

Add Google Pay to an existing Components integration.

On this page, you can find additional configuration for adding Google Pay to your Component integration.

When shoppers select Google Pay, 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, Component also handles redirecting shoppers to another website to complete the verification.

Before you begin

Before starting your Google Pay integration:

  1. Build a Component integration.
  2. Follow the setup steps in the Google Pay documentation.
  3. Add Google Pay in your Customer Area.

API reference

You don't need to send additional fields for Google Pay. See the /payments endpoint API reference for the optional fields you can send.

Component configuration

Pass state to your Checkout activity onActivityResult:

Pass state to onActivityResult
public void onActivityResult(int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);
  AdyenCheckout.handleActivityResult(requestCode, resultCode, data);

Optional configuration

You can optionally include the following properties when you configure AdyenCheckout:

Property Description
allowOnboarding Set to true to let the shopper add cards to their Apple Pay wallet if there are none.
By default this is set to false, and Apple Pay isn't shown as an available payment method if there are no cards in their Apple Pay wallet.

Create a way, like a button, for AdyenCheckout to call the start function.

Create a way to start the Component
import { useAdyenCheckout } from '@adyen/react-native';

// Set your View to use AdyenCheckout as the context.
const YourCheckoutView = () => {
const { start } = useAdyenCheckout();

    return (
    // Create a way, like a checkout button, that starts the Component.
            // Pass in the paymentMethod.type from the /paymentMethods response.
            onPress={() => { start('googlepay'); }} />

Recurring payments

To make recurring Google Pay payments, you first need to create a shopper token and then make subsequent recurring transactions with the token.
Refer to Tokenization for more information and detailed instructions.

Test and go live

To test Google Pay, log in to a Google account and create a Google Pay wallet with the details of a real card, not a test card. When you make a test payment, the card number is automatically mapped to our test card number starting with 4111, so the real card is not charged.

To test Google Pay with the 3D Secure flow, contact our Support Team.

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 for Android.

Before you go live

  1. 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.
  2. Go to your live Customer Area to configure your Google Merchant ID.
  3. Complete all the steps in the Google Pay API deploy to production documentation for Android.

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.