Page Summary
-
This content describes the
PaymentOptionstype, which is part of the deprecated Orders version 2 API, used for specifying payment methods for an order. -
The
PaymentOptionsobject can utilize eitherGoogleProvidedPaymentOptionsorActionProvidedPaymentOptionsto handle payment information. -
GoogleProvidedPaymentOptionsrequires tokenization parameters and allows specifying supported card networks, whether prepaid cards are disallowed, and if a billing address is needed. -
PaymentMethodTokenizationParametersare essential for using Google-saved payment methods and should be obtained from the payment gateway, including a tokenization type and gateway-specific parameters. -
ActionProvidedPaymentOptionsare used for payment methods provided by the Action and require a payment type and a display name for the receipt.
- JSON representation
- GoogleProvidedPaymentOptions
- PaymentMethodTokenizationParameters
- ActionProvidedPaymentOptions
Options for payment associated with a order.
| JSON representation | |
|---|---|
{ // Union field |
|
| Fields | ||
|---|---|---|
Union field payment_option. Options for payment. payment_option can be only one of the following: |
||
googleProvidedOptions |
Requirements for Google provided payment instrument. |
|
actionProvidedOptions |
Info for an Action-provided payment instrument for display on receipt. |
|
GoogleProvidedPaymentOptions
Requirements for Google-provided payment method.
| JSON representation | |
|---|---|
{ "tokenizationParameters": { object( |
|
| Fields | |
|---|---|
tokenizationParameters |
Required field for requesting Google provided payment instrument. These tokenization parameters will be used for generating payment token for use in transaction. The app should get these parameters from their payment gateway. |
supportedCardNetworks[] |
The app allows cards from any card network listed here being used in transaction. By default, Amex, Visa, MC and Discover are supported. |
prepaidCardDisallowed |
If true, disallow prepaid cards from being used in the transaction. |
billingAddressRequired |
If true, billing address will be returned. |
PaymentMethodTokenizationParameters
Partner MUST specify the tokenization parameters if payment methods user saved with Google will be used in the transaction. Partner should be able to get these parameters from its own Payment Gateway.
| JSON representation | |
|---|---|
{
"tokenizationType": enum( |
|
| Fields | |
|---|---|
tokenizationType |
Required. |
parameters |
If tokenizationType is set to An object containing a list of |
ActionProvidedPaymentOptions
Requirements for Action-provided payment method.
| JSON representation | |
|---|---|
{
"paymentType": enum( |
|
| Fields | |
|---|---|
paymentType |
Type of payment. Required. |
displayName |
Name of the instrument displayed on the receipt. Required for action-provided payment info. For |