AI-generated Key Takeaways
-
The
facilitationSpecfield is a string containing a JSON blob that specifies how Google facilitates the payment for integrators. -
This JSON blob is the
PaymentDataRequestobject, as defined in the Google Pay API documentation. -
The example shows a
PaymentDataRequestobject includingapiVersion,merchantInfo,allowedPaymentMethods, andtransactionInfo. -
Allowed payment methods in the example include CARD with specific allowed authentication methods and card networks, along with tokenization specification.
-
The example
transactionInfoincludestotalPriceStatus,totalPrice, andcurrencyCode.
Requirements for Google-provided payment method.
| JSON representation | |
|---|---|
{ "facilitationSpec": string } |
|
| Fields | |
|---|---|
facilitationSpec |
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" } } |