Used to initialize a Google Pay payment flow.

Represents the parameters that are needed to use the Google Pay API.

interface Request {
    allowPrepaidCards?: boolean;
    allowedPaymentMethod?: AllowedPaymentMethod[];
    billingAddressFormat?: BillingAddressFormat;
    billingAddressRequired?: boolean;
    countryCode?: string;
    emailRequired?: boolean;
    environment?: string;
    googleMerchantId?: string;
    googleMerchantName?: string;
    payPalEnabled?: boolean;
    phoneNumberRequired?: boolean;
    shippingAddressRequired?: boolean;
    shippingAddressRequirements?: ShippingAddressRequirements;
    transactionInfo?: TransactionInfo;
}

Properties

allowPrepaidCards?: boolean

Set to false if you don't support prepaid cards. Default: The prepaid card class is supported.

allowedPaymentMethod?: AllowedPaymentMethod[]

The payment method(s) that are allowed to be used.

billingAddressFormat?: BillingAddressFormat
billingAddressRequired?: boolean

If set to true, the user must provide a billing address.

countryCode?: string

ISO 3166-1 alpha-2 country code where the transaction is processed.

This is required for merchants based in European Economic Area (EEA) countries.

NOTE: to support Elo cards, country code must be set to "BR"

emailRequired?: boolean
environment?: string

A string that represents the environment in which the Google Pay API will be used (e.g. "TEST" or "PRODUCTION").

googleMerchantId?: string

Google Merchant ID is no longer required and will be removed.

Deprecated

Google Merchant ID is no longer required and will be removed.

googleMerchantName?: string

The merchant name that will be presented in Google Pay

payPalEnabled?: boolean

Defines if PayPal should be an available payment method in Google Pay.

{@code true} by default

phoneNumberRequired?: boolean
shippingAddressRequired?: boolean

If set to true, the user must provide a shipping address.

shippingAddressRequirements?: ShippingAddressRequirements

Optional shipping address requirements for the returned shipping address.

transactionInfo?: TransactionInfo

Details and the price of the transaction.

Automatically filled by the plugin from the PaymentRequest.