POST api call to my site through wp-json returns with status code 500, but works as intended with postman

[ad_1]

Thought it is something to do with CORS but I had Access control allow origin set to * already, tried turning that off but gave me another error instead.

My other POST api also works as intended just this particularly one is not working, this api is for creating a stripe checkout session

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer