Interface Transaction
-
- All Implemented Interfaces:
public interface Transaction
An instance of this interface holds the AuthenticationRequestParameters. The App needs to pass these parameters to the 3DS Server which requires those parameters to create
AReq
messages and to perform the Challenge Flow.Created by Ran Haveshush on 24/08/2018.
-
-
Method Summary
Modifier and Type Method Description abstract AuthenticationRequestParameters
getAuthenticationRequestParameters()
Returns the AuthenticationRequestParameters parameters. abstract void
doChallenge(Activity currentActivity, ChallengeParameters challengeParameters, ChallengeStatusReceiver challengeStatusReceiver, int timeOut)
Initiates the 3DS Challenge Flow process. abstract void
doChallenge(Activity currentActivity, ChallengeParameters challengeParameters, ChallengeStatusHandler challengeStatusHandler, int timeOut)
Initiates the 3DS Challenge Flow process. abstract ProgressDialog
getProgressView(Activity currentActivity)
Returns a ProgressDialog instance (processing screen) that the App may use. abstract void
close()
Cleans up resources that are held by the Transaction object. -
-
Method Detail
-
getAuthenticationRequestParameters
abstract AuthenticationRequestParameters getAuthenticationRequestParameters()
Returns the AuthenticationRequestParameters parameters.
The App should include these authentication request parameters in the message to the 3DS server.
- Returns:
The AuthenticationRequestParameters parameters, which contains encrypted device information and 3DS SDK information.
-
doChallenge
@Deprecated(message = "Use 'doChallenge(Activity!, ChallengeParameters!, " + "ChallengeStatusHandler!, int): Unit' method instead.") abstract void doChallenge(Activity currentActivity, ChallengeParameters challengeParameters, ChallengeStatusReceiver challengeStatusReceiver, int timeOut)
Initiates the 3DS Challenge Flow process.
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 timedout method will be called.
- Parameters:
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.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.
-
doChallenge
abstract void doChallenge(Activity currentActivity, ChallengeParameters challengeParameters, ChallengeStatusHandler challengeStatusHandler, int timeOut)
Initiates the 3DS Challenge Flow process.
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. If the time taken by the challenge process exceeds the timeout value passed then the onCompletion} method will be called with ChallengeResult.Timeout.
- Parameters:
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.challengeStatusHandler
- The ChallengeStatusHandler callback object for notifying the App about the challenge status.timeOut
- The timeout interval (in minutes) within which the challenge process must be completed.
-
getProgressView
abstract ProgressDialog getProgressView(Activity currentActivity)
Returns a ProgressDialog instance (processing screen) that the App may use.
- Parameters:
currentActivity
- The current Activity instance that invoked this method.- Returns:
The ProgressDialog instance.
-
close
abstract void close()
Cleans up resources that are held by the Transaction object. Call this method when the transaction is completed.
-
-
-
-