Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Active Merchant

Active Merchant


Location: Canada, Ottawa


= Active Merchant

This library is supposed to aid in creating e-commerce software in Ruby. In the future we want to support all “good” payment gateways.

This library is the foundation of commerce for http://www.shopify.com.

Please visit the {ActiveMerchant homepage}[http://activemerchant.org] for more resources, tutorials and other information about this project.

Supported Direct Payment Gateways
  • {Authorize.net}[http://www.authorize.net/] – US
  • {Braintree}[http://www.braintreepaymentsolutions.com] – US
  • {CardStream}[http://www.cardstream.com/] – GB
  • {CyberSource}[http://www.cybersource.com] – US
  • {DataCash}[http://www.datacash.com/] – GB
  • {Efsnet}[http://www.concordefsnet.com/] – US
  • {eWAY}[http://www.eway.com.au/] – AU
  • {E-xact}[http://www.e-xact.com] – CA, US
  • {LinkPoint}[http://www.linkpoint.com/] – US
  • {Moneris}[http://www.moneris.com/] – CA
  • {NetRegistry}[http://www.netregistry.com.au] – AU
  • {PayJunction}[http://www.payjunction.com/] – US
  • {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] – US, CA, SG, AU
  • {PayPal Express Checkout (UK)}[https://www.paypal.com/uk/cgi-bin/webscr?cmd=_additional-payment-overview-outside] – GB
  • {PayPal Payflow Pro}[https://www.paypal.com/cgi-bin/webscr?cmd=_payflow-pro-overview-outside] – US, CA, SG, AU
  • {PayPal Website Payments Pro (UK)}[https://www.paypal.com/uk/cgi-bin/webscr?cmd=_wp-pro-overview-outside] – GB
  • {PaymentExpress}[http://www.paymentexpress.com/] – AU, MY, NZ, SG, ZA, GB, US
  • {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] – US
  • {PayPal Website Payments Pro (US)}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside] – US
  • {Plug’n Pay}[http://www.plugnpay.com/] – US
  • {Protx}[http://www.protx.com] – GB
  • {Psigate}[http://www.psigate.com/] – CA
  • {PSL Payment Solutions}[http://www.paymentsolutionsltd.com/] – GB
  • {Quickpay}[http://quickpay.dk/] – DK
  • {Realex}[http://www.realexpayments.com/] – IE, GB
  • {SecurePay}[http://www.securepay.com/] – US
  • {TransFirst}[http://www.transfirst.com/] – US
  • {TrustCommerce}[http://www.trustcommerce.com/] – US
  • {USA ePay}[http://www.usa_epay.com/] – US
  • {Verifi}[http://www.verifi.com/] – US
  • {ViaKLIX}[http://viaklix.com] – US
Supported Offsite Payment Gateways
  • {PayPal Website Payments Standard}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-standard-overview-outside]
  • Chronopay[http://www.chronopay.com]
  • Nochex[http://www.nochex.com]
  • {Banca Sella GestPay}[https://www.sella.it/banca/ecommerce/gestpay/gestpay.jsp]
  • {2 Checkout}[http://www.2checkout.com]
Download

Currently this library is available with svn from:

http://activemerchant.googlecode.com/svn/trunk/active_merchant
Installation

=== From Subversion

You can check out the latest source from svn:

svn co http://activemerchant.googlecode.com/svn/trunk/active_merchant

=== As a Rails plugin

ActiveMerchant includes an init.rb file. This means that Rails will automatically load ActiveMerchant on startup. Run the following command from the root directory of your Rails project to install ActiveMerchant as a Rails plugin:

./script/plugin install http://activemerchant.googlecode.com/svn/trunk/active_merchant

=== From Ruby Gems

Installation from RubyGems

gem install activemerchant -y

== Sample Usage

credit_card = CreditCard.new(
  :type => 'visa',       :number => '4242424242424242',
  :month => 8,           :year => 2012,
  :first_name => 'Bob',  :last_name => 'Bobsen'
)
if creditcard.valid?
end
  1. Create a gateway object for the Authorize.net service gateway = ActiveMerchant::Billing::AuthorizeNetGateway.new
  1. Authorize for 10 dollars ( 1000 cents ) response = gateway.purchase(1000, credit_card)
if response.success?
  1. Capture the money right away gateway.capture(1000, response.authorization)
else
  raise StandardError, response.message 
end

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly


Homepage: http://activemerchant.org

Categories: E-Commerce