Overview

The Google Pay API enables fast, simple checkout within your app, and gives you convenient access to hundreds of millions of cards saved to Google Accounts worldwide.

How it works

Figure 1. Android payment flow

When a user taps the Google Pay payment button, they see a payment sheet that displays the payment methods saved to their Google Account, as well as optional fields such as a shipping address field. Users can quickly select a payment method, add an optional shipping address, or add new information.

The payment flow is as follows:

  1. The user taps the Google Pay payment button and sees a payment sheet with a list of supported payment methods.
  2. The user selects a payment method and Google Pay securely returns a payment token for that method to your app.
  3. Your app submits the payment token, along with details about the purchase, to its backend.
  4. To execute the payment, the backend processes the purchase and sends the payment token to the payment service provider.

Get started

Perform the following steps to get started with the Google Pay API:

  1. Review and adhere to our Google Pay API Terms of Service and Acceptable Use Policy.
  2. Look through the supported processors and gateways list to find the reference documentation for your payment processor or gateway.

  3. Review and adhere to the Google Pay Brand guidelines.
  4. Complete the Tutorial and Integration checklist.
  5. Request production access to the Google Pay API using the Business Console.
  6. Ensure that your Android device has Google Play services version 18.0.0 or higher.