POCardTokenizationDelegate

Delegate that allows to handle events during card tokenization.

Functions

Link copied to clipboard

Allows to evaluate card eligibility for tokenization based on issuer information.

Link copied to clipboard

Invoked on card tokenization lifecycle events.

Link copied to clipboard
open fun preferredScheme(issuerInformation: POCardIssuerInformation): String?

Allows to choose default preferred card scheme based on issuer information. Primary card scheme is used by default.

Link copied to clipboard
open suspend fun processTokenizedCard(card: POCard, saveCard: Boolean): ProcessOutResult<Any>

Allows to additionally process tokenized card before completion, for example to authorize an invoice or assign a customer token. Return the result from respective ProcessOut API if it was used. In case of a custom implementation you can pass ProcessOutResult.Success(Unit) or appropriate ProcessOutResult.Failure() with localizedMessage that will be shown directly to the user. Failure will be propagated to shouldContinue function.

Link copied to clipboard

Allows to decide whether the flow should continue or complete after the failure. Returns true by default.