GooglePayRequest
Represents the parameters that are needed to use the Google Pay API.
Constructors
Properties
Defaults to true
.
Defaults to false
. Settrue
prepaid cards are allowed.
Optional. The GooglePayBillingAddressFormat billing address format to return. Defaults to GooglePayBillingAddressFormat.MIN.
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"
Required. The ISO 4217 alphabetic currency code of the transaction.
Optional. The merchant name that will be presented in Google Pay
Optional. Settrue
if the buyer's billing address is required to be returned, false` otherwise.
Optional. Settrue
if the buyer's email address is required to be returned, false
otherwise.
Defaults to true
. Allows PayPal to be a payment method in Google Pay.
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.
Optional. Set true
if the buyer's shipping address is required to be returned, false
otherwise.
Optional. The shipping address requirements.
Required. The total price of this transaction in format: 0-9+(\.0-9)? (ex: "12.34")
Optional. Custom label for the total price within the display items
Required. The GooglePayTotalPriceStatus status of the transaction's total price.
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
Assemble all declared parts of a GooglePayRequest to a JSON string for use in making requests against Google