PONetcetera3DS2ServiceDelegate

A delegate that handles communication with the PONetcetera3DS2Service.

Functions

Link copied to clipboard
abstract fun activity(): ComponentActivity?

Asks the delegate to provide an activity instance. If you have a custom logic that handles activity lifecycle, you may return null to cleanup the service and stop the flow safely when activity has been destroyed.

Link copied to clipboard
abstract fun handle(redirect: PO3DSRedirect, callback: (ProcessOutResult<String>) -> Unit)

Asks the delegate to handle 3DS redirect.

Link copied to clipboard
open suspend fun shouldContinue(warnings: Set<Warning>): Boolean

Asks the delegate whether the service should continue with the given warnings. Default implementation ignores any warnings and returns true.