Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 6 replies, 0 views
Replied In
Error 21002 when validating receipt
Hey !
If i had to guess, you should do the same as i did meaning convert your data to a String object before passing it to the request.
I think in general you can only pass String objects in HTTP requests.
The only question is : does the JS request SDK automatically converts your "dict" - "object" to String.
if i remember, you can do something like :
var body = {"receipt-data": token}
body = str(body)
then in your request (actually you have a "data" var that should be "body" in your request body.