Google Pay
Introduction
Loading the Google Pay button via COPYandPAY payment widget requires two actions:
- Just like any other brand, GOOGLEPAY must be specified as a brand in step 2.
- Specify your merchant ID in
wpwlOptions.googlePay.gatewayMerchantId
(Click js tab to see the code example). See the Options section for more information.
Options
Google Pay provides a list of features that can be used via the API Reference.
As with other options, you can modify the Google Pay behavior by using wpwlOptions.googlePay
.
The full reference of all available options is shown below in this page.
To quick start your integration, we recommend use our example code below as a guidance (Click js tab to see the code example).
References
The following table lists all available Google Pay options that you can use with wpwlOptions.googlePay
.
Parameter | Description | Examples |
---|---|---|
gatewayMerchantId | Your merchant ID provided by us. | gatewayMerchantId: "8a8294174b7ecb28014b9699220015ca" |
allowedAuthMethods | Fields supported to authenticate a card transaction.
|
allowedAuthMethods: ["PAN_ONLY", "CRYPTOGRAM_3DS"] |
allowedCardNetworks | One or more card networks you support also supported by the Google Pay API.:
|
allowedCardNetworks: ["AMEX", "DISCOVER", "JCB", "MASTERCARD", "VISA"] |
merchantId | A Google merchant identifier issued after your website is approved by Google. Required when going Live. See Google Pay's Integration checklist for more information about the approval process and obtaining a Google merchant identifier. | merchantId: "your_merchantId" |
merchantName | A user-visible merchant name encoded as UTF-8. This name may be shown to the user in the Google Pay payment sheet to describe the merchant requesting payment data. | merchantName: "Example Merchant" |