Problem with InAppBilling

Nachtfalke75

Member
Licensed User
Longtime User
Hello,

i implemented inapp billing to my app.
I used the tutorial and now it looks like that:
B4X:
Sub Manager_PurchaseStateChange (PurchaseState As Int, ProductId As String, OrderId As String, PurchaseTime As Long, ExtraData As String)
    Log("PurchaseStateChange: " & PurchaseState & ", " & ProductId& ", " & OrderId & ", " & DateTime.Time(PurchaseTime) & ", " & ExtraData)
    If PurchaseState = Manager.PURCHASE_STATE_PURCHASED Then
        CallSub2(Main, "addGold", ProductId) 
        CallSub2(Main, "ThankYouForPurchasing", ProductId)
        Main.isTrial = False
        
    End If
End Sub

But it works only sometimes. Sometimes nothing happens, even if i purchased the item.
I really could use help with this problem :sign0085:

and sorry for my bad english :)
 

Nachtfalke75

Member
Licensed User
Longtime User
Do you see the PurchaseStateChange message in the logs?

Where can i find the logs?
On the google play developer account i can see the transaction.
That works, but the user don't receive the content, he purchased.
 
Last edited:
Upvote 0
Top