You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A configuration object that defines the allowable authorization methods and card networks
Prop
Type
Description
allowedAuthMethods
GooglePayAllowedAuthMethod[]
- Type: {@link GooglePayAllowedAuthMethod} An array of authorization methods that are allowed to be used during the payment process.
allowedCardNetworks
GooglePayAllowedNetwork[]
- Type: {@link GooglePayAllowedNetwork} An array of card networks that are accepted for payment.
billingAddressRequired
boolean
Set to true if you require a billing address. A billing address should only be requested if it's required to process the transaction. Additional data requests can increase friction in the checkout process and lead to a lower conversion rate.
If shippingAddressRequired is set to true, specify shipping address restrictions.
shippingOptionRequired
boolean
Set to true when the SHIPPING_OPTION callback intent is used. This field is required if you implement support for Authorize Payments or Dynamic Price Updates. For more details see: {@link GooglePayShippingOptionParameters}
shippingOptionParameters
GooglePayShippingOptionParameters[]
Set default options.
GooglePayTransactionInfo
An object that describes a transaction, including its status, price, and locale.
Prop
Type
Description
Default
totalPriceStatus
'FINAL'
- Type: FINAL The status of the transaction's price.
FINAL
totalPrice
string
- Type: string The total monetary value of the transaction with an optional decimal precision of two places. The format should follow the regex format: ^[0-9]+(\.[0-9][0-9])?$
currencyCode
string
- Type: string The ISO 4217 alphabetic currency code.
countryCode
string
- Type: string The ISO 3166-1 alpha-2 country code where the transaction is processed.
GooglePayMerchantInfo
An object that provides information about the merchant requesting payment data.
Prop
Type
Description
merchantName
string
- Type: string The merchant name that is rendered in the payment sheet.
merchantId
string
- Type: string The Google merchant identifier issued after registration with the Google Pay Business Console.
GooglePayShippingAddressParameters
This object is used to set shipping restrictions.
Prop
Type
Description
allowedCountryCodes
string[]
ISO 3166-1 alpha-2 country code values of the countries where shipping is allowed. If this object isn't specified, all shipping address countries are allowed.
phoneNumberRequired
boolean
Set to true if a phone number is required for the provided shipping address.
GooglePayShippingOptionParameters
Prop
Type
Description
shippingOptions
GooglePayShippingOption[]
All of the shipping options available for the current request.
defaultSelectedOptionId
string
An identifier to the default selected shipping option. If this field isn't provided, the first option is the default option.
GooglePayShippingOption
Prop
Type
Description
id
string
The developer can put any value that needs to be returned in PaymentData.
label
string
The label to be displayed as the option.
description
string
A descriptive text that is displayed below the option label.
Enums
GooglePayEnvironment
Members
Value
Description
TEST
'TEST'
Dummy payment environment that is suitable for testing transactions.
PRODUCTION
'PRODUCTION'
Used to accept transactions when a valid Google merchant ID is specified and configured on the domain.
GooglePayAllowedAuthMethod
Members
Value
Description
PAN_ONLY
'PAN_ONLY'
This is associated with payment cards stored on file with the user's Google Account. The returned payment data includes the user's Personal Account Number (PAN).
CRYPTOGRAM_3DS
'CRYPTOGRAM_3DS'
This is associated with cards stored as Android device tokens. The returned payment data includes a 3-D Secure (3DS) cryptogram.
GooglePayAllowedNetwork
Members
Value
Description
AMEX
'AMEX'
American Express
DISCOVER
'DISCOVER'
Discover Card
INTERAC
'INTERAC'
Interac
JCB
'JCB'
Japan Credit Bureau
MASTERCARD
'MASTERCARD'
Mastercard
VISA
'VISA'
VISA
GooglePayBillingAddressFormat
Members
Value
Description
Minimal
'MIN'
Name, country code, and postal code (default).
Full
'FULL'
Name, street address, locality, region, country code, and postal code.