[Solved] How to get the Android' raw json of SkuDetails?

Hi,

Is it possible to access the json sent from Google for SkuDetails?

Thanks!

@damelin2

EDIT
A colleague pointed out that you are asking for product data and not receipt data. In that case, we don’t expose it directly, but the information is in our ProductMetadata object.

With this available, do you still need direct access to the JSON? If so, what is your use case or what goal are you trying to solve?

My original message is only relevant for receipt data, not product data:

Yes, the receipt from Google is available within the Unity Receipt. The format for various stores are detailed here:

There is a post with some details on how to parse Google and iOS receipts here:

I saw this Unity Receipt, but I was referring to the Sku Details received when querying the product inventory on initialize. It’s not related to a purchase (or receipt.) It’s the data returned by getSkuDetails() : Hệ thống thanh toán của Google Play  |  Google Play's billing system  |  Android Developers

I guess that I have all the information to rebuild it, but I’d have preferred to use the data received by the OS

@damelin2

Yeah, I noticed that mistake and updated my post. Hope that helps!

Yes this is enough information. I’m using a third party plugin that track purchases and it asking some information (like the raw sku details json) in order to validate the purchases. I’ll rebuild the json with the information provided.

Thanks

Out of curiosity, which plugin are you using?

Its the plugin of the Tapjoy services

1 Like