GooglePaymentOption

  • The GooglePaymentOption requires a facilitationSpec field in its JSON representation.

  • The facilitationSpec is a string containing a JSON blob that follows the PaymentDataRequest object specification for Google Pay.

  • The example facilitationSpec demonstrates the structure, including API version, merchant information, allowed payment methods, and transaction details.

Requirements for Google-provided payment method.

JSON representation
{
  "facilitationSpec": string
}
Fields
facilitationSpec

string

This JSON blob captures the specification for how Google facilitates the payment for integrators, which is the PaymentDataRequest object as defined in https://developers.google.com/pay/api/web/reference/object#PaymentDataRequest Example: { "apiVersion": 2, "apiVersionMinor": 0, "merchantInfo": { "merchantName": "Example Merchant" }, "allowedPaymentMethods": [ { "type": "CARD", "parameters": { "allowedAuthMethods": ["PAN_ONLY", "CRYPTOGRAM_3DS"], "allowedCardNetworks": ["AMEX", "DISCOVER", "JCB", "MASTERCARD", "VISA"] }, "tokenizationSpecification": { "type": "PAYMENT_GATEWAY", "parameters": { "gateway": "example", "gatewayMerchantId": "exampleGatewayMerchantId" } } } ], "transactionInfo": { "totalPriceStatus": "ESTIMATED", "totalPrice": "12.34", "currencyCode": "USD" } }