CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 05 Aug 2025 22:10:06 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091201070255
location: https://web.archive.org/web/20091201070255/https://github.com/Shopify/active_merchant
server-timing: captures_list;dur=0.944696, exclusion.robots;dur=0.032401, exclusion.robots.policy;dur=0.014812, esindex;dur=0.016423, cdx.remote;dur=41.131606, LoadShardBlock;dur=538.264260, PetaboxLoader3.datanode;dur=196.265385, PetaboxLoader3.resolve;dur=138.585081
x-app-server: wwwb-app220
x-ts: 302
x-tr: 643
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app220; 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: Tue, 05 Aug 2025 22:10:07 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Tue, 01 Dec 2009 07:02:55 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "9b1df4f2cffc14b476f09500869cacf2"
x-archive-orig-x-runtime: 124ms
x-archive-orig-content-length: 36125
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 01 Dec 2009 07:02:55 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="Tue, 22 Sep 2009 18:39:33 GMT", ; rel="memento"; datetime="Tue, 01 Dec 2009 07:02:55 GMT", ; rel="next memento"; datetime="Sat, 19 Dec 2009 08:44:43 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_13_20091201020227_crawl102-c/51_13_20091201070229_crawl101.arc.gz
server-timing: captures_list;dur=1.120474, exclusion.robots;dur=0.049483, exclusion.robots.policy;dur=0.025416, esindex;dur=0.033377, cdx.remote;dur=65.473722, LoadShardBlock;dur=624.780914, PetaboxLoader3.datanode;dur=583.855381, PetaboxLoader3.resolve;dur=135.310968, load_resource;dur=156.853091
x-app-server: wwwb-app220
x-ts: 200
x-tr: 950
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
|
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 * {Sallie Mae}[https://www.salliemae.com] - US * {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!