Sha256: 78db36203a03aea87595d53e500881b79801a49f77430aea6d161da8d716e7f7

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

ActiveMerchantTesting
=====================

This is an early stage plugin replacement for ActiveMerchant's authorize_net_gateway and authorize_net_cim_gateway for use in testing.  It's not complete, just does what I needed it to do (which should be most of the gateway, cim-gateway functionality).

Example
=======

This, of course, depends on active merchant so, if you haven't already

  script/plugin install git://github.com/Shopify/active_merchant.git

Grab the plugin

  script/plugin install git://github.com/wiseleyb/active_merchant_testing.git


In your config/environments/test.rb add something like this:

  ActiveMerchant::Billing::Base.gateway_mode = :test
  CIMGATEWAY = AuthorizeNetCimGatewayTest.new
  GATEWAY = AuthorizeNetGatewayTest.new

Then, in your code, just use the gateway's as normal...

  response = CIMGATEWAY.gateway.delete_customer_profile(:customer_profile_id => 1234)

  response = GATEWAY.capture(dollar_amount, transaction_key)



Copyright (c) 2010 Ben Wiseley, released under the MIT license

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saasaparilla-0.2.2 spec/dummy/vendor/plugins/active_merchant_testing/README
saasaparilla-0.2.1 spec/dummy/vendor/plugins/active_merchant_testing/README
saasaparilla-0.1.8 spec/dummy/vendor/plugins/active_merchant_testing/README
saasaparilla-0.1.7 spec/dummy/vendor/plugins/active_merchant_testing/README
saasaparilla-0.1.6 spec/dummy/vendor/plugins/active_merchant_testing/README