Google Pay Troubleshooting Guide
Why Google Pay Isn't Showing on Chromeβ
If Google Pay is not appearing as a payment option on Chrome, here are the common reasons and solutions:
1. Square Dashboard Configurationβ
Google Pay must be explicitly enabled in your Square account:
Steps to Enable:β
- Log in to Square Dashboard
- Navigate to Account & Settings β Business β Payments
- Look for Digital Wallets or Google Pay
- Ensure Google Pay is enabled
- Save changes
Note: Some Square accounts have Google Pay enabled by default, but some require manual activation.
2. HTTPS Requirementβ
Google Pay requires a secure connection (HTTPS) to work:
- β Production: Must use HTTPS
- β
Development:
localhostis considered secure (works with HTTP)127.0.0.1is considered secure- Local network IPs (e.g.,
192.168.x.x) require HTTPS
Solution for local testing:
# If using local network IP, set up HTTPS:
npm install -g local-ssl-proxy
local-ssl-proxy --source 3001 --target 3000
# Then access via https://localhost:3001
3. Browser Requirementsβ
Google Pay has specific browser requirements:
Supported Browsers:β
- β Chrome (Desktop & Mobile)
- β Microsoft Edge (Chromium-based)
- β Opera
- β Brave
- β Safari (Apple Pay only)
- β Firefox (Limited support)
Check Your Chrome Version:β
chrome://version/
Minimum version: Chrome 61+
4. Google Account Setupβ
The user must have Google Pay set up:
- User must be signed into Chrome with a Google account
- User must have at least one payment method saved in Google Pay
- Go to pay.google.com to verify setup
How to check:
- Click on your profile picture in Chrome
- Look for "Payment methods" option
- If not available, Google Pay isn't set up
5. Square Sandbox vs Productionβ
Sandbox Mode (Testing):β
- Google Pay is available but may require additional setup
- Use test payment methods from Google Pay test environment
- Some features may be limited
Production Mode:β
- Full Google Pay functionality
- Real payment methods
- All features available
6. Square Application Configurationβ
Verify your Square application is properly configured:
# .env.local
NEXT_PUBLIC_SQUARE_APPLICATION_ID=sandbox-sq0idb-xxxxx # Must be valid
NEXT_PUBLIC_SQUARE_LOCATION_ID=LXXXXXXXXXXXXX # Must be valid
SQUARE_ACCESS_TOKEN=EAAAE... # Must have payment permissions
7. Geographic Restrictionsβ
Google Pay availability varies by region:
Supported Countries:
- πΊπΈ United States
- π¬π§ United Kingdom
- π¨π¦ Canada
- π¦πΊ Australia
- And many more
Check your configuration:
// In SquareCheckoutForm.tsx
paymentRequest: {
countryCode: "US", // Must match your Square account country
currencyCode: "USD", // Must match your currency
// ...
}
8. Browser Extensions & Ad Blockersβ
Some extensions can interfere with Google Pay:
Common culprits:
- Privacy Badger
- uBlock Origin
- Ghostery
- NoScript
Solution:
- Temporarily disable extensions
- Add your site to whitelist
9. Console Errorsβ
Check the browser console for specific errors:
Open DevTools:
- Press
F12orCtrl+Shift+I(Windows/Linux) - Press
Cmd+Option+I(Mac) - Look for errors related to Google Pay initialization
Common errors:
"Google Pay is not available"β
Google Pay not available: Error: ...
Cause: Browser doesn't support Google Pay or user not logged in
Solution: Ensure user is signed into Chrome with Google account
"Payment request API not available"β
Payment request API not available
Cause: Browser doesn't support Payment Request API
Solution: Update Chrome to latest version
"Merchant blocked"β
Merchant not allowed to use this feature
Cause: Square account not authorized for Google Pay
Solution: Contact Square support to enable Google Pay
10. Testing Checklistβ
Use this checklist to diagnose issues:
- Using Chrome browser (version 61+)
- Signed into Chrome with Google account
- At least one payment method in Google Pay (pay.google.com)
- Site served over HTTPS or on localhost
- Google Pay enabled in Square Dashboard
- Valid Square Application ID and Location ID
- No console errors in DevTools
- No blocking browser extensions
- Testing in supported country
- Square account in good standing
Debugging Stepsβ
Step 1: Verify Square SDK Loadedβ
// In browser console:
console.log(
window.Square ? "β
Square SDK loaded" : "β Square SDK not loaded"
);
Step 2: Check Google Pay Initializationβ
// Look for this in console when page loads:
"Google Pay initialized successfully";
// or
"Google Pay not available: [error message]";
Step 3: Test Payment Request APIβ
// In browser console:
if (window.PaymentRequest) {
console.log("β
Payment Request API supported");
} else {
console.log("β Payment Request API not supported");
}
Step 4: Verify Google Pay Setupβ
// In browser console (requires Square SDK loaded):
const payments = await window.Square.payments(
"YOUR_APP_ID",
"YOUR_LOCATION_ID"
);
try {
const googlePay = await payments.googlePay({
paymentRequest: {
countryCode: "US",
currencyCode: "USD",
total: {
label: "Test",
amount: "1.00",
pending: false,
},
},
});
console.log("β
Google Pay available:", googlePay);
} catch (e) {
console.error("β Google Pay error:", e);
}
Common Solutionsβ
Solution 1: Enable Google Pay in Squareβ
- Go to Square Dashboard
- Account & Settings β Business β Payments
- Enable Google Pay under Digital Wallets
- Wait 5-10 minutes for changes to propagate
Solution 2: Set Up Google Payβ
- Visit pay.google.com
- Sign in with your Google account
- Add a payment method (use test card for sandbox)
- Verify setup is complete
Solution 3: Use Incognito Modeβ
- Open Chrome Incognito window
- Navigate to your checkout page
- This eliminates extension interference
- If it works, disable extensions one by one
Solution 4: Clear Browser Cacheβ
# Or in Chrome:
# Settings β Privacy and security β Clear browsing data
# Select "Cached images and files"
Solution 5: Update Environment Variablesβ
# Verify these are correct in .env.local:
NEXT_PUBLIC_SQUARE_APPLICATION_ID=sandbox-sq0idb-...
NEXT_PUBLIC_SQUARE_LOCATION_ID=L...
SQUARE_ACCESS_TOKEN=EAAAE...
Still Not Working?β
Contact Square Supportβ
If Google Pay still doesn't appear after trying all solutions:
-
Square Developer Support
- Email: developers@squareup.com
- Portal: https://developer.squareup.com/support
-
Information to Provide:
- Square Application ID
- Square Location ID
- Browser and version
- Console error messages
- Country/region
- Testing or Production mode
Alternative Payment Methodsβ
While troubleshooting, you can use:
- π³ Card payments (always available)
- π Apple Pay (if on Safari/iOS)
- π Gift Cards (if enabled)
Additional Resourcesβ
- Square Web Payments SDK - Google Pay
- Google Pay Developer Documentation
- Google Pay Browser Support
- Payment Request API Browser Support
Summaryβ
Most Common Cause: Google Pay not enabled in Square Dashboard or user not signed into Chrome with Google account.
Quick Fix:
- Sign into Chrome with Google account
- Visit pay.google.com and add a payment method
- Enable Google Pay in Square Dashboard
- Refresh the checkout page
Note: The payment method selector will automatically hide if only one payment method (Card) is available, providing a cleaner checkout experience.