I have tried to start from the plugin here
https://www.nopcommerce.com/p/2421/gestpay-payment-plugin.aspx
and edit in order that would be compatible with nop 3.9.
Can you help me?
First of all in GestPayPaymentProcessor.cs in Properties I have added this code
public string PaymentMethodDescription
{
//return description of this payment method to be display on "payment method" checkout step. good practice is to make it localizable
//for example, for a redirection payment method, description may be like this: "You will be redirected to PayPal site to complete the payment"
get { return _localizationService.GetResource("Plugins.Payments.GestPay.Fields.PaymentMethodDescription"); }
}
and in Fields I have added
private readonly ILocalizationService _localizationService;.
Now is compiled correctly, but in the application I have error.
System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto. in Nop.Plugin.Payments.GestPay.GestPayPaymentProcessor.get_PaymentMethodDescription() in Nop.Web.Factories.CheckoutModelFactory.PreparePaymentMethodModel(IList`1 cart, Int32 filterByCountryId) in Nop.Web.Controllers.CheckoutController.PaymentMethod() in lambda_method(Closure , ControllerBase , Object[] ) in System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) in System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) in System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) in System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(I
Can you help me?
How to edit Views and Other Cs modules.
Thanks for the help.
Andrea