I see people in ColdFusion land still reinventing the wheel in writing payment gateways. Stop! Believe me when I tell you there are 502 ways for a payment request to fail and I’ve experienced every single one of them! The open source payment processing library, CFPAYMENT, has processed tens of millions of dollars in production applications over the past 5 years. Either use one of our supported gateways (including the very cool Stripe) or write a tiny amount of code to translate requests from your gateway of choice.
To encourage you to leverage rather than rebuild, I’ve moved the source to GitHub where you can fork and pull:
There’s also a Google group where I provide support if you want to use a gateway we don’t yet include. I’ll help you understand how to use the library and extend it so you don’t go through the pain of learning the hard way how transactions can fail in production.