Getting Started
Last updated
Last updated
Download the latest version of the SDK here
The SDK file should be in libs folder of project, then it can be added to build.gradle file of the project like below.
SDK does not allow to run the app on debug. The application must be release build.
Check Security Mechanisms section for the other restriction.
Debug version of the SDK must be used in integration phase by developer. For the internal and external tests, Debug version of SDK must never be used.
SDK needs some third party libraries and the integrator app must have these dependencies. The libraries which is shared below should be added to the build.gradle file.
In order to support schemas' branding animations, jetifier tools must be enabled on your project. The following configuration must be added on your gradle.properties
file.
Using the PayContactless Embed SDK Library
Before accessing the functions within the PayContactless Embed SDK library, there are a few steps to follow:
Initialization: Begin by calling the start
method.
Accessing the SDK: Utilize the getInstance
method. This will allow you to access various methods under PayContactlessEmbed
.
Required Parameters:
Context: Application context
Organization Id: Predefined organization identenfier
Google Clould Project Number: Project Number of your project on Google Cloud
PayContactless Embed SDK uses Play Integrity API for Automatic integrity protection. You need to enable Integrity API on your project and share required credentioans to the PayContactless team. Please check Play Integrity Configuration section.
Remember to pass the these parameters as arguments when invoking the start
method.
By adhering to these steps, you'll ensure the proper and utilization of the PayContactless Embed SDK library functions.
A sample method is highlighted below;
Important Recommendation for Using PayContactlessEmbed SDK
For optimal functionality and seamless integration, it is strongly advised to invoke the start
method of PayContactlessEmbed
within the onCreate
method of your application.
PaycontaclessEmbed needs the acvitiy result to parse the Payment activity reponse. The onAcitivtyResult
method of the SDK must be called in current activity's onActivityResult
method.
A sample usage is highlighted below;