Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Sheppe Pharis 43 posts 139 karma points
    Jan 08, 2013 @ 04:31
    Sheppe Pharis
    0

    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

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 08, 2013 @ 16:21
    Matt Brailsford
    100

    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

  • Sheppe Pharis 43 posts 139 karma points
    Jan 11, 2013 @ 05:49
    Sheppe Pharis
    0

    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

  • Sheppe Pharis 43 posts 139 karma points
    Jan 12, 2013 @ 16:30
    Sheppe Pharis
    0

    Just a quick update... it turned out all I needed to do was restart the web service.

     

    -Sheppe

  • Adrian Blake 10 posts 40 karma points
    Dec 04, 2013 @ 21:37
    Adrian Blake
    0

    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,

Please Sign in or register to post replies

Write your reply to:

Draft