Google Pay in the JavaScript SDK is available across multiple browsers. See Google's documentation for a full list.

In order to test the entire user flow on an Android device, the user must have at least one card stored in either Android Pay or their Google account. The user can also add a card to their account during the checkout process if none is present.


Be sure to test your website on the latest version of a supported web browser.

In the sandbox, Google Pay will return valid testing nonces that point to a virtual account number; the card selected within Google Pay will not be charged. You can simulate server behaviors by using test amounts on your transactions and test nonces. Transactions will show in the Braintree gateway as Google Pay transactions immediately upon completion.

Go live

After you've tested your integration, you'll need to enable Google Pay in your production account via the Control Panel. If you haven't done so already, here's how:

  1. Log into your Control Panel
  2. Click on the gear icon in the top right corner
  3. Click Processing from the drop-down menu
  4. Scroll to the Payment Methods section
  5. Next to Google Pay, click the toggle to turn it on

In production, you'll also need to follow Google's documentation to register your domain and receive a merchant ID.

Use this merchant ID when creating the payment data request.

var paymentDataRequest = googlePaymentInstance.createPaymentDataRequest({
  merchantId: 'your-merchant-id-from-google', // Omit this line in sandbox; insert your Google merchant ID in production
  transactionInfo: {
    currencyCode: 'USD',
    totalPriceStatus: 'FINAL',
    totalPrice: '100.00' // Your amount
var paymentsClient = new google.payments.api.PaymentsClient({
  environment: 'PRODUCTION'

paymentsClient.loadPaymentData(paymentDataRequest).then(function(paymentData) {
  return googlePaymentInstance.parseResponse(paymentData);
}).then(function (result) {
  // Send result.nonce to your server
}).catch(function (err) {
  // Handle errors

If you already have Google Pay activated in your Control Panel, but need to get this payment method enabled for a particular merchant account, contact us.

Still have questions?

If you can’t find an answer, contact us