|   Register
Monday, December 01, 2008   
You are here :     Blog
Commerce Starter Kit 2.0 - Payment Provider UserControl project
Location: BlogsKing Wilder's Blog    
Posted by: kwdnnsuper 4/15/2007

I'm presently working on a customer Payment Provider UserControl for the Commerce Starter Kit 2.0.  I'm creating a dynamic way of selecting alternate payment providers in the PaymentService section of the web.config file, with the ability to edit the settings.

What is the purpose of this control?

Presently, the CSK 2.0 application has the PayPal payment provider hard-coded as the provider.  If you add your own provider code and modifications to the web.config file, you need to add it as the first section in the PaymentService section of the web.config file or else it won't be enabled.

My UserControl enables you to add your own payment provider class, modify the web.config file by adding your own provider settings, and have the settings be detected by this user control.

This way you just need to select the provider you want from the drop down menu, make any settings modifications, and your finished.

 

As a developer this can save you lots of time in managing different payment providers for different clients.  You simply replace the existing Credit Card Settings HTML table with this user control, make a few other code modifications, and you're all set!

Once this usercontrol is in place on the /Admin/PaymentConfiguration.aspx page, you simply need to create a new provider class, and web.config/PaymentService section, and the user control handles reading and writing the values to the web.config file.

The file is free to download and use from my Downloads page and you can read the installation instructions in my other Blog article.

My sample code includes the code for a LInkPoint payment processor.

See the article on Payment Processor User Control for more information.

Permalink |  Trackback

Comments (8)   Add Comment
Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By John on 5/20/2007
Nice code too bad I didnt find this sooner because I pretty much did the exact same thing as you did :)

I have C# code all ready and working for Verisign Payflow Pro if your interested in adding it to your source.

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By kwilder on 5/20/2007
Yes, if you have the source for the Payflow Pro, I would love to add it. I'd like to add as many payment processors as possible. When you have a moment, drop me a line at info@kingwilder.com.

Thanks

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By faizmsc on 6/14/2007
Thanks, Is it possible to directly change current CSK 2.0 ASP.net web config file to
implement and test with PayFlow which is UK based as I have noticed that website payment pro is only available in US and for UK PayFlow Pro is now available but in order to use CSK 2.0 for UK what chnages will be required in current CSK 2.0.


Thanks

Faiz

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By kwilder on 6/16/2007
Faiz, unfortunately I don't know much about PayFlowPro. I've heard of it but I have never used it. Since I'm in the US, I don't know what changes might needed to make this work in the UK other than changing the currencyCode to the Pound. You might want to bring this up in the Commerce Starter Kit Forums. Sorry I couldn't be more help. Good luck!

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By dmd on 7/20/2007
Any support for Cybersource?

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By kwilder on 7/24/2007
Re: Cybersource - not at the moment. When I have a moment, I'm hoping to gather as many payment providers from other developers as I can and incorporate them into the User Control.

Also, the user control can be used in any application you have, not just CSK. I'm presently using it in a non-CSK e-commerce app and it works great!

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By peter on 8/30/2007
any support for nova info systems?

Re: Commerce Starter Kit 2.0 - Payment Provider UserControl project    By kwdnnsuper on 9/4/2007
peter, I don't have any providers supplied to me just yet for Nova components. If you want something for viaKlix, that would be harder since they don't have a webservice API component at the moment, just HTML code to place in your application.


Your name:
Title:
Comment:
Add Comment   Cancel 
King's Blog
King's Blog
King's Blog

Copyright 2007 by King Wilder   |  Privacy Statement  |  Terms Of Use