Hello, i'm trying to add my payments service to Payments.config, it shows up in the drop down list and i can selecft it but when I go to checkout i get this error:
Error Loading Razor Script (file: uCommerce Payment) Object reference not set to an instance of an object. at uCommerceMoneris.Library.MonerisPurchase.CreatePayment(PaymentRequest request) at UCommerce.Transactions.TransactionLibraryInternal.CreatePayment(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting) at Castle.Proxies.TransactionLibraryInternalProxy.CreatePayment_callback(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
my dll has namespace uCommerceMoneris.Library
the class MonerisPurchase implements IPaymentMethodService and IPaymentFactory
I'm very new to this stuff because i haven't used .NET in quite some time unforntauately. I really need to know how to set up this config file because i have been stuck on this for 2 weeks literally 2 weeks. i can't seem to get this to work not matter what i do, how can i get the payments.config setup so that my service will be called and not null exception??
Payments.config - adding custom payment
Hello, i'm trying to add my payments service to Payments.config, it shows up in the drop down list and i can selecft it but when I go to checkout i get this error:
Error Loading Razor Script (file: uCommerce Payment) Object reference not set to an instance of an object. at uCommerceMoneris.Library.MonerisPurchase.CreatePayment(PaymentRequest request)
at UCommerce.Transactions.TransactionLibraryInternal.CreatePayment(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
at Castle.Proxies.TransactionLibraryInternalProxy.CreatePayment_callback(Int32 paymentMethodId, Decimal amount, Boolean requestPayment, Boolean overwriteExisting)
my dll has namespace uCommerceMoneris.Library
the class MonerisPurchase implements IPaymentMethodService and IPaymentFactory
My entry in Payments.config
<!-- Moneris (Canada) -->
<component id="Moneris" service="UCommerce.Transactions.Payments.IPaymentMethodService, UCommerce" type="uCommerceMoneris.Library.MonerisPurchase, uCommerceMoneris" />
I'm very new to this stuff because i haven't used .NET in quite some time unforntauately. I really need to know how to set up this config file because i have been stuck on this for 2 weeks literally 2 weeks. i can't seem to get this to work not matter what i do, how can i get the payments.config setup so that my service will be called and not null exception??
is working on a reply...