Test & go live

Test your Google Pay integration and complete Google's production approval process.

View as MarkdownInstall skills

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.
  • isReadyToPay returns true regardless 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.completed fires.
  • 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

SymptomLikely cause
Google Pay button does not appearDomain not allowlisted, or isReadyToPay returned false — check the browser console
Payment fails in production with invalid_tokenenvironment still set to TEST; or merchant registration not yet approved
Button rejected by Google reviewLogo or button style does not follow Google Pay brand guidelines

See alsoAsk

Was this page helpful?
Edit on GitHub

Last updated on

On this page