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
I found the ActiveMerchant gem it has a gateway to CIM.