Skip to content

Configuration

The following configuration options can be referenced in Google Pay's web card parameters and Google Pay's Android card parameters.

Gateway Values

TokenizationSpecification

Gateway options are configured in the tokenizationSpecification property of the Google Pay Button setup.

FieldValue
typePAYMENT_GATEWAY
gatewaypaynetworx
gatewayMerchantIDPayNetWorx Merchant ID (MID)

Supported Authentication Methods

AllowedAuthMethods

Authentication methods are configured in the allowedAuthMethods property of the Google Pay Button setup.

PayNetWorx currently supports the CRYPTOGRAM_3DS option only. This method will rely on Google Pay to enforce 3DS and use tokenized virtual cards that are stored on the device.

Supported Card Networks

AllowedCardNetworks

Card networks are configured in the allowedCardNetworks property of the Google Pay Button setup.

PayNetWorx currently supports VISA, Mastercard, American Express, Discover, and JCB card networks with the Google Pay API.

PayNetWorx currently supports card networks only in the US with the Google Pay API.

Example Configurations

json
{
  "apiVersion": 2,
  "apiVersionMinor": 0,
  "allowedPaymentMethods": [
    {
      "type": "CARD",
      "parameters": {
        "allowedAuthMethods": ["CRYPTOGRAM_3DS"],
        "allowedCardNetworks": ["AMEX", "DISCOVER", "JCB", "MASTERCARD", "VISA"]
      },
      "tokenizationSpecification": {
        "type": "PAYMENT_GATEWAY",
        "parameters": {
          "gateway": "paynetworx",
          "gatewayMerchantId": "{PAYNETWORX MERCHANT ID}"
      }
    }
  ]
}

Always attempt to include as much information about a transaction as possible to help customers skip unneeded risk checks and allow the payment to be as frictionless as possible.

Billing Address

If a billing address is required for Google Pay, ensure that the required parameters are included. For more details, see BillingAddressParameters.

Example Billing Address Configurations

json
"allowedPaymentMethods": [
    {
      "type": "CARD",
      "parameters": {
        "billingAddressRequired": true,
        "billingAddressParameters": {
          "phoneNumberRequired": true,
          "format": "MIN"
        },
        "allowedCardNetworks": [...],
        "allowedAuthMethods": [...]
      },
      "tokenizationSpecification": {...}
    },
]