Deploy production environment

This section describes how to set up your website for the Google Pay API's PRODUCTION environment and receive chargeable payment methods.

  1. Set up your website for production.
  2. Update your Merchant ID value.
  3. Launch your web integration.

Set up your website for production

The following example shows how to initialize paymentsClient with an environment property of PRODUCTION:

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

Update your Merchant ID value

Obtain your Merchant ID value from the Google Pay & Wallet Console, and update the merchantId property in the MerchantInfo object.

Launch your web integration

After you've received launch approval, you can launch Google Pay functionality on your website and begin to accept chargeable payment methods from your customers.