We need to associate information about the app purchase with the user on our servers. For in-app products, this is easy to do because we can receive the purchase token.
How to achieve the same functionality for a paid app downloaded directly from Google Play? We cannot find a way to receive an order id or purchase token to record on our servers.
I came across this and your question while researching a problem of my own. I think this might be what your looking for:
And here is some sample code:
Consumable
Non-consumable