IPaymentMethod

Represents a payment method containing all information needed to submit a basket via Olo's Ordering API

Properties

Link copied to clipboard
abstract val cardType: CardBrand?

The issuer of the card (e.g. Visa, Mastercard, etc)

Link copied to clipboard
abstract val country: String?

2-digit country code

Link copied to clipboard

The environment used to create the payment method

Link copied to clipboard
abstract val expirationMonth: Int?

Two-digit number representing the card’s expiration month

Link copied to clipboard
abstract val expirationYear: Int?

Four-digit number representing the card’s expiration year

Link copied to clipboard
abstract val id: String?

The payment method id. This should be set to the token field when submitting a basket

Link copied to clipboard
abstract val isGooglePay: Boolean

Whether or not this payment method was created via Google Pay

Link copied to clipboard
abstract val last4: String?

The last four digits of the card

Link copied to clipboard
abstract val postalCode: String?

Zip or postal code