This SDK supports easy integration of Tyro's Pay API in you Android app.
Currently the SDK only supports Google Pay, more functionality will be included later
- Android 5.0 (API level 21) and above
- Compile SDK 31 and above
- Android Gradle Plugin 7.4.2
- Gradle 5.4.1+
- AndroidX
Store GitHub Packages Username
export GH_PACKAGE_USER={YOUR_GITHUB_USERNAME}
Setup GitHub Personal Access Token (PAT)
- Follow this GitHub guide to generate a PAT with
read:packages
permission - Store the new token as an environment variable:
export GH_PACKAGE_TOKEN={YOUR_GITHUB_TOKEN}
Add tyro-pay-api-sdk-android
to your build.gradle
dependencies.
dependencies {
implementation 'com.tyro:tyro-pay-api-sdk-android:1.0.0'
}
Add the repository to your build.gradle
repositories {
maven {
url = uri("https://maven.pkg.github.com/tyro/tyro-pay-api-sdk-android")
credentials {
username = System.getenv("GH_PACKAGE_USER")
password = System.getenv("GH_PACKAGE_TOKEN")
}
}
}
More detailed guide is available in GitHub Packages - working with the gradle registry
Get started with our guides
Our example app demonstrates how to use the GooglePay client which integrates our Tyro Pay API.