////// 1) Create new class for your payment gateway (implement IPaymentMethod interface) 2) Create new user control that implements IPaymentMethodModule interface and place it into \NopCommerceStore\Templates\Payment\[FolderName]. It'll be displayed to customers. 3) Create new user cont
rol that implements IConfigurePaymentMethodModule interface and place it into \NopCommerceStore\Administration\Templates\Payment\[FolderName]. It'll be used to configure your payment gateway. 4) Add an appropriate record to "Nop_PaymentMethod" table. You can do it via admin panel (Orders/Payments -> Payment Methods). //////
Hi;
I try to create a new payment method like this que but i cant show the Payment method in the Nop.CommerceStore .ascx pages...I added my project payment module below How can I solve this Problem ??? // u can download my project here... http://www.expressmarket.com.tr/Payment.Est_Module.rar
Server Error in '/' Application. Value cannot be null. Parameter name: type Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: type
Source Error:
Line 533: if (paymentMethod == null) Line 534: return decimal.Zero; Line 535: var iPaymentMethod = Activator.CreateInstance(Type.GetType(paymentMethod.ClassName)) as IPaymentMethod; Line 536: Line 537: decimal result = iPaymentMethod.GetAdditionalHandlingFee();
Did you add a reference in the NopCommerceStore project to your new payment method assembly? As NopCommerce uses reflection to load a given payment method type it should know where its assembly is located, so if you add a project reference to your payment project it will be copied in the bin folder and later be found and loaded by the reflection API.
Thank you 7Spikes for your advice. I added references before NopCommerceStore project.I added my payment method in the Payment method and i create web user control in the store and trying to integrate with db . (Also i added new tables in the projects for save all payment transactions) And I got some errors there :(