Reply
Highlighted
Member
Posts: 5
Registered: ‎02-23-2012

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.

 

 

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: getting started with CIM in Ruby

[ Edited ]

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.

Highlighted
Member
Posts: 5
Registered: ‎02-23-2012

Re: getting started with CIM in Ruby

@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.

 

 

Highlighted
Member
Posts: 5
Registered: ‎02-23-2012

Re: getting started with CIM in Ruby

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

Highlighted
Member
Posts: 5
Registered: ‎02-23-2012

Re: getting started with CIM in Ruby

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

 

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: getting started with CIM in Ruby

This claims there's CIM sample code for Ruby:

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

 

I use PHP myself.

Highlighted
Member
Posts: 5
Registered: ‎02-23-2012

Re: getting started with CIM in Ruby

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.

Highlighted
Member
Posts: 1
Registered: ‎03-17-2012

Re: getting started with CIM in Ruby

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