Evaluating bids

Anti Luckypatcher

Published on the June 02, 2023 in IT & Programming

About this project


Hello good day, I have a classic payment app and it works perfectly, but when a user uses lucky patcher they can buy items without having to pay, is there a way to avoid this from lucky patcher? I attach my kotlin code so that you have an idea of what any other questions are about internally

`private val purchaseUpdateListener = PurchasesUpdatedListener { billingResult, purchases ->
          when {
              billingResult.responseCode == BillingClient.BillingResponseCode.OK && !purchases.isNullOrEmpty() -> {
                  for (purchase in purchases) {
                      if (purchase.purchaseToken.isNullOrEmpty()) {
                          // The payment was made in cash, it must be handled according to your requirements
                          // You can display a message to the user or perform some specific action
                          Query_Version25() // Call the QueryVersion25() function for cash payments
                      } else {
                              idp = purchase.orderId
                              isProductPurchased = true
              billingResult.responseCode == BillingClient.BillingResponseCode.USER_CANCELED -> {
                  Toast.makeText(this, R.string.ms27, Toast.LENGTH_SHORT).show()
              else -> {
                  Toast.makeText(this, R.string.ms28, Toast.LENGTH_SHORT).show()

          if (isProductPurchased) {
              // Reset the variable to allow the user to buy the same product again
              isProductPurchased = false

Project overview

I want my application to have a payment security system, which when making purchases checks if the purchase is valid or not

Category IT & Programming
Subcategory Apps programming. Android, iOS and others
What is the scope of the project? Small change or bug
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Required platforms Android
I need to Modify an existing app
App type e-Shop
Back-end is required Yes
Payment gateway Yes

Delivery term: Not specified

Skills needed

Other projects posted by B. A.