I'm creating a Payment plugin and currently I need to build a Url in PostProcessPayment(This function is for redirect after process checkout) function (for redirect back to my own Controller).
If this is inside controller, I can use the below to build a Url by using @Url. Url.Content("~")) + Url.Action("HandlePaymentResponse", "abc");
But here is in PaymentProcessor.cs file. So is there another way to create url here ? I tried to inject the IUrlHelper here in PaymentProcessor.cs constructor but it look not allow to do this.
Normally URL's are setup in the configuration and settings and so they don’t need to be built When building a new Payment Plugin it should just be the case of looking at existing plugins like PayPal Standard or the others to see how things have been done previously