public interface ThreeDS2Service
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(Context applicationContext)
The cleanup method frees up resources that are used by the 3DS SDK.
|
Transaction |
createTransaction(java.lang.String directoryServerID,
java.lang.String messageVersion)
Creates an instance of Transaction through which the 3DS Requestor App gets the data that is required to perform
the transaction.
|
java.lang.String |
getSDKVersion() |
java.util.List<Warning> |
getWarnings()
Returns warnings produced by the 3DS SDK while performing security checks during initialization.
|
void |
initialize(Context applicationContext,
ConfigParameters configParameters,
java.lang.String locale,
UiCustomization uiCustomization)
The 3DS requester App calls the initialize method at the start of the payment stage of a transaction.
|
void initialize(Context applicationContext,
ConfigParameters configParameters,
java.lang.String locale,
UiCustomization uiCustomization)
throws InvalidInputException,
SDKAlreadyInitializedException,
SDKRuntimeException
applicationContext - ContextconfigParameters - ConfigParameterslocale - String, example value “en_US”.uiCustomization - UiCustomizationInvalidInputException - if invalid input is provided.SDKAlreadyInitializedException - is SDK is already initialized.SDKRuntimeException - if 3DS SDK encounters internal error.java.util.List<Warning> getWarnings() throws SDKNotInitializedException
SDKNotInitializedException - if the 3DS SDK is not initialized.java.lang.String getSDKVersion()
throws SDKNotInitializedException,
SDKRuntimeException
SDKNotInitializedException - if the 3DS SDK is not initialized.SDKRuntimeException - if the SDK experiences internal error while running.void cleanup(Context applicationContext)
throws SDKNotInitializedException
applicationContext - ContextSDKNotInitializedException - if SDK is not initialized.Transaction createTransaction(java.lang.String directoryServerID, java.lang.String messageVersion) throws InvalidInputException, SDKNotInitializedException, SDKRuntimeException
directoryServerID - Registered Application Provider Identifier (RID) that is unique to the Payment System.messageVersion - Protocol version according to which the transaction shall be created.Transaction interface.InvalidInputException - if an input parameter is invalid.SDKNotInitializedException - if SDK is not initialized.SDKRuntimeException - if an internal error is encountered by the 3DS SDK.