---
title: "Accept Payments with Cloud Firestore and Google Pay"
description: "Accept Payments with Cloud Firestore and Google Pay"
published: "2022-02-11"
last_updated: "2022-02-11"
authors:
  - "Stephen McDonald (Developer Relations Engineer)"
categories:
  - "Firestore"
canonical_url: "https://firebase.blog/posts/2022/02/accept-payments-with-cloud-firestore-and-google-pay"
---

# Accept Payments with Cloud Firestore and Google Pay

*Published February 11, 2022 by Stephen McDonald (Developer Relations Engineer)*

---
> **Update:** Firebase Extensions will shut down on March 31, 2027. You will not be able to install or edit your existing extensions after this date. We recommend moving to self-managed function kits using our [user migration guide](https://firebase.google.com/docs/extensions/users/migrate).

Back in 2019 we launched [Firebase Extensions](https://firebase.google.com/products/extensions) - pre-packaged solutions that save you time by providing extended functionality to your Firebase apps, without the need to research, write, or debug code on your own. Since then, a ton of extensions have been added to the platform covering a wide range of features, from email triggers and text messaging, to image resizing, translation, and much more.

### Google Pay Firebase Extension
We're now excited to have launched a new [Google Pay Firebase Extension](https://firebase.google.com/products/extensions/google-pay-make-payment) at Firebase Summit 2021, which brings the ease of the [Google Pay API](https://developers.google.com/pay/api) to your Firebase apps.

![A screenshot of the Extensions Console that reads: Make Payments with Google Pay and an install in the console button](https://firebasestorage.googleapis.com/v0/b/first-class-blog.appspot.com/o/blog-assets%2F2022%2F02%2Faccept-payments-with-cloud-firestore-and-google-pay%2Foptimized%2Fmake-payments-with-google-pay.jpg?alt=media)

With the Google Pay Firebase Extension, your app can accept payments from Google Pay users, using one or more of the many supported Payment Service Providers (or PSPs), without the need to invoke their individual APIs.

With the extension installed, your app can pass a payment token from the [Google Pay API](https://developers.google.com/pay/api) to your [Cloud Firestore database](https://firebase.google.com/docs/firestore). The extension will listen for a request written to the path defined during installation, and then send the request to the PSP's API. It will then write the response back to the same Firestore node, which you can listen and respond to in real time.

### Open Source
Like all Firebase Extensions, the Google Pay Firebase Extension is [entirely open source](https://github.com/google-pay/firebase-extension), so you can modify the code yourself to change the functionality as you see fit, or even contribute your changes back via pull requests - the sky's the limit.

### Summing it up
Whether you're new to Google Pay or Firebase, or an existing user of either, the new [Google Pay extension](https://firebase.google.com/products/extensions/google-pay-make-payment) is designed to save you even more time and effort when integrating Google Pay and any number of Payment Service Providers with your application.

Get started with the [Google Pay extension](https://firebase.google.com/products/extensions/google-pay-make-payment) today.
