This repository was archived by the owner on Mar 19, 2024. It is now read-only.
6.0.0
The SDK has received major improvements to its architecture, and the error handling around network requests. As a result, most of the classes and functionality of the old architecture have been deprecated and will be removed in a future breaking release.
Many functions and classes that have been deprecated for a long time, have been removed.
Please see the migration guide in the documentation folder to find more information about the new architecture, and for a detailed overview of what was removed.
- Added:
- Added a new entry point for the SDK:
ConnectSDK. It should be initialized by callinginitialize. After that, an instance ofClientApican be obtained to make requests to the Connect REST API. Calling any other method onConnectSDKbeforeinitializewas called will result in aConnectSDKNotInitializedException. TheencryptPaymentRequestmethod that used to be called via Session, has been made available throughConnectSDK. - Added a new class that performs network requests with improved error handling:
ClientApi. This class replaces most of the functionality of theSessionclass. - Added methods
getImageDrawableandgetImageUrlto classTooltip.
- Added a new entry point for the SDK:
- Changed:
IllegalArgumentExceptionis thrown instead ofjava.security.InvalidParameterExceptionif invalid arguments are passed to methods.
- Deprecated:
- Deprecated classes
Session,C2SCommunicatorandC2SCommunicatorConfigurationin favour of the new SDK entrypointConnectSDKand networking with improved error handling viaClientApi. - Deprecated all classes that perform lower level networking functionality:
BasicPaymentItemsAsyncTask,BasicPaymentProductGroupsAsyncTask,BasicPaymentProductsAsyncTask,ConvertAmountAsyncTask,CustomerDetailsAsyncTask,EncryptDataAsyncTask,IinLookupAsyncTask,LoadImageAsyncTask,PaymentProductAsyncTask,PaymentProductDirectoryAsyncTask,PaymentProductGroupAsyncTaskandPublicKeyAsyncTaskandThirdPartyStatusAsyncTask. They will be removed in a future major release. - Deprecated exceptions
BadPaymentItemException,CommunicationExceptionandUnknownNetworkExceptionin favour ofUnknownNetworkResponseException. - Deprecated all classes that are used for encryption:
SessionEncryptionHelper,EncryptData,EncryptorandEncryptUtil. They will be made internal to the SDK in a future major release. - Deprecated method
isGooglePayAllowed(Context, C2SCommunicator, BasicPaymentProduct)of classGooglePayUtil. Use methodisGooglePayAllowed(BasicPaymentProduct)instead. - Deprecated class
AssetManager. It will be made internal to the SDK in a future major release. - Deprecated all classes that are used for caching:
CacheHandler,Preferences,ReadInternalStorageandWriteInternalStorage. They will be made internal to the SDK in a future major release. - Deprecated class
TLSSocketFactory. It will be removed in a future major release. - Deprecated method
getImageof classTooltip. UsegetImageDrawableinstead.
- Deprecated classes
- Removed:
- Removed enumerations
RegionandEnvironment, as well as all corresponding methods and functionality. Please use the Create Client Session call of the Server to Server API to obtain the URLs to connect with. - Removed enumerations
CountryCodeandCurrencyCode, as well as all corresponding methods and functionality. Please use strings instead. - The Integration test project has been removed. To perform quick (integration) testing, please use one of the example applications.
- Removed enumerations
The Android Example app project that used to be included in this repository, has been moved to a separate repository. A more modern, Kotlin based, example was added as well.