Thought i would tackle the Myvirtualmerchant/Elavon/Usbank xml realtime processing. I already have it working on a a live site using asp with out a problem.
SO.....
I used the Authorize.net as a template and made some changes.
I added a new project property and code under the Nopcommerce -> payment area.
I added the code for the Admin setup and the web side data entry.
But somehow something is now broken. I get the following error on any of the payment methods i try and it is always with my new (myvirtualmerchant class even when not active).
The error is occurring at:
var iPaymentMethod = Activator.CreateInstance(Type.GetType(paymentMethod.ClassName)) as IPaymentMethod;
the class name is: NopSolutions.NopCommerce.Payment.Methods.myvirtualmerchant.myvirtualmerchantPaymentProcessor, Nop.Payment.myvirtualmerchant
all exist. All appear to be referenced correctly. No build errors. I can select my payment type, update the options on the configurations tab.
But when I click the "shopping cart" link to go to the cart I get the error:
ArgumentNullException was unhandled by user code
do I need to make sure all the functions return something? Not sure why it is calling any of this at the cart level. And it was not doing this prior. No if I select manual payment it does the same error. some reference appears to be lost.
Value can not be null
parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at NopSolutions.NopCommerce.BusinessLogic.Payment.PaymentManager.GetAdditionalHandlingFee(Int32 paymentMethodId) in C:\Documents and Settings\Administrator\Desktop\shop_cart open source\Libraries\Nop.BusinessLogic\Payment\PaymentManager.cs:line 87
at NopSolutions.NopCommerce.Web.Modules.OrderTotalsControl.BindData(Boolean isShoppingCart) in C:\Documents and Settings\Administrator\Desktop\shop_cart open source\NopCommerceStore\Modules\OrderTotals.ascx.cs:line 121
at NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.BindData() in C:\Documents and Settings\Administrator\Desktop\shop_cart open source\NopCommerceStore\Modules\OrderSummary.ascx.cs:line 89
at NopSolutions.NopCommerce.Web.Modules.OrderSummaryControl.OnInit(EventArgs e) in C:\Documents and Settings\Administrator\Desktop\shop_cart open source\NopCommerceStore\Modules\OrderSummary.ascx.cs:line 52
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I was so close. Thought I had this.
as you can probably tell I am not a C# coder but do know the .net side of VB. So it is a little different for us VB coders.
Please let me know if you can help. Will keep chipping away.
I did have to rename a function in the region Ctor under the paymentprocessor.cs code. It then asked to change all occurances and I said yes. I have a bad feeling this is where it happened. but the named function was not something in use by nocommerce anywhere else.