How complete my payment gateway - redirect user to external website
I'm trying to make a payment gateway, this gateway is like all others with one exception.
in this gateway, after the user does the following:
add items to cart
got to cart
select MyCustomPayment (can be selected)
click pay (currently just directing to the success page)
after clicking pay, i would like to redirect the user to another url, of a payment gateway
// TODO: Implement contsturutor as needed.
// TODO: Get order here// TODO: generate redirection link here for example link could be https://example.com/orderid=1234// TODO: return redirection link to user