active_merchant_ext is an active_merchant extension that helps with testing if you are using `AuthorizeNetCimGateway` gateway.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.rdoc
Rakefile
active_merchant_ext.gemspec

README.rdoc

active_merchant_ext

active_merchant_ext is an active_merchant extension that helps with testing if you are using `AuthorizeNetCimGateway` gateway.

Installation

Add following line to your `Gemfile`.

gem 'active_merchant_ext', :git => 'git://github.com/neerajdotname/active_merchant_ext.git'

Usage

Let's say that in `development` environemt you have following setup.

ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::AuthorizeNetCimGateway.new( :login => login, :password => password)

In order to use `AuthorizeNetCimMockedGateway` all you need to do is to replace `AuthorizeNetCimGateway` with `AuthorizeNetCimMockedGateway`. So after the replacement code will look like this.

ActiveMerchant::Billing::Base.mode = :test
::GATEWAY = ActiveMerchant::Billing::AuthorizeNetCimMockedGateway.new( :login => login, :password => password)

Now in test enviroment calls will go to the mocked gateway. Please take a look inside since , at this time, not all the method calls are being mocked.

License

MIT License. Copyright 2011 BigBinary. BigBinary.com