Ritu Singh
Problem:
I'm trying to integrate the Stripe API in my Python application; therefore, I'm not using the Python Stripe library but instead using Stripe API endpoints only. The issue I'm facing is with the payload especially when sending array or nested dictionary like below:
when I run this I get error below:
But when I change its format like below it works:
This is same for objects also I will have to send like below to make it work:
Solution:
That's because the data type that Stripe API endpoint expects is application/x-www-form-urlencoded.
Suggested blogs:
>PHP cURL to upload video to azure blob storage
>PHP Error Solved: htaccess problem with an empty string in URL
>Plugins and Presets for Vuejs project
>Python Error Solved: load_associated_files do not load a txt file
>Python Error Solved: pg_config executable not found
>Set up Node.js & connect to a MongoDB Database Using Node.js
>Setting up a Cloud Composer environment: Step-by-step guide
>How to merge cells with HTML, CSS, and PHP?