Im working on my project Employee Site using asp.net.core , Im facing problem in PayPal Gateway integration with Asp.net.core. I have created a controller called PaymentController taking help from https://www.c-sharpcorner.com/article/paypal-payment-gateway-integration-in-asp-net-mvc/ for ActionResult.
‘HttpRequest’ does not contain a definition for ‘Params’ and
no accessible extension method ‘Params’ accepting a first argument of
type ‘HttpRequest’ could be found (are you missing a using directive or
an assembly reference?
at this line im facing error: string payerId = Request.Params["PayerID"];
at this line too with url: string baseURI = Request.Url.Scheme + "://" + Request.Url.Authority
+ "/Home/PaymentWithPayPal?";
2
Answers
(in .NET CORE) Use:
Make sure you are calling the necessary class: