voltrue2 / in-app-purchase

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

<Google> Failed: malformed receipt #274

Closed kodekq closed 5 years ago

kodekq commented 5 years ago

Hello. I have a problem here. When I try to verify json, I get an error ( Failed: malformed receipt), but if the received json is output to the log, copy and paste it onto the web service (http://iap.gracenode.org/), then it passes verification without any problems and there are no errors. In this situation, I do not even know which side to look for the problem.

kodekq commented 5 years ago

I figured out, it was necessary to get the resulting json through JSON.parse

famictech2000 commented 3 years ago

Can you please elaborate the solution? ow do you get the info through JSON.parse?