PO3DSService

interface PO3DSService

Interface for service implementation that handles 3-D Secure transactions.

Inheritors

Functions

Link copied to clipboard

Creates PO3DS2AuthenticationRequest that will be passed to 3DS Server for the AReq.

Link copied to clipboard
open fun cleanup()

Cleanup allocated resources.

Link copied to clipboard
abstract fun handle(challenge: PO3DS2Challenge, callback: (ProcessOutResult<Boolean>) -> Unit)

Handles the given 3DS2 challenge and callbacks with the boolean result: true if challenge was handled successfully and false if transaction was denied. In all other cases callback with the ProcessOutResult.Failure indicating what went wrong.

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

Handles 3DS redirect. If PO3DSRedirect.timeoutSeconds is available it must be respected and should callback when timeout is reached with: