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:
- The user taps the Google Pay payment button and sees a payment sheet with a list of supported payment methods.
- The user selects a payment method and Google Pay securely returns a payment token for that method to your app.
- Your app submits the payment token, along with details about the purchase, to its backend.
- 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:
- Review and adhere to our Google Pay API Terms of Service and Acceptable Use Policy.
-
Look through the supported processors and gateways list to find the reference documentation for your payment processor or gateway.
- Review and adhere to the Google Pay brand guidelines.
- Complete a vanilla Android integration using the tutorial in the documentation, or check out the libraries to add Google Pay to your Flutter or React Native application.
- Review the integration checklist to assess production readiness for your integration.
- Request production access to the Google Pay API using the Google Pay & Wallet Console.
- 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.
- Reference our Troubleshooting guide if you encounter errors.
Codelabs
The following codelabs will help you get started on Web with the Google Pay API:
Videos
Troubleshooting your Google Pay integration on Android
Updated ৬ ডিসেম্বর, ২০২৪
Are you struggling with Google Pay integration errors on Android? This video offers practical tips and techniques to identify, understand, and resolve these errors, to improve your integration experience. Learn how to get your integrations ready and start collecting payments with Google Pay more quickly.
How to implement recurring transactions with Google Pay
Updated ৬ ডিসেম্বর, ২০২৪
Learn essential tips and clarifications for successfully implementing recurring transactions using Google Pay. This comprehensive guide will walk you through the process, covering the correlations between Merchant Initiated Transactions (MITs) and Customer Initiated Transactions (CITs), to ensure smooth and efficient integrations for your payment system.
Google Pay's PayButton API
Updated ৩০ সেপ্টেম্বর, ২০২৪
Ever wondered how you can deliver a seamless, streamlined checkout process by remembering the last payment method used for future checkouts? Luckily, Google Pay's PayButton API is the right tool needed for this solution.
Test your Google Pay integration with these 3 steps
Updated ২২ জুলাই, ২০২৪
This video provides a step-by-step guide on how to test your Google Pay integration. It includes instructions on how to set up a test environment, generate a test payment token, and test your integration with the token.
Google Pay on Android using Stripe's React Native SDK
Updated ৬ মে, ২০২৪
This video provides a step-by-step guide on how to collect payments on Android using Google Pay and Stripe's React Native SDK. It includes instructions on how to set up a test environment, generate a test payment token, and test your integration with the token.
Payments on Android with Google Pay and PayPal Braintree
Updated ২৯ নভেম্বর, ২০২৩
This video provides a step-by-step guide on how to collect payments on Android using Google Pay and PayPal Braintree. It includes instructions on how to set up a test environment, generate a test payment token, and test your integration with the token.
A detailed look at the new dynamic button
Updated ৯ নভেম্বর, ২০২৩
This video provides a detailed look at the new dynamic button for Google Pay on Android. It includes instructions on how to implement the button, how it works, and what it can do.
Collect payments on Android with Google Pay and Adyen
Updated ২০ সেপ্টেম্বর, ২০২৩
This video provides a step-by-step guide on how to collect payments on Android using Google Pay and Adyen. It includes instructions on how to set up a test environment, generate a test payment token, and test your integration with the token.
Collect payments on Android with Google Pay and Stripe
Updated ১৫ জুন, ২০২৩
This video provides a step-by-step guide on how to collect payments on Android using Google Pay and Stripe. It includes instructions on how to set up a test environment, generate a test payment token, and test your integration with the token.
A modern Google Pay integration
Updated ১৫ জুন, ২০২৩
This video provides a step-by-step guide on how to implement a modern Google Pay integration on Android using the latest Google Pay API client library.
What's new in Google Pay
Updated ১১ মে, ২০২২
Payments are constantly evolving and so is Google Pay. Learn more about how Google is making payments more secure and frictionless, enabling networks, issuers, and merchants of all sizes in getting the best in class checkout experience. Learn about the latest investments in the Passes API, and Google's vision for a comprehensive digital wallet on Android.
Integration tips with Google Pay #AskGooglePayDevs
Updated ২৩ জুন, ২০২১
This video provides a detailed look at how to integrate Google Pay into your website or app. It covers topics such as how to set up a test environment, generate a test payment token, and test your integration with the token.
Improving the developer experience with Google Pay
Updated ৪ জুন, ২০২১
This video provides a detailed look at how Google Pay can help developers improve the developer experience for their users. It covers topics such as how to make it easier for users to add payment methods to their accounts, how to provide a seamless and secure checkout experience, and how to optimize marketing efforts to drive more sales.
What's new in Google Pay
Updated ১৯ মে, ২০২১
Google Pay re-launched in 2020 with a redesigned app that enables brands to build deeper, more personal relationships with their customers. Meet the Google Pay team and learn how you can build richer digital payment experiences to acquire new users and better serve existing ones.
Google Pay
Updated ১৯ মে, ২০২১
This video provides a Q&A session with the Google Pay team. It covers a variety of topics, including the history of Google Pay, the latest innovations in the Google Pay ecosystem, and how to get started with Google Pay.
Collecting payments on Android
Updated ১৩ মে, ২০২১
This video provides a step-by-step guide on how to collect payments on Android using Google Pay. It includes instructions on how to set up a test environment, generate a test payment token, and test your integration with the token.
SpotHero - Payments DevTalks (#1)
Updated ৩১ মার্চ, ২০২১
This video provides a detailed look at how SpotHero uses Google Pay to collect payments from users. It covers topics such as how to set up a test environment, generate a test payment token, and test your integration with the token.
Google Pay API implementation demo (Android)
Updated ২ মে, ২০১৯
This video shows you how to implement the Google Pay API on Android using the latest Android SDK. The video also demonstrates how to handle payment data and return a payment token to the merchant's website.
Google Pay API Explained
Updated ১৯ অক্টোবর, ২০১৮
This video provides a detailed explanation of the Google Pay API, including how it works, what it can do, and how to implement it.
Blog posts
Want a smoother checkout with Google Pay? Configure your payment options!
Updated ৮ অক্টোবর, ২০২৪
Google Pay is a simple and secure way to collect payments from your customers. This blog post explains how to configure your payment options to make the checkout process as seamless as possible for your customers.
What's new in Google Pay at I/O 2024
Updated ২৮ মে, ২০২৪
Google Pay is a simple and secure way to collect payments from your customers. This blog post explains what's new in Google Pay at I/O 2024, including the new Google Pay button, the new Google Pay API, and the new Google Pay API for Web.
Google Pay - Enabling liability shift for eligible Visa device token transactions globally
Updated ১৪ ফেব্রুয়ারী, ২০২৪
Google Pay is a simple and secure way to collect payments from your customers. This blog post explains how Google Pay can help you to enable liability shift for eligible Visa device token transactions globally.
Aligning the user experience across surfaces for Google Pay
Updated ৬ নভেম্বর, ২০২৩
Google Pay is a simple and secure way to collect payments from your customers. This blog post explains how Google Pay can help you to align the user experience across surfaces.
Jetpack Compose Buttons for Google Pay and Google Wallet
Updated ১৯ মে, ২০২৩
Google Pay and Google Wallet are now available in Jetpack Compose. This blog post explains how to use the Google Pay and Google Wallet buttons in Jetpack Compose.
Introducing the new Google Pay button view on Android
Updated ৯ মে, ২০২৩
The Google Pay button view is a new way to display the Google Pay button on Android. This blog post explains how to use the Google Pay button view and how it can help you to improve the user experience of your app.
Test your payments integrations end-to-end with the new test suite for Google Pay
Updated ৮ মে, ২০২৩
The new test suite for Google Pay makes it easier to test your payments integrations end-to-end. This blog post explains how to use the test suite and how it can help you to improve the quality of your payments integrations.