David J Rice

The blog of freelance Designer & Developer, David Rice.

28 Sep 2009

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;

Enjoy.

David Rice

If you need help with the Design, Build, Management, Hosting or Support of your project do get in touch, I'd love to hear from you!

Recently

Archive