Android Question In App-Billing v3 purchaseToken to track orders completed

Ferdari

Active Member
Licensed User
Longtime User
Hi everyone

Im having trouble with the library in app billing 3 v1.11, because i started to track all in-app orders, i implemented a webserver that sends me an email with the phone, model, sim operator, sdk when a buyer succesfully complete an order, it tells me the exact time of the orders.

But counting my orders that i receive on my mailbox, some does not appear in the Developer Console,

im losing about 40-60% of my orders,

so reading in the In-App-billing documentation it says that when an orders was completed or canceled it returns a response to the app in JSON:
B4X:
'{
   "orderId":"GPA.1234-5678-9012-34567",
   "packageName":"com.example.app",
   "productId":"exampleSku",
   "purchaseTime":1345678900000,
   "purchaseState":0,
   "developerPayload":"bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ",
   "purchaseToken":"opaque-token-up-to-1000-characters"
}'

I reclaimed google many times to ask for my lost orders, but they say nothing clear.

So investigating the only way to reclaim is having the JSON, Order ID or PurchaseToken of every order.

The library from Erel does not provide any of this ID or the response in JSON from Google Play.

Do anyone know how to return this JSON when completing an order?

Thanks all ;)
 
Last edited:

Ferdari

Active Member
Licensed User
Longtime User
Sorry Erel, there is no Order ID in the library
itsX9
Sin título.png
itsX9


is there a way to return the PurchaseToken or the OrderID?

the others are not helpful to track an order and i think it is required for the library :confused:

Thanks Erel
 
Last edited:
Upvote 0
Top