How to configure the Google Pay module?

Module - Google Pay

The Google Pay module allows you to install Google's payment method on your store. This way, your customers no longer need to fill in their banking information on your site - they can simply use their secure Google account wallet. Our module offers two Google Pay integration modes: a classic integration at the end of the checkout process, as well as a cart-level integration for one-click express checkout. The module uses the Stripe payment gateway, ensuring highly secure transactions and encrypted data exchanges that comply with European laws, both for you and your customers.

1/ Basic Settings

To use Google Pay on your store, you must create a Stripe account. Registration is free.

Once your account is created, follow our documentation to activate Google Pay in your dashboard and retrieve your test and production API keys.
Go to the module configuration and in the "Basic Settings" tab, enter your test and production API keys (entering production keys is mandatory even in test mode):

 

 

Save.

We recommend activating test mode to perform a test transaction after configuring the module, before going into production (see the last part of this documentation).

 

 

Important: Always keep your secret API keys in a safe place and never share them.

 

2/ Automatic Refund Configuration

The module allows you to configure automatic refunds via Stripe.

Go to the "Refund Settings" tab and select the order status(es) that will trigger an automatic refund.

For example:

 

 

Don't forget to save.

The refund will be automatically processed via Stripe when an order changes to one of the selected statuses.

 

Important: When processing a refund, you MUST first generate a credit slip in your PrestaShop back-office, then change the status of the concerned order to one of the selected refund statuses. The module will then automatically send the refund request to Stripe based on the credit slip amount.

 

3/ Google Pay Button Customization

Button Appearance

The module allows you to configure the appearance of the Google Pay button.

Go to the "Button Settings" tab and choose the theme (light or dark) for the Google Pay button:

 

 

Here's the difference between the light theme (recommended for dark backgrounds) and the dark theme (recommended for light backgrounds):

 

 

Display on Cart Page

To enable one-click payment with Google Pay from the cart page, simply activate the corresponding option in the "Button Settings" tab:

 

 

Important: Customers will only see the Google Pay button if they are logged in and have at least one shipping address saved

 

Tip: Enabling payment from the cart can increase your conversion rate by reducing checkout steps! Don't hesitate!

 

Terms and Conditions Page Selection

In the "Button Settings" tab, you can choose the CMS page containing your terms and conditions of sale and, in particular, the terms of use of the Google Pay service (the link will be displayed under the Google Pay button).

 

 

 

4/ Testing

After configuration:

  1. Make a test order (in test mode, the bank account registered on the Google account used will not be charged)
  2. Verify that the transaction appears in your Stripe dashboard
  3. Test the automatic refund process
  4. Once all tests are validated, switch to production mode. To do this, disable test mode in the "Basic Settings" tab:

     

Other FAQs in this category