googlePayConfigString constant

String const googlePayConfigString

Google Pay configuration JSON string.

This constant provides a complete Google Pay configuration including:

  • Test environment settings for development
  • API version specifications (v2.0)
  • Allowed payment methods and card networks
  • Tokenization specifications for Amwal gateway
  • Billing address requirements and parameters
  • Merchant information and transaction details
  • Country and currency code settings

The configuration supports a wide range of card networks including Visa, Mastercard, Amex, Discover, JCB, Maestro, and regional cards like MADA, UnionPay, and others.

Security Features

  • PAN_ONLY and CRYPTOGRAM_3DS authentication methods
  • Full billing address collection with phone number
  • Gateway tokenization for secure payment processing

Implementation

static const String googlePayConfigString = '''{
"provider": "google_pay",
"data": {
  "environment": "TEST",
  "apiVersion": 2,
  "apiVersionMinor": 0,
  "allowedPaymentMethods": [
    {
      "type": "CARD",
      "tokenizationSpecification": {
        "type": "PAYMENT_GATEWAY",
        "parameters": {
          "gateway": "amwal",
          "gatewayMerchantId": "01234567890123456789"
        }
      },
      "parameters": {
        "allowedCardNetworks": ["VISA", "MASTERCARD", "AMEX", "DISCOVER", "JCB", "MAESTRO", "ELECTRON", "CARTES_BANCAIRES", "UNIONPAY", "EFTPOS", "ELO", "ID_CREDIT", "MADA", "PRIVATE_LABEL", "QUICPAY", "SUICA", "V_PAY"],
        "allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"],
        "billingAddressRequired": true,
        "billingAddressParameters": {
          "format": "FULL",
          "phoneNumberRequired": true
        }
      }
    }
  ],
  "merchantInfo": {
    "merchantName": "Amwal"
  },
  "transactionInfo": {
    "countryCode": "OM",
    "currencyCode": "OMR"
  }
}
}''';