This section describes how to set up your website for the Google Pay API's
PRODUCTION
environment and receive chargeable payment methods.
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 and 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.