Use this api to implement billing process from google to an Android application.
This api is based on Trivial Drive Kotlin sample.
- Add the JitPack repository to your root build.gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
- Add the latest version dependency to your module build.gradle
dependencies {
implementation 'com.github.ss26dev:GoogleBillingApi:v1.0.0'
}
- Add the following lines to target project settings.gradle
include ':googleBillingApi'
project(':googleBillingApi').projectDir = new File(settingsDir, '../GoogleBillingApi/GoogleBillingApiLib')
- Also add the library as a dependency to target project module (module_name/build.gradle):
implementation project(':googleBillingApi')