Evaluando propuestas

Anti Luckypatcher

Publicado el 02 Junio, 2023 en Programación y Tecnología

Sobre este proyecto

Abierto

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
                              Query_Version8()
                              Query_Version9()
                              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
          }
      }`

Contexto general del proyecto

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

Categoría Programación y Tecnología
Subcategoría Programación de Apps. Android, iOS y otros
¿Cuál es el alcance del proyecto? Bug o cambio pequeño
¿Es un proyecto o una posición? Un proyecto
Actualmente tengo Tengo las especificaciones
Disponibilidad requerida Según se necesite
Plataformas requeridas Android
Necesito Modificar una app existente
Tipo de app Tienda virtual
Necesita backend
Procesador de pago

Plazo de Entrega: No definido

Habilidades necesarias

Otros proyectos publicados por B. A.