/apklischeckpayment

Check app is paid in Apklis

Primary LanguageKotlin

Check app paid in Apklis APK

Installing

  • Step 1. Add the JitPack repository to your build file
allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
  • Step 2. Add the dependencys
   implementation 'com.github.Z17-CU:apklischeckpayment:$VERSION'
  • Only for Java App add this dependency
   implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:$LAST_VERSION'

Usage

  • It is necessary to have the Apklis application installed and a section started to check, otherwise the user would be null and the payment would be false.

  • Check paid Kotlin

    val response = Verify.isPurchased(this, PACKAGE_ID)
    val userName = response.second
    val isPaid = response.first
  • Check paid Java
   Pair<Boolean, String> response = Verify.Companion.isPurchased(this, PACKAGE_ID);
   String userName = response.getSecond();
   Boolean isPaid = response.getFirst();

Contributing

All contributions are welcome!!!