Payment Method
constructor(card: Card, ref: String, type: String, balance: Balance?, customerId: String? = null, 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.
customer Id
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.