Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 40cc8fd2e3
Fetching contributors…

Cannot retrieve contributors at this time

103 lines (78 sloc) 3.94 kb
= 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
# 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
Jump to Line
Something went wrong with that request. Please try again.