public interface Transaction
AuthenticationRequestParameters
.AReq
messages and to perform the Challenge Flow.
Created by Ran Haveshush on 24/08/2018.
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up resources that are held by the
Transaction object.Call this method when the transaction is completed. |
void |
doChallenge(android.app.Activity currentActivity,
ChallengeParameters challengeParameters,
ChallengeStatusReceiver challengeStatusReceiver,
int timeOut)
Initiates the 3DS Challenge Flow process.
|
AuthenticationRequestParameters |
getAuthenticationRequestParameters()
Returns the
AuthenticationRequestParameters parameters. |
ProgressDialog |
getProgressView(android.app.Activity currentActivity)
Returns a
ProgressDialog instance (processing screen) that the App may use. |
AuthenticationRequestParameters getAuthenticationRequestParameters()
AuthenticationRequestParameters
parameters.
The App should include these authentication request parameters in the message to the 3DS server.
AuthenticationRequestParameters
parameters, which contains encrypted device information and 3DS SDK information.void doChallenge(android.app.Activity currentActivity, ChallengeParameters challengeParameters, ChallengeStatusReceiver challengeStatusReceiver, int timeOut) throws InvalidInputException
Note: This method shall be called only when the Challenge Flow is to be applied.
When this method is called, control of the App is passed to the 3DS SDK.
At any point of time, if the time taken by the challenge process exceeds the timeout value passed,
then the ChallengeStatusReceiver.timedout()
method will be called.
currentActivity
- The current Activity
instance that invoked this method.challengeParameters
- The ChallengeParameters
, details required by the 3DS SDK to conduct the challenge process during the
transaction. The following details are mandatory:
challengeStatusReceiver
- The ChallengeStatusReceiver
callback object for notifying the App about the challenge status.timeOut
- The timeout interval (in minutes) within which the challenge process must be completed.InvalidInputException
- This exception will be thrown if an input parameter is invalid.
A timeout interval of less than 5 minutes is also treated as invalid input.ProgressDialog getProgressView(android.app.Activity currentActivity) throws InvalidInputException
ProgressDialog
instance (processing screen) that the App may use.currentActivity
- The current Activity
instance that invoked this method.ProgressDialog
instance.InvalidInputException
- This exception shall be thrown if an input parameter is invalid.void close()
Transaction
object.