Integrating custom payment provider into web.config
Hello again!
I've built a custom payment provider, and I'm now to the point of plugging it into the site. I've checked the instructions at http://www.publicvoid.dk/IntegratingUCommerceWithAPaymentProvider.aspx for how to add it to the web.config. but the instructions are dated, as the section mentioned doesn't even exist any more (PaymentMethodServices).
What's the proper way to add my custom class into the web.config so that uCommerce will load it up properly? I see entries in there referencing config files at /umbraco/ucommerce/configuration/payments/. Should I copy the layout of one of those and add a new entry to reference it?
I suspect it's not working because I don't quite understand how the config file works, and finding useful detail on everything that you can do with config files is quite a challenge.
which one of the 3 examples did you end up getting to work? I've been stuck on this for a very long time because everytime i get null reference exception when trying to call CreatePayment or ProcessPaymentRequest.
Integrating custom payment provider into web.config
Hello again!
I've built a custom payment provider, and I'm now to the point of plugging it into the site. I've checked the instructions at http://www.publicvoid.dk/IntegratingUCommerceWithAPaymentProvider.aspx for how to add it to the web.config. but the instructions are dated, as the section mentioned doesn't even exist any more (PaymentMethodServices).
What's the proper way to add my custom class into the web.config so that uCommerce will load it up properly? I see entries in there referencing config files at /umbraco/ucommerce/configuration/payments/. Should I copy the layout of one of those and add a new entry to reference it?
Thanks,
-Sheppe
Once you've registered the web.config sections (if you have any config for your provider) you'll need to add an entry to
/Umbraco/ucommerce/confirguration/payments.config
I just copied an existing one, and changed the namespaces. Once you've done this, it should appear as a selectable payment option.
Matt
Thanks for the reply, Matt.
My library consists of one namespace: uCommercePayflowPro, and one class: Transaction, which has implement the IPaymentMethodService.
I updated the file you mentioned, but my service isn't showing up. Here's what I've added:
<component id="PayFlow Pro" service="UCommerce.Transactions.Payments.IPaymentMethodService, UCommerce" type="uCommercePayflowPro.Transaction, uCommercePayflowPro" />
I also tried the following, with no luck:
<component id="PayFlow Pro" service="uCommercePayflowPro.Transaction, uCommercePayflowPro" type="uCommercePayflowPro.Transaction, uCommercePayflowPro" />
and
<component id="PayFlow Pro" service="uCommercePayflowPro.Transaction, uCommercePayflowPro" type="uCommercePayflowPro.Transaction, uCommercePayflowPro.Transaction" />
I suspect it's not working because I don't quite understand how the config file works, and finding useful detail on everything that you can do with config files is quite a challenge.
Thanks in advance! :)
-Sheppe
Just a quick update... it turned out all I needed to do was restart the web service.
-Sheppe
Hi Sheppe,
which one of the 3 examples did you end up getting to work? I've been stuck on this for a very long time because everytime i get null reference exception when trying to call CreatePayment or ProcessPaymentRequest.
Thanks,
is working on a reply...