PaymentMethod

data class PaymentMethod(    val card: Card,     val ref: String,     val type: String,     val balance: Balance?,     val customerId: String? = null,     val reusable: Boolean? = true)

Parameters

card

Refer to the Card model.

ref

A string identifier that refers to an instance in Forage's database of a PaymentMethod, a tokenized representation of a customer's card.

type

The type of the customer’s payment instrument. ex: "ebt".

balance

Refer to the Balance model. null until a balance inquiry has been performed.

customerId

A unique identifier for the end customer making the payment.

reusable

Whether the PaymentMethod can be reused. If false, then the PaymentMethod can only be used for a single transaction.

Constructors

Link copied to clipboard
constructor(    card: Card,     ref: String,     type: String,     balance: Balance?,     customerId: String? = null,     reusable: Boolean? = true)

Properties

Link copied to clipboard
Link copied to clipboard
val card: Card
Link copied to clipboard
val customerId: String? = null
Link copied to clipboard
val ref: String
Link copied to clipboard
val reusable: Boolean? = true
Link copied to clipboard