GooglePayRequest
Represents the parameters that are needed to use the Google Pay API.
Constructors
Properties
Required. The ISO 4217 alphabetic currency code of the transaction.
Optional list of cart items shown in the payment sheet (e.g. subtotals, sales taxes, shipping charges, discounts etc.). If you pass non-empty list of display items be sure to also set the value for totalPriceLabel.
Optional. Settrue if the buyer's billing address is required to be returned, falseotherwise. @property billingAddressFormat Optional. The [GooglePayBillingAddressFormat] billing address format to return. Defaults to [GooglePayBillingAddressFormat.MIN]. @property isShippingAddressRequired Optional. Set trueif the buyer's shipping address is required to be returned, falseotherwise. @property shippingAddressParameters Optional. The shipping address requirements. @property allowPrepaidCards Defaults to false. Settrueprepaid cards are allowed. @property isPayPalEnabled Defaults to true. Allows PayPal to be a payment method in Google Pay. @property googleMerchantName Optional. The merchant name that will be presented in Google Pay @property countryCode The 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" @property totalPriceLabel Custom label for the total price within the display items. This field is required if [displayItems] are defined. @property allowCreditCards Defaults to true`.
Optional. Settrue if the buyer's email address is required to be returned, false otherwise.
Optional. Set true if the buyer's phone number is required to be returned as part of the billing address and shipping address, false otherwise.
Required. The total price of this transaction in format: 0-9+(\.0-9)? (ex: "12.34")
Required. The GooglePayTotalPriceStatus status of the transaction's total price.
Optional. A unique ID that identifies a transaction attempt. Merchants may use an existing ID or generate a specific one for Google Pay transactions. This field is optional, but merchants are strongly encouraged to add it for the best troubleshooting experience with Google.
Functions
Simple wrapper to configure the GooglePayRequest's allowedAuthMethods
Simple wrapper to configure the GooglePayRequest's cardNetworks
Simple wrapper to assign given parameters to specified paymentMethod
Simple wrapper to configure the GooglePayRequest's tokenizationSpecification