Interface Transaction


  • public interface Transaction
    Holds parameters that the 3DS Server requires to create AReq messages and to perform the Challenge Flow.
    • Method Detail

      • doChallenge

        void doChallenge​(android.app.Activity currentActivity,
                         ChallengeParameters challengeParameters,
                         ChallengeStatusReceiver challengeStatusReceiver,
                         int timeOut)
                  throws InvalidInputException,
                         SDKRuntimeException
        Initiates the challenge process.

        IMPORTANT NOTICE:

        • Must be called on the main(UI) thread!
        • Must be called before 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
        Parameters:
        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:
        • 3DS Server Transaction ID
        • ACS Transaction ID
        • ACS Reference Number
        • ACS Signed Content
        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.
        Throws:
        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.
      • getProgressView

        ProgressView getProgressView​(android.app.Activity currentActivity)
                              throws InvalidInputException,
                                     SDKRuntimeException
        Creates an instance of ProgressView.

        IMPORTANT NOTICE:

        • This method must be called on the main(UI) thread!
        Parameters:
        currentActivity - Activity
        Returns:
        an instance of Progress View (processing screen) that the 3DS Requestor App uses.
        Throws:
        InvalidInputException - will be thrown if an input parameter is invalid.
        SDKRuntimeException - if an internal error is encountered by the 3DS SDK.
      • close

        void close()
            throws SDKRuntimeException
        Cleans up resources that are held by the Transaction object.
        Throws:
        SDKRuntimeException - if called while Transaction is ongoing or if Transaction failed to close.