onTokenizationError

abstract fun onTokenizationError(exception: PCIPTokenizationException)

This is called after a tokenization request fails or encounters an error. Keep in mind that the SDK shows the error to the user before this is invoked. Therefore, this callback can be used to cancel any on-going process involving the tokenization request.

You may also use the error details provided here and display it the way you want when suppressing the error message within the PCIPTokenizationOptions.

Parameters

exception

The exception that occurred.