Skip to content
loading...

Post form to new window and handle response

github logo ・1 min read  

Hi, I am having problem with integrating Razorpay payment gateway with my react app. The problem is in Razorpay hosted payment setup I need to post form data to an url and server will render that url page with loading gif then it loads the payment method of Razorpay. With vanilla javascript and html form all things work well but when I use react to manually handle form submit I got response of 200 but nothing as response body. However if it is possible to post the data after opening a new window to that window and render response on that window it will solve the problem.
Hope this will help you in understanding what I am trying to achieve.
https://codesandbox.io/s/priceless-waterfall-eck9c

Thank you.

twitter logo DISCUSS
Classic DEV Post from Jun 27 '19

Jack Of All Trades or Master of One?

That age old question: how many pies should one have a thumb in?

Manish profile image
React Js, Go, Python, Javascript Developer.