POTest3DSService

class POTest3DSService(activity: Activity, customTabLauncher: PO3DSRedirectCustomTabLauncher? = null, returnUrl: String = String()) : PO3DSService

Service that emulates the normal 3DS authentication flow but does not actually make any calls to a real Access Control Server (ACS). Should be used only for testing purposes in sandbox environment.

Constructors

Link copied to clipboard
constructor(activity: Activity, customTabLauncher: PO3DSRedirectCustomTabLauncher? = null, returnUrl: String = String())

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
open override 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.

open override 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: