class PaymentContext<V>
PaymentContext manages all the functionality the payment context, such as adding a new payment card.
V - the type of the BackendAdapter
config - the configuration for Payment Highway
backendAdapter - provide your BackendAdapter implementation
PaymentContext(config: PaymentConfig, backendAdapter: BackendAdapter<V>)
Main constructor |
fun addCard(card: CardData, completion: (Result<V, Exception>) -> Unit): Unit
Adds a new Payment Card |