Cartthrob Google Pay
Carthrob Google Pay brings the speed and convenience of Google Pay directly to your ExpressionEngine + CartThrob store. With just a tap, your customers can check out securely using the payment methods saved to their Google accounts. You’ll reduce friction at checkout, increase mobile conversions, and give shoppers the seamless payment experience they already trust—all while keeping CartThrob’s flexibility and power intact.
Buy NowCartThrob PayPal Google Pay
The Google Pay (PayPal) Payment Gateway for CartThrob
Features
Integrates into existing PayPal infrastructure. Sends payemnts through PayPal directly to the Google Pay API.
Prerelease Considerations
Be sure to review the inital JS build that was engineered for stand alone use: https://github.com/dougblackjr/cartthrob-google-pay-paypal-payment-gateway/blob/main/system/user/addons/cartthrob_paypal_google_pay/views/form_extra.php
installation
You install Google Pay (PayPal) Payment Gateway just like any other ExpressionEngine Add-ons:
- Unzip the Add-on archive:
- Copy the
cartthrob_paypal_google_pay
folder to your ExpressionEngine site's./system/user/addons/
directory. - On the Add-Ons page, find PayPal Google Pay Payment Gateway in the list, and click Install.
Configure
Upon installation, you'll need to configure the Add-on through the CartThrob Payments section.
- Be sure to enable the gateway through the CartThrob configureation
- You can configure for both Sandbox and Production and toggle just like every other Payment Gateway
You'll need to gather multiple pieces of details from your PayPal AND Google Pay accounts
- Merchant ID - The direct ID for your PayPal Account.
- Client ID - This is just the internal ID PayPal assigns for your App
- Secret - Used for creating the request signatures.
Checkout Requirements
Within your Checkout template, you'll HAVE to implement the button output
<div id="google_pay_button_container"></div>
Note that order detais flow through CartThrob so any implementation of Google Pay details should be passed along to CartThrob
Template Tags
update_order_id
Single tag.
Executes a Payment Capture against the Google Pay API and outputs the return as JSON. Should be setup within an empty template
Example
{exp:cartthrob_paypal_google_pay:update_order_id}
payment_details
Returns the required JavaScript ready for implementation. Useful for custom impelemntations. Place on the checkout template
Example
{exp:cartthrob_paypal_google_pay:payment_details}