Active Merchant plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/active_merchant
== Sample Usage
# 10 dollars in cents ten_dollars = 1000 credit_card = CreditCard.new( :number => '4242424242424242', :month => 8, :year => 2006, :name => 'Tobias Luetke', :type => 'visa' ) if creditcard.valid? gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new( :login => 'LOGIN_ID', :password => 'TRANSACTION_KEY' ) response = gateway.purchase(ten_dollars, credit_card) if response.success? ... else raise StandardError.new( response.message ) end end
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: scott, 9 months ago

