in-app-purchase icon indicating copy to clipboard operation
in-app-purchase copied to clipboard

Signature is not provided in google receipt

Open Tekrajs opened this issue 4 years ago • 1 comments

The sample data shows that signature along with data is required, { "data": {Signed Data JSON}, "signature": "Base 64 encoded signature string" } But in my purchase receipt I only get the following things

{"orderId":"xxxxxxxxxxxxxxxx","packageName":"xxxxxxxxxxxx","productId":"xxxxxxxxxxxxxx","purchaseTime":1586239152181,"purchaseState":0,"purchaseToken":"xxxxxxxxxxxxxxxxxxxxxxxx","autoRenewing":true,"acknowledged":false}

And when validating it with iap it throws error saying {"error":{},"status":498,"message":"Invalid Purchase Token"} Could you please help me out ? Thanks

Tekrajs avatar Apr 07 '20 06:04 Tekrajs

I also have the same problem. I have submitted a pull request that will hopefully fix this problem.

https://github.com/voltrue2/in-app-purchase/pull/319

emersonhsieh avatar Jun 15 '20 22:06 emersonhsieh