Hi everyone!
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.
Thanks for all help in advance!