IPayment Method
Represents a payment method containing all information needed to submit a basket via Olo's Ordering API
Properties
The billing address associated with the transaction. The country code and postal code will always be set. Other address fields will only be set if isGooglePay is true
and will depend on GooglePayConfig.fullBillingAddressRequired
Convenience property for accessing the country code, equivalent to billingAddress.countryCode
The email associated with the transaction. If isGooglePay is false
or if Google Pay was not configured to require an email address, this will be an empty string
The environment used to create the payment method
Two-digit number representing the card’s expiration month
Four-digit number representing the card’s expiration year
The name associated with the transaction. Will only be provided if isGooglePay and GooglePayConfig.fullNameRequired are true
User-facing description of the payment method as provided by Google. If isGooglePay is false
, this will be an empty string
Whether or not this payment method was created via Google Pay
The phone number associated with the transaction. Will only be provided if isGooglePay and GooglePayConfig.phoneNumberRequired are true
Convenience property for accessing the Zip or postal code, equivalent to billingAddress.postalCode