io.paymenthighway.sdk / PaymentContext

PaymentContext

class PaymentContext<V>

PaymentContext manages all the functionality the payment context, such as adding a new payment card.

Parameters

V - the type of the BackendAdapter

config - the configuration for Payment Highway

backendAdapter - provide your BackendAdapter implementation

Constructors

<init>

PaymentContext(config: PaymentConfig, backendAdapter: BackendAdapter<V>)

Main constructor

Functions

addCard

fun addCard(card: CardData, completion: (Result<V, Exception>) -> Unit): Unit

Adds a new Payment Card