Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

6.0.0

Choose a tag to compare

@IngenicoEPayments IngenicoEPayments released this 04 Aug 14:43
· 9 commits to master since this release

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 calling initialize. After that, an instance of ClientApi can be obtained to make requests to the Connect REST API. Calling any other method on ConnectSDK before initialize was called will result in a ConnectSDKNotInitializedException. The encryptPaymentRequest method that used to be called via Session, has been made available through ConnectSDK.
    • Added a new class that performs network requests with improved error handling: ClientApi. This class replaces most of the functionality of the Session class.
    • Added methods getImageDrawable and getImageUrl to class Tooltip.
  • Changed:
    • IllegalArgumentException is thrown instead of java.security.InvalidParameterException if invalid arguments are passed to methods.
  • Deprecated:
    • Deprecated classes Session, C2SCommunicator and C2SCommunicatorConfiguration in favour of the new SDK entrypoint ConnectSDK and networking with improved error handling via ClientApi.
    • Deprecated all classes that perform lower level networking functionality: BasicPaymentItemsAsyncTask, BasicPaymentProductGroupsAsyncTask, BasicPaymentProductsAsyncTask, ConvertAmountAsyncTask, CustomerDetailsAsyncTask, EncryptDataAsyncTask, IinLookupAsyncTask, LoadImageAsyncTask, PaymentProductAsyncTask, PaymentProductDirectoryAsyncTask, PaymentProductGroupAsyncTask and PublicKeyAsyncTaskandThirdPartyStatusAsyncTask. They will be removed in a future major release.
    • Deprecated exceptions BadPaymentItemException, CommunicationException and UnknownNetworkException in favour of UnknownNetworkResponseException.
    • Deprecated all classes that are used for encryption: SessionEncryptionHelper, EncryptData, Encryptor and EncryptUtil. They will be made internal to the SDK in a future major release.
    • Deprecated method isGooglePayAllowed(Context, C2SCommunicator, BasicPaymentProduct) of class GooglePayUtil. Use method isGooglePayAllowed(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, ReadInternalStorage and WriteInternalStorage. 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 getImage of class Tooltip. Use getImageDrawable instead.
  • Removed:
    • Removed enumerations Region and Environment, 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 CountryCode and CurrencyCode, 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.

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.