io.paymenthighway.sdk / BackendAdapter / addCardCompleted

addCardCompleted

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

Add card completed

Callback function, which is called once the add card operation has been completed by the user. Here one implements the call to the merchant’s backend, which then fetches the actual tokenization result, the card token and its details from Payment Highway using the provided transaction/tokenization ID ( https://dev.paymenthighway.io/#tokenization ) and stores them Typically the response from the merchant’s backend consists of the card details to display to the user and an identifier for the card, e.g. the card token, or some merchant’s internal ID for this payment method.