Android Question In-app payment security

SMOOTSARA

Active Member
Licensed User
Longtime User
Hey guys :)

What method do you recommend to improve the security of "BillingManager3" lib ?
My program is simply hacked! by "Lucky Patch" ! :(
What is the standard method to raise payment security?

Thanks!
 

SMOOTSARA

Active Member
Licensed User
Longtime User
Hi Erel
Thanks for your guidance

I have a simple program with in-app payments and with googel ads
The user buys the app to disable the googel ads and after a successful purchase in this section all ads are disabled.

B4X:
Sub BillingManager_PurchaseCompleted (Success As Boolean, Product As Purchase)


    Log(" BillingManager_PurchaseCompleted Success==> "&Success)
    Log(" BillingManager_PurchaseCompleted Product==> "&Product)

    If Success=True Then
        If Product.DeveloperPayload = CodeModule.inapp_DeveloperPayLoad Then
            CodeModule.special_Toast("Thank you for your purchase")
            CodeModule.AriaSharedPreferences_1.SaveBoolean("purchase_completed",True)           
        End If
    Else
        CodeModule.special_Toast("In-app payment error")
    End If


End Sub

I tested the Lucky Patchter app and simply hacked it and received a positive response to the purchase !!!
 
Upvote 0

Emme Developer

Well-Known Member
Licensed User
Longtime User
I use this code, i tried it with freedom and lucky patcher some times ago and for me works. You should to test it
B4X:
Sub manager_PurchaseCompleted (Success As Boolean, Product As Purchase)
    If Success Then
        Dim jo As JavaObject = Product
        Dim valore As String  =jo.RunMethod("getOrderId", Null)
        If valore.Contains("GPA") Then
                       'Real transition
        end if
        end if
End Sub
A real transition in Google, as i remember, has a GPA string in orderId
 
Upvote 0
Top