Google Pay™️

We recommend reading our Direct Charge overview post first, to fully grasp the basics of the direct charge before you proceed. All merchants using this payment method must adhere to the Google Pay APIs Acceptable Use Policy and accept the terms defined in the Google Pay API Terms of Service.

With Google Pay, Customers can make payments with cards linked to their Google accounts. They can choose from these linked cards to make one-touch payments on the modal. This payment experience elevates UX in your application.

You need approval to use this feature. Contact us at to request approval on your account.


Before starting your integration, you should:

  1. Ensure that your Flutterwave account is live.
  2. Register your business/app on Google Pay and Wallet Console.
  3. Inform your customers whether Google Pay is available in their region. Here is a list of countries/regions where you can use Google Pay.
  4. Prompt your customers to link their cards to their Google account or confirm that they already have a linked card. Google Pay supports Visa, Mastercard, and American Express cards globally. It also supports regional cards like Discover (US 🇺🇸), Elo (Brazil 🇧🇷), Interac (Canada 🇨🇦), and Maestro (EU and Brazil).
  5. Confirm that your browser supports Google Pay. You can see the full list of supported browsers here.

Payment Flow

In this flow, Flutterwave hosts the Google Pay button (hosted integration). You can join the waitlist for direct integration.

While the customer pays with just one tap, the complexity of the payment has been abstracted from the customer. As a developer, here are the important aspects of the payment you need to know about.

  1. Initiating the payment.
  2. Redirecting the user securely. (only redirect URLs with https TLS1.2 and above will be approved for use)
  3. Completing the payment.

Step 1: Initiating the payment

First, you'll need the customer's email. Combine that with the rest of the payment details to create the payload and send it to our charge endpoint. You'll need to specify amountcurrencyfullname and a unique tx_ref. You can also pass more details, like the fullname and custom meta information. See the endpoint reference for all parameters that can be passed.

This payment method is not available in our backend libraries. Call the endpoint to create the checkout button in your application.

# Google Pay
curl --request POST\
   --header'Authorization: Bearer YOUR_SECRET_KEY'\
   --header'content-type: application/json'\
     "amount": 100,
     "currency": "USD",
     "email": "",
     "fullname": "Flutterwave Developers",
     "tx_ref": "BJUYU399fcd43"

Generating a payment link via standard would open a modal like this.

Step 2: Redirecting your customers

After a successful charge, You'll get a response that looks like this:

   "message":"Charge initiated",
      "processor_response":"Payment token retrieval has been initiated",
      "narration":"Test Google Pay charge",
+     "status":"pending",
         "name":"Flutterwave Developers",
+           "redirect":""

Let us take a closer look at the response:

  • status is "successful", which means the charge was initiated successfully.
  • data.status is "pending", meaning that the payment has been initiated but the payment has not yet authorized/approved by the User.
  • meta.authorization contains the important details to complete the payment. The meta.authorization.redirect field has the redirect URL to complete the payment.

This redirect URL houses the Google Pay button. After redirecting your customers to the page, they should see the hosted page with the Google pay button.

On clicking the button, the Google pay modal opens up and the customer selects their preferred card to complete the transaction.

Step 3: Completing the payment

After completing the payment, we'll send you a webhook response to your server. Here is an example webhook response:

      "processor_response":"Payment token retrieval has been initiated",
      "narration":"GooglePay Transaction FOR Flutterwave Developers",
         "name":"Anonymous customer",

In your webhook implementation, on receipt of the hook, you must verify the payment and give value customer. See our guide to transaction verification for details

Next Steps

Congrats 🎉 on your successful integration. Improve your app's payment experience with

  1. Google brand guide.
  2. Google Pay UX best practices.