Google Pay Setup
How to configure Google Pay domain registration for FloPayCheckout.
Google Pay Setup
Google Pay is one of the Stripe-enabled payment methods surfaced inside the Stripe gateway through Stripe's ExpressCheckoutElement. Whether it appears for a given buyer is decided at runtime by Stripe based on the buyer's browser/device, the domain serving the checkout, and the methods enabled on the connected Stripe account. There is no per-method SDK toggle — showStripe controls the entire Stripe gateway.
To make Google Pay paint reliably with FloPayCheckout you need:
- Stripe domain registration — add every checkout domain in Stripe's Payment method domains settings
- HTTPS — serve the checkout page over
https:// - A supported browser/device — test in an environment where Google Pay is available
- Google Pay enabled in the Stripe Dashboard — under Settings → Payments → Payment methods on the connected account
1. Register the Domain in Stripe
Google Pay will not show unless the domain is registered in Stripe.
- Go to Stripe Dashboard → Settings → Payments → Payment method domains
- Click Add a new domain
- Enter the domain exactly as it appears in the browser (for example
checkout.yourdomain.com) - Click Save and continue
- Repeat for every production, staging, regional, or subdomain where FloPay renders
Register each hostname separately. yourdomain.com, checkout.yourdomain.com, and checkout.stage.yourdomain.com are different domains in Stripe.
Test and live mode
Make sure the domain is registered in the Stripe environment you use for testing, and confirm it is registered in live mode before launch.
If you test locally, use an HTTPS tunnel such as ngrok and register that hostname before testing Google Pay.
No Apple Pay verification file
Unlike Apple Pay, Google Pay does not use the /.well-known/apple-developer-merchantid-domain-association file.
For Google Pay, the important setup step is registering the domain in Stripe's Payment method domains page.
2. Multiple Stripe Accounts
If your app can initialize FloPay with different Stripe publishable keys, register the domain in each Stripe account that may render Google Pay.
If one environment uses Stripe Account A and another uses Stripe Account B, both accounts need the domain added.
3. Browser and Device Requirements
Google Pay only appears on supported browsers/devices with an eligible wallet available.
In practice, test with:
- Chrome or another Chromium-based browser
- A Google Pay-enabled profile or device with an active card
- HTTPS enabled for the checkout page
On Apple/Safari devices, Apple Pay is typically the wallet shown instead. FloPayCheckout only renders the wallet buttons that Stripe makes available for the current browser.
4. FloPayCheckout Configuration
Google Pay is surfaced through the Stripe gateway. There is no per-method SDK prop — once the dashboard and domain steps above are in place, Google Pay paints automatically on supported browsers when the buyer loads the checkout:
<FloPayCheckout sessionId={sessionId} onComplete={handleSuccess} />To hide Google Pay you have two options, depending on whether you want to hide just Google Pay or the entire Stripe gateway:
- Hide only Google Pay: disable Google Pay on the connected Stripe account in the Stripe Dashboard. No SDK change is required and the rest of the Stripe gateway (cards, Apple Pay, Stripe-enabled APMs) keeps rendering.
- Hide every Stripe-rendered method: pass
showStripe={false}to hide the whole Stripe panel — card fields, wallets, and Stripe-enabled APMs.
<FloPayCheckout sessionId={sessionId} showStripe={false} onComplete={handleSuccess} />The same showStripe prop is also available on SplitCardForm.
Troubleshooting
Google Pay button not showing
- Check Stripe domains: Is the current domain listed in Stripe → Payment method domains?
- Check the Stripe account: Is the domain registered on the same Stripe account as the publishable key you are using?
- Check HTTPS: Google Pay does not work on
http://or plainlocalhost - Check the browser/device: Test in Chrome or a supported Chromium browser with Google Pay set up
- Check payment method settings: Make sure the Stripe account/configuration used by this checkout supports wallet payments
- Check the console: Open browser DevTools and look for Stripe errors
Works on one domain but not another
Each hostname must be added separately in Stripe:
yourdomain.comcheckout.yourdomain.comcheckout.stage.yourdomain.com
Works in test but not live
- Confirm the production domain is registered in the live Stripe account
- Confirm production uses the publishable key you expect
- If staging and production use different Stripe accounts, register the domain in both