CardNonceBackgroundHandler

A callback invoked on a background thread after the customer successfully enters their card information and before the card entry activity finishes. This lets the application perform additional work using the card information, such as as charging the card.

If your server successfully processes the card, handleEnteredCardInBackground should return CardEntryActivityCommand.Finish to finish the card entry activity.

If your server encounters an error while processing the card, handleEnteredCardInBackground should return CardEntryActivityCommand.ShowError. The error will be displayed and the customer will have an opportunity to edit their card information and re-submit.

Functions

Link copied to clipboard
abstract fun handleEnteredCardInBackground(cardDetails: CardDetails): CardEntryActivityCommand