ThreeDSecureClient
class ThreeDSecureClient
3D Secure is a protocol that enables cardholders and issuers to add a layer of security to e-commerce transactions via password entry at checkout.
One of the primary reasons to use 3D Secure is to benefit from a shift in liability from the merchant to the issuer, which may result in interchange savings. Please read our online documentation for a full explanation of 3D Secure.
Constructors
Link copied to clipboard
Initializes a new ThreeDSecureClient instance
Functions
Link copied to clipboard
suspend fun createPaymentAuthRequest(context: Context, request: ThreeDSecureRequest): ThreeDSecurePaymentAuthRequest
fun createPaymentAuthRequest(context: Context, request: ThreeDSecureRequest, callback: ThreeDSecurePaymentAuthRequestCallback)
Call this method to initiate the 3D Secure flow.
Link copied to clipboard
suspend fun initializeChallengeWithLookupResponse(lookupResponse: String): ThreeDSecurePaymentAuthRequest
fun initializeChallengeWithLookupResponse(lookupResponse: String, callback: ThreeDSecurePaymentAuthRequestCallback)
Initialize a challenge from a server side lookup call.
Link copied to clipboard
suspend fun prepareLookup(context: Context, request: ThreeDSecureRequest): ThreeDSecurePrepareLookupResult
fun prepareLookup(context: Context, request: ThreeDSecureRequest, callback: ThreeDSecurePrepareLookupCallback)
Creates a stringified JSON object containing the information necessary to perform a lookup
Link copied to clipboard
fun tokenize(paymentAuthResult: ThreeDSecurePaymentAuthResult, callback: ThreeDSecureTokenizeCallback)
When launching the 3DS challenge, call this method from the ThreeDSecureLauncherCallback passed to the ThreeDSecureLauncher.