CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 04 Aug 2025 02:13:31 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090917032748
location: https://web.archive.org/web/20090917032748/https://github.com/Shopify/active_merchant
server-timing: captures_list;dur=0.794828, exclusion.robots;dur=0.026425, exclusion.robots.policy;dur=0.012612, esindex;dur=0.013951, cdx.remote;dur=247.599768, LoadShardBlock;dur=406.477552, PetaboxLoader3.datanode;dur=52.830270, PetaboxLoader3.resolve;dur=174.052941
x-app-server: wwwb-app222
x-ts: 302
x-tr: 703
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app222; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 04 Aug 2025 02:13:32 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.35
x-archive-orig-date: Thu, 17 Sep 2009 03:27:46 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "8f3c59312dfbc16fb7ee99ad2b935787"
x-archive-orig-x-runtime: 158ms
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 34848
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 17 Sep 2009 03:27:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 18 Sep 2008 12:39:04 GMT", ; rel="prev memento"; datetime="Sun, 22 Feb 2009 23:37:12 GMT", ; rel="memento"; datetime="Thu, 17 Sep 2009 03:27:48 GMT", ; rel="next memento"; datetime="Tue, 22 Sep 2009 18:39:33 GMT", ; rel="last memento"; datetime="Sat, 03 May 2025 20:29:53 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_11_20090917031240_crawl101_IndexOnly.gpg-c/51_11_20090917032555_crawl101.arc.gz
server-timing: captures_list;dur=0.498563, exclusion.robots;dur=0.018263, exclusion.robots.policy;dur=0.009233, esindex;dur=0.010973, cdx.remote;dur=192.394784, LoadShardBlock;dur=487.910194, PetaboxLoader3.datanode;dur=102.789043, PetaboxLoader3.resolve;dur=497.794341, load_resource;dur=252.027093
x-app-server: wwwb-app222
x-ts: 200
x-tr: 1028
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Shopify's active_merchant at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Active Merchant is a simple payment abstraction library used in and sponsored by Shopify. It is written by Tobias Luetke, Cody Fauser, and contributors. The aim of the project is to feel natural to Ruby users and to abstract as many parts as possible away from the user to offer a consistent interface across all supported gateways. edit |
Homepage: | https://activemerchant.org edit |
Public Clone URL: |
git://github.com/Shopify/active_merchant.git
Give this clone URL to anyone.
git clone git://github.com/Shopify/active_merchant.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:Shopify/active_merchant.git
|

