-
263
-
2403
-
7/5/2014
-
Netherlands
In the previous versions of NopCommerce I was able to redirect the customer to the third-party payment url using the following code:
HttpContext.Response.Redirect("http://externalpayment...");
How should this redirecting be done in nopCommerce 4.0 as HttpContext is no longer available in the PaYmentProcessor class
-
263
-
2403
-
7/5/2014
-
Netherlands
Found it:
HttpContext is now available from IHttpContextAccessor (DI)
private readonly IHttpContextAccessor _httpContextAccessor;
-
8
-
40
-
8/13/2019
-
United States
I am not able to redirect with this. It redirects to the cart page.