[ Web Proxy ]
URL:
Viewing: https://developers.google.com/pay/api/web/overview [Back]  [Original]

Overview  |  Google Pay API  |  Google for Developers Skip to main content

Overview Stay organized with collections Save and categorize content based on your preferences.

outlined_flag

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

How it works

how-gpay-works-web.svg [how-gpay-works-web.svg] Figure 1. Web payment flow

When a user clicks 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 clicks 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 website.
  3. Your website 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.

    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.
  4. Complete the Tutorial and Integration checklist.
  5. Request production access to the Google Pay API through the Google Pay & Wallet Console.

    Note: If you intend to submit more than 50 fully qualified domains (including subdomains), please get in touch beforehand using our contact support form for a possible alternative solution.

Resources

Use the following resources to complete your integration:

Codelabs

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

Videos

Blog posts

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-03-19 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-19 UTC."],[],["Users click a Google Pay button, which displays saved payment methods. After selection, Google Pay returns a payment token to the website. The website sends the token and purchase details to its backend. The backend then processes the payment, forwarding the token to the payment service provider. To start, review terms, find your processor, adhere to brand guidelines, and request production access through the Google Pay & Wallet Console. Additional steps are included for those with many domains.\n"]]

Web Proxy Viewer  |  New URL  |  Original Page