How can I set a redirect 3rd party url when user click on place order button.
Basically What I need is below:
01. user click on place button.
02. in the background a post method will fire to a 3rd part url link
03. the link response me a token id.
04. next it will again call that 3rd party url with that token and order amount data and some credentials like (username, marchant Id, etc)
05. from that response it'll response back a data, from which i'll have to build a payment gateway url and then it'll redirect user in that url which is a bank payment page.
06. then user input their card info and pay using that page.
07. after that, it;ll redirect user to magento 2 success page.
how can I do that? any help plz. I'm new to magento.
You simply want to create new redirect payment gateway extension,
You can try following
i have same problem, now i was created payment gateway with redirect page. but i got stuck on REST API page Magento 2, after take and handle response payment provider. are you got that problem to?