Posts

Post marked as solved
6 Replies
0 Views
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.
Post marked as solved
6 Replies
0 Views
The answer was so simple i am sorry, i should pass a String object to the POST request. Instead, i was passing a Dict in python which doesn't make sense. The code should be : request_body = json.dumps({"receipt-data": token}) Thanks for your time, you can close my case as well !
Post marked as solved
6 Replies
0 Views
Hello, thanks for the update (i had already read this documentation) but i thought the password was only needed for subscriptions (which i don't use). I will try tomorrow with the app's shared secret in the request !