Install the SDK
To embed the Mobile SDK into your project, you will need to use Gradle, a build automation tool that offers dependency management features:
Make sure JCenter is on the list of repositories in your project-level build.gradle file:
To integrate the Mobile SDK, add the following dependencies to your app-level build.gradle file:
//Trust Payments SDK core dependency implementation com.trustpayments.mobile:core:2.0.0 //Optional UI module providing ready-to-use "drop-in" view implementation com.trustpayments.mobile:ui:2.0.0
Now you have installed the SDK, we recommend learning how to generate a JSON Web Token (JWT). These are used to securely transmit data during each payment session.
JSON Web TokenSecurity Considerations