Are you interested in attending a Google Pay launchathon in your city? Let us know!

Test and deploy

About the test environment

A Google Pay API test configuration does not return live, chargeable tokens; it allows you to test your pre-purchase workflow.

Initialize a new PaymentsClient with a JavaScript object containing an environment property set to TEST to use a test environment with an example response.

var paymentsClient =
    new google.payments.api.PaymentsClient({environment: 'TEST'});

Review our branding requirements

To ensure your compliance with our guidelines and standards, please make sure your application complies with our brand guidelines.

Test on a compatible device

Test your website on an Android device with Chrome for Android version 59 or higher and Google Play services version 11.4.x or higher. Test with a payment method on file in Google Pay, if supported in your country, and with supported cards stored in your Google account.

Test using remote debugging from Chrome for Desktop to view console errors and warnings output by Chrome for Android.

View logs from your Android device for more information about possible errors. You may view error logs using the Logcat tool window in Android Studio, using the adb logcat command-line tool, or inside an Android bug report. Search for WalletMerchantError to view error messages related to the Google Pay API.

adb logcat -s WalletMerchantError

Get access to the production environment

When you are ready to deploy your Google Pay API integration, sign up to get access and test with production credentials.

Send feedback about...

Google Pay API