ActiveMerchant: dumping traffic between Your app and payment gateway
Posted on October 4, 2010 - Filed Under RubyOnRails
Just a quick note – if You need to dump all traffic between payment gateway and Your application using ActiveMerchant just add to Your development.rb:
ActiveMerchant::Billing::QuantumGateway.wiredump_device = File.open("/tmp/q.log", "a+")
ActiveMerchant::Billing::QuantumGateway.wiredump_device.sync = true
Just remember – it will work ONLY You have one application instance, since it uses simple file handle to write all traffic. And replace QunatumGateway with gateway used by You.
Popularity: 18% [?]
Hits for this post: 1987
Similar Posts
- Progress bar for migration
- Empty nil
- Why are You doomed being Ruby developer on Windows platform
- When timeout hit You with Amazon SQS on FreeBSD/VMWare
- Rake and arguments for tasks
Comments
Leave a Reply