Cody Fauser (author)
Wed Sep 16 07:07:44 -0700 2009
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Wed Dec 31 09:25:12 -0800 2008 | Ignore .orig files [Cody Fauser] |
![]() |
CHANGELOG | Wed Sep 16 07:07:44 -0700 2009 | improve Ogone error messages [Cody Fauser] |
![]() |
CONTRIBUTERS | Thu Aug 20 09:24:41 -0700 2009 | Added support for Elavon gateway. [jstorimer] |
![]() |
MIT-LICENSE | Tue Aug 12 06:15:44 -0700 2008 | Fix MIT-LICENSE [Cody Fauser] |
![]() |
README | Sun May 03 11:03:38 -0700 2009 | Adding Merchant e-Solutions to the README with ... [robbyrussell] |
![]() |
Rakefile | Thu May 07 12:21:54 -0700 2009 | Assume a valid load path when running tests [Cody Fauser] |
![]() |
gem-public_cert.pem | Thu Feb 22 09:45:49 -0800 2007 | Add code to sign the gem git-svn-id: https://a... [codyfauser] |
![]() |
generators/ | Thu May 07 12:21:54 -0700 2009 | Assume a valid load path when running tests [Cody Fauser] |
![]() |
init.rb | Tue May 12 18:55:44 -0700 2009 | Don't setup logger by default [Cody Fauser] |
![]() |
lib/ | Wed Sep 16 07:07:44 -0700 2009 | improve Ogone error messages [Cody Fauser] |
![]() |
script/ | Fri Nov 30 14:14:12 -0800 2007 | Update project to use Rubigen git-svn-id: http... [codyfauser] |
![]() |
test/ | Wed Sep 16 07:07:44 -0700 2009 | improve Ogone error messages [Cody Fauser] |
README
= 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 https://www.shopify.com. Please visit the {ActiveMerchant homepage}[https://activemerchant.org] for more resources, tutorials and other information about this project. == Supported Direct Payment Gateways The {ActiveMerchant Wiki}[https://github.com/Shopify/active_merchant/wikis] contains a {table of features supported by each gateway}[https://github.com/Shopify/active_merchant/wikis/gatewayfeaturematrix]. * {Authorize.Net CIM}[https://www.authorize.net/] - US * {Authorize.Net}[https://www.authorize.net/] - US * {Beanstream.com}[https://www.beanstream.com/] - CA * {Braintree}[https://www.braintreepaymentsolutions.com] - US * {CardStream}[https://www.cardstream.com/] - GB * {CyberSource}[https://www.cybersource.com] - US * {DataCash}[https://www.datacash.com/] - GB * {Efsnet}[https://www.concordefsnet.com/] - US * {eWAY}[https://www.eway.com.au/] - AU * {E-xact}[https://www.e-xact.com] - CA, US * {LinkPoint}[https://www.linkpoint.com/] - US * {Merchant e-Solutions}[https://merchante-solutions.com/] - US * {Modern Payments}[https://www.modpay.com] - US * {Moneris}[https://www.moneris.com/] - CA * {NetRegistry}[https://www.netregistry.com.au] - AU * {NETbilling}[https://www.netbilling.com] - US * {PayJunction}[https://www.payjunction.com/] - US * {PaySecure}[https://www.commsecure.com.au/paysecure.shtml] - AU * {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] - US, CA, SG, AU * {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}[https://www.paymentexpress.com/] - AU, MY, NZ, SG, ZA, GB, US * {PayPal Website Payments Pro (CA)}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - CA * {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}[https://www.plugnpay.com/] - US * {Protx}[https://www.protx.com] - GB * {Psigate}[https://www.psigate.com/] - CA * {PSL Payment Solutions}[https://www.paymentsolutionsltd.com/] - GB * {Quickpay}[https://quickpay.dk/] - DK * {Realex}[https://www.realexpayments.com/] - IE, GB * {Sage Payment Solutions}[https://www.sagepayments.com] - US, CA * {SecurePay}[https://securepay.com.au] - AU * {SecurePay}[https://www.securepay.com/] - US * {SecurePayTech}[https://www.securepaytech.com/] - NZ * {SkipJack}[https://www.skipjack.com/] - US, CA * {TransFirst}[https://www.transfirst.com/] - US * {TrustCommerce}[https://www.trustcommerce.com/] - US * {USA ePay}[https://www.usaepay.com/] - US * {Verifi}[https://www.verifi.com/] - US * {ViaKLIX}[https://viaklix.com] - US * {Wirecard}[https://www.wirecard.com] - DE == Supported Offsite Payment Gateways * {PayPal Website Payments Standard}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-standard-overview-outside] * Chronopay[https://www.chronopay.com] * Nochex[https://www.nochex.com] * {Banca Sella GestPay}[https://www.sella.it/banca/ecommerce/gestpay/gestpay.jsp] * {2 Checkout}[https://www.2checkout.com] * {HiTRUST}[https://www.hitrust.com.hk/] == Download Currently this library is available with git from: git://github.com/Shopify/active_merchant.git == Installation === From Git You can check out the latest source from git: > git pull git://github.com/Shopify/active_merchant.git === 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 git://github.com/Shopify/active_merchant.git === From Ruby Gems Installation from RubyGems > gem install activemerchant == Sample Usage require 'rubygems' require 'active_merchant' # Use the TrustCommerce test servers ActiveMerchant::Billing::Base.mode = :test # ActiveMerchant accepts all amounts as Integer values in cents # $10.00 amount = 1000 # The card verification value is also known as CVV2, CVC2, or CID credit_card = ActiveMerchant::Billing::CreditCard.new( :first_name => 'Bob', :last_name => 'Bobsen', :number => '4242424242424242', :month => '8', :year => '2012', :verification_value => '123' ) # Validating the card automatically detects the card type if credit_card.valid? # Create a gateway object for the TrustCommerce service gateway = ActiveMerchant::Billing::TrustCommerceGateway.new( :login => 'TestMerchant', :password => 'password' ) # Authorize for the amount response = gateway.purchase(amount, credit_card) if response.success? puts "Successfully charged $#{sprintf("%.2f", amount / 100)} to the credit card #{credit_card.display_number}" else raise StandardError, response.message end end == Contributing Please see the {ActiveMerchant Guide to Contributing}[https://github.com/Shopify/active_merchant/wikis/contributing] for information on adding a new gateway to ActiveMerchant.
This feature is coming soon. Sit tight!