voltrue2 / in-app-purchase

A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
http://iap.gracenode.org
Other
1.04k stars 287 forks source link

Signature is not provided in google receipt #312

Open Tekrajs opened 4 years ago

Tekrajs commented 4 years ago

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

emersonhsieh commented 4 years ago

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