ActiveMerchant Support for Realex
28 Sep 2009 {View Comments}
As promised in my previous article, I would be releasing the Realex code for ActiveMerchant, a gracious thanks to Ticketsolve who funded this development. So, the code currently resides in my fork of ActiveMerchant at github which you can clone and use in your applications straight away, it should hopefully make it’s way back into the official ActiveMerchant repository soon enough.
gateway = ActiveMerchant::Billing::RealexGateway.new
credit_card = ActiveMerchant::Billing::CreditCard.new({
:name => "John Smith",
:month => "9",
:year => "2009",
:type => :visa,
:number => "1111222233334444",
:verification_value => "xxx"
})
response = gateway.purchase(100, credit_card, {})
For further usage documentation;
- See the main Realex gateway class
- The unit tests
- The remote integration test
Enjoy.