Test & go live
Test your Google Pay integration and complete Google's production approval process.
Google Pay has two environments — TEST for development and PRODUCTION for live payments. You must complete Google's approval process before accepting real payments.
Testing in the TEST environmentAsk
Set environment: 'TEST' in the PaymentsClient constructor to use Google's test environment. In TEST mode:
- No real cards are charged and no real money moves.
- Google provides pre-defined test card numbers for each card brand and outcome.
isReadyToPayreturnstrueregardless of whether the device has a real card enrolled.
Verify the following scenarios before submitting for production:
- Successful payment — Google Pay sheet appears, customer confirms,
payment.completedfires. - Declined payment — Use a test card that triggers a decline; confirm your UI handles the error gracefully.
- Customer cancels — Tap outside the payment sheet; confirm your checkout recovers cleanly.
- 3DS challenge — Use a test card that triggers an additional challenge; confirm VINR handles it without action on your part.
In the VINR sandbox, Google Pay tokens are accepted as TEST environment tokens automatically. You do not need to configure anything separately in the VINR Dashboard for sandbox testing.
Going liveAsk
Before switching to PRODUCTION, complete the following checklist:
Once Google approves your registration, update the PaymentsClient constructor to environment: 'PRODUCTION' and deploy. No VINR Dashboard changes are needed — VINR switches to the production token flow automatically when it detects a production Google merchant ID.
Common issuesAsk
| Symptom | Likely cause |
|---|---|
| Google Pay button does not appear | Domain not allowlisted, or isReadyToPay returned false — check the browser console |
Payment fails in production with invalid_token | environment still set to TEST; or merchant registration not yet approved |
| Button rejected by Google review | Logo or button style does not follow Google Pay brand guidelines |
See alsoAsk
Set up Google Pay
Dashboard configuration and API integration.
Google Pay overview
How Google Pay works with VINR.
Last updated on