public interface Transaction
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Cleans up resources that are held by the Transaction object.
|
void |
doChallenge(Activity currentActivity,
ChallengeParameters challengeParameters,
ChallengeStatusReceiver challengeStatusReceiver,
int timeOut)
Initiates the challenge process.
|
AuthenticationRequestParameters |
getAuthenticationRequestParameters() |
ProgressView |
getProgressView(Activity currentActivity)
Creates an instance of
ProgressView. |
AuthenticationRequestParameters getAuthenticationRequestParameters() throws SDKRuntimeException
SDKRuntimeException - will be thrown if an internal error is encountered by the 3DS SDK.void doChallenge(Activity currentActivity,
ChallengeParameters challengeParameters,
ChallengeStatusReceiver challengeStatusReceiver,
int timeOut)
throws InvalidInputException,
SDKRuntimeException
IMPORTANT NOTICE:
Activity#onSaveInstanceState(Bundle), which is typically on a
Activity's resumed state. For more info for the exact time of invocation of this lifecycle method,
please visit
onSaveInstanceState details
currentActivity - Activity instance that will perform the challenge process.challengeParameters - ChallengeParameters ACS details (contained in the ARes) required by the 3DS SDK
to conduct the challenge process during the transaction. The following details are mandatory:
challengeStatusReceiver - ChallengeStatusReceiver that will be notified about the challenge status.timeOut - timeout interval (in minutes) within which the challenge process must be completed. The minimum
timeout interval is defined to be 5 minutes.InvalidInputException - will be thrown if an input parameter is invalid. A timeout interval of less than the
defined minimum is also treated as invalid input.SDKRuntimeException - if an internal error is encountered by the 3DS SDK.ProgressView getProgressView(Activity currentActivity) throws InvalidInputException, SDKRuntimeException
ProgressView.
IMPORTANT NOTICE:
currentActivity - ActivityInvalidInputException - will be thrown if an input parameter is invalid.SDKRuntimeException - if an internal error is encountered by the 3DS SDK.void close()
throws SDKRuntimeException
SDKRuntimeException - if called while Transaction is ongoing or if Transaction failed to close.