Payment: Integration of cfpayment

Hi,

currently I´m going to extend an existing Checkout. I need integration for Paypal and as well some Credit Cards.

Thats why I wanted to use cfpayment(GitHub - ghidinelli/cfpayment: ColdFusion payment processing library makes plumbing e-commerce apps easy. Charging credit cards has never been easier. Inspired by Ruby's ActiveMerchant.) because most of the things are already build in. At the moment I´am wondering where it would be the best place to drop the cfpayment “framework” in the Contentbox. You need return URLs to handle the response from Paypal etc.
I want to avoid creating a handler with all the methods just to handle returning request.

Is there a recommendation, or a kind of best practice how to do the integration ?

Thanks in advance,
Andy

If you don’t want to create handlers to wrap the cfpayment stuff, you just put it in a folder and either give it its own Application.cfc, or modify the “if” statement in the ColdBox application.cfc to exempt that folder from the processColdBoxRequest() bit. Another idea is to drop it in your views directory and use implicit view dispatch to map virtual handlers to the views. http://blog.coldbox.org/blog/tip-of-the-week-implicit-view-dispatch

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com