Java Question In-App Billing3 and Google receipts

DevBaby

Active Member
Licensed User
Longtime User
There are several Analytic Tools that offer to verify in-app purchases (such as deltaDNA). This is done by capturing the receipt from Google and sending this info to the vendro's server where they the verify the purchase.

Below is an example of what deltaDNA requires to validate of purchase

Code: Copy
"transactionServer":"GOOGLE",
"transactionReceipt":"{
\"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\"
}", "transactionReceiptSignature ":"rNvoHwiBdLSW+........VncbYVJ61fmfsQ=="

Is it possible to get this info from the In-App Billing3 Library?
 
Check the value of:
Code: Copy
Dim jo As JavaObject = Product
Log(jo.RunMethod("getOriginalJson", Null))

Hi erel,

I was able to get the result per your instructions, see the attached pic.

Purchase json.jpg


When I tried to call jo.GetField("mSignature"), I got an error stating that mSignature was not found.
 
Back
Top