Take the 2-minute tour ×

Authorize.net provides some sample code for using CIM with ruby but its uses XML. I am would like to do this with a more rails like method similar to the following AIM transaction code provided by authorize.net

transaction = AuthorizeNet::AIM::Transaction.new(API_LOGIN_ID, TRANSACTION_KEY, :gateway =>  :sandbox)
credit_card = AuthorizeNet::CreditCard.new('4111111111111111', '1120')
response = transaction.authorize(bid.amount, credit_card)

I have searched but cannot find any sample code. Can anyone please provide a link or some sample code to create a customer, store a creditcard, retrieve the customer and edit?

Thank you

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I found the ActiveMerchant gem it has a gateway to CIM.


share|improve this answer

Your Answer


