cancel
Showing results for 
Search instead for 
Did you mean: 

getting started with CIM in Ruby

I'm interested in implementing CIM with ruby and heroku. Can someone point me to code examples for CIM and ruby?

 

One more question - what are the required fields to charge a card? The sandbox example asked only for card number and expiration date. What about name and address? I type these information in even for amazon, I always thought they are required.

 

 

subaruWRX55
Member
7 REPLIES 7

To charge the card through what API? If you're using CIM, you set up the billing profile and then you just use the profile ID from then on. If you're using AIM, then the minimum is card number and expiration date. Name is no longer used as a security item, and address is only required if you're using the AVS features to match against the card's billing address. Note that you probably do want card code, however.

TJPride
Expert

@TJPride I want to use AIM. Is there any API online, besides me reading the gem file source code directly?

 

Also, do i need to unpack my gem for heroku deployment? I need some pointers here as well.

 

 

Thanks.

 

 

I figured out the heroku question. In Rails 3, it's pretty straight forward, unpacking and refereing in Gemfile by folder.

Can you answer the question regarding CIM and ruby gem? Where do i find good documents and examples for CIM class in ruby gem?

 

This claims there's CIM sample code for Ruby:

http://developer.authorize.net/downloads/samplecode/

 

I use PHP myself.

http://developer.authorize.net/downloads/samplecode/ is not helpful for Ruby.

 

The sample code referenced here doesn't use Authorize.net's own Ruby gem. 

 

I'm just reading the Ruby gem source code and reverse engineering at this point... Not ideal but don't see any way around it.

I am looking for the same sample code you were. Did you ever find anything?