Open desmeit opened 3 years ago
I'm having the same issue.
The issue comes when something is wrong with the JSON.
I'm not sure what the type the json.encode
returns but I guess It's returning a string. Try to remove it and maintain only the object, without the json.encode()
I try to validate with firebase cloud functions. Apple is working well but with Android I get an error. This is my functions code:
this is my receipt at flutter:
I get the following error: Unhandled error
<Amazon> Validation failed: { status: 498, message: 'Invalid Purchase Token
and it seems to check the receipt against Amazon and not against Google. What am I doing wrong? https://github.com/voltrue2/in-app-purchase/issues/219 was not helping.