PaymentOption

data class PaymentOption constructor(@DrawableRes val drawableResourceId: Int, val label: String)

The customer's selected payment option.

Constructors

Link copied to clipboard
constructor(@DrawableRes drawableResourceId: Int, label: String)

Properties

Link copied to clipboard

The drawable resource id of the icon that represents the payment option.

Link copied to clipboard

A Painter to draw the icon associated with this PaymentOption.

Link copied to clipboard

A label that describes the payment option.

Functions

Link copied to clipboard
fun icon(): Drawable

Fetches the icon associated with this PaymentOption.