Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • What you are trying is called 'hooks' checkout these links below 1. reactjs.org/docs/hooks-intro.html 2. freecodecamp.org/news/… Commented Feb 4, 2021 at 15:27
  • Please read questions carefully Commented Feb 4, 2021 at 15:31
  • If i understand the question correctly what you are trying is 1. client clicks Payment btn 2. POST req hits your backend server 3. your backend server inturn makes another POST req to payment gateway and send a delayed responce Commented Feb 4, 2021 at 15:35
  • That's right but I need to send POST request from node js rest api, not from react or in my case angular, It must go from rest api, I know how to send post request from browser there's no problem... Commented Feb 4, 2021 at 15:47
  • I think one step is missing here because in my experience and I did up to 5 integrations with different payments providers where client is running web ot mobile after you receive response you need to create or change the order status Commented Feb 4, 2021 at 16:29