Closed CodeMasterYi closed 4 years ago
I didn't get exactly what you meant! What do you need it for?
The Origin Json is important for server-side verification. you lost the raw data.
the raw INAPP_PURCHASE_DATA
is needed in server-side signature verification.~
Long for your help!
I was checking the problem. The original Json is not included because of the problem due to putting one Json in another then passing it to Unity and parsing the data. I think you can regenerate it on Unity side with the data in Purchase class. Although you can just use the Purchase.OrderId and SKU for server-side verification using Bazaar API. It's completely reliable.
I think you can regenerate it on Unity side with the data in Purchase class.
Fields' Order is Important for signature verification.
Yes you're right. If I give you the Jar which prints the original Json can you fix it by yourself? I really have limited time today for full testing.
I checked again. Currently the purchase result is printing which is actually the original Json + itemType + signature. So the order is not changed, you just have to remove itemType and signature from the end of Purchase.json. The order is: orderId, packageName, productId, purchaseTime, purchaseState, developerPayload, purchaseToken
OK, thank you for your help.
How Can I Find the Raw
INAPP_PURCHASE_DATA
for the purchase Signature?