Skip to content
Docs
Get RestroPress

Google Pay Payment Gateway

Updated 2 min read
On this page

RestroPress Google Pay Payment Gateway adds a "Google Pay" option to checkout, but it does not talk to Google Pay itself. When the customer chooses it, the plugin hands the order to the Paytm or PhonePe gateway extension, which must be installed, enabled and configured. The extension is a thin wrapper of about 150 lines and has no settings of its own.

Requirements#

  • RestroPress.
  • The RestroPress Paytm or PhonePe payment gateway, enabled under RestroPress › Settings › Payment Gateways. The plugin looks for the gateway IDs paytm and phonepe.

Installation#

  1. Go to Plugins › Add New › Upload Plugin, upload the ZIP, install and activate.
  2. Configure and enable Paytm or PhonePe first.
  3. Under RestroPress › Settings › Payment Gateways, enable Google Pay and save.

There is no licence key field in this plugin.

Settings#

The Google Pay section under RestroPress › Settings › Payment Gateways contains only a note: "Google Pay is integrated via supported gateways like Paytm or PhonePe. Ensure one of those gateways is configured." There are no options to save.

The Google Pay section showing its note

How it works#

  1. The customer chooses Google Pay at checkout. No card form is shown.
  2. On placing the order the plugin checks the enabled gateways. If neither Paytm nor PhonePe is enabled, checkout shows "Google Pay requires Paytm or PhonePe gateway to be enabled."
  3. If Paytm is enabled it is used; otherwise PhonePe. The plugin sets the purchase data gateway to that one and runs its rpress_gateway_paytm or rpress_gateway_phonepe action. From there the payment, redirect, return and order status are entirely handled by that other extension.

The plugin does not choose Google Pay inside the Paytm or PhonePe payment page; what the customer sees there is decided by that gateway. Refunds are not implemented.

Troubleshooting#

  • "Google Pay requires Paytm or PhonePe gateway to be enabled." Enable and configure one of them.
  • Orders created this way may be recorded under the Paytm or PhonePe gateway rather than Google Pay, because the underlying gateway creates the order. This is not confirmed.

Changelog highlights#

The plugin ships no readme changelog. Plugin header version: 1.0.0.

Was this page helpful?