[Video](https://www.youtube.com/watch?v=SZorG5Hqjzc) ![Diagram showing the flow of obtaining
payment information from Google Pay and sending it then to a processor through
a backend application.](https://developers.google.com/static/pay/api/images/how-gpay-works-android.svg) **Figure 1.** Android payment flow

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

## How it works

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 [Terms of Service](https://payments.developers.google.com/terms/sellertos) and [Acceptable Use Policy](https://payments.developers.google.com/terms/aup).
2. Look through the [supported processors and
   gateways list](https://developers.google.com/pay/api#participating-processors) to find the reference documentation for your payment processor or
   gateway.

   > [!NOTE]
   > **Note:** If your processor or gateway isn't supported, you might be able to complete a Direct integration. The direct integration is exclusively available to merchants who are Payments Card Industry Data Security Standard (PCI DSS) compliant, as validated by a Qualified Security Assessor. Third parties that supply gateway or processing services on behalf of actual merchants aren't eligible to use the Direct integration.

3. Review and adhere to the Google Pay [brand guidelines](https://developers.google.com/pay/api/android/guides/brand-guidelines.md.txt).
4. Complete a vanilla Android integration using the [tutorial](https://developers.google.com/pay/api/android/guides/tutorial.md.txt) in the documentation, or check out the libraries to add Google Pay to your [Flutter](https://pub.dev/packages/pay) or [React Native](https://www.npmjs.com/package/@google/react-native-make-payment) application.
5. Review the [integration checklist](https://developers.google.com/pay/api/android/guides/test-and-deploy/integration-checklist.md.txt) to assess production readiness for your integration.
6. [Request production
   access](https://developers.google.com/pay/api/android/guides/test-and-deploy/request-prod-access) to the Google Pay API using the [Google Pay \& Wallet Console](https://pay.google.com/business/console?utm_source=devsite&utm_medium=devsite&utm_campaign=devsite).

   > [!NOTE]
   > **Note:** If you intend to submit more than 10 Android packages, get in touch beforehand using our contact support [form](https://docs.google.com/forms/d/e/1FAIpQLSdnBbqNqM-O6EWOunplX3Mkd6fQJCDUWeRirtfHL8pDqzJyBQ/viewform) so we can learn more about your intended integration.

7. Ensure that your Android device has the latest available version of Google Play services installed.

## Resources

Use the following resources to complete your integration:

- Reference how to [Test with sample tokens](https://developers.google.com/pay/api/android/guides/resources/sample-tokens.md.txt).
- Reference our [Troubleshooting guide](https://developers.google.com/pay/api/android/support/troubleshooting.md.txt) if you encounter errors.

### Codelabs

The following codelabs will help you get started on Web with the Google Pay API:

- [Build a Fast Checkout Experience on Android with Google Pay](https://codelabs.developers.google.com/pay-android-checkout)

### Videos

### Blog posts