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 6 '19

How do you onboard a new team member?

My team have a lot of roles to fill this year and recruitment is underway. I'm curious, when you joined your team, what made it a smooth experience?

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