io.paymenthighway.sdk / BackendAdapter

BackendAdapter

interface BackendAdapter<V>

Backend Adapter

This interface defines what customer has to implement (in own backend) in order to use Payment Highway API

Parameters

T - the type of the return data for addCardCompleted

Functions

addCardCompleted

abstract fun addCardCompleted(transactionId: TransactionId, completion: (Result<V, Exception>) -> Unit): Unit

Add card completed

getTransactionId

abstract fun getTransactionId(completion: (Result<TransactionId, Exception>) -> Unit): Unit

Get the transaction id