/offsite_payments

A simple and unified API to handle dozens of different offsite payment pages.

Primary LanguageRubyMIT LicenseMIT

Offsite Payments

Build Status Code Climate

Offsite Payments is an extraction from the ecommerce system Shopify. Shopify's requirements for a simple and unified API to handle dozens of different offsite payment pages (often called hosted payment pages) with very different exposed APIs was the chief principle in designing the library.

It was developed for usage in Ruby on Rails web applications and integrates seamlessly as a Rails plugin. It should also work as a stand alone Ruby library, but much of the benefit is in the ActionView helpers which are Rails-specific.

Offsite Payments has been in production use (originally as part of the ActiveMerchant project) since June 2006. It is maintained by the Shopify team, with much help from an ever-growing set of contributors.

The addition of your gateway to offsite_payments does not guarantee placement within Shopify. In order to have your gateway considered, please send an email to payment-integrations@shopify.com with Offsite Payments Integration in the subject. Be sure to include:

  1. Name, URL & description of the payment provider you wish to integrate
  2. Markets served by this integration
  3. List of major supported payment methods
  4. Your most recent Certificate of PCI Compliance
  5. Reason that the Universal API* cannot be used for your integration.

*The Universal API defines a standard set of requests and callbacks that can be used to integrate with Shopify. A sample app and documentation are hosted here. This is the route Shopify recommends for all future integrations.

Installation

From Git

You can check out the latest source from git:

git clone https://github.com/Shopify/offsite_payments.git

From RubyGems

Installation from RubyGems:

gem install offsite_payments

Or, if you're using Bundler, just add the following to your Gemfile:

gem 'offsite_payments'

API documentation.

Supported Integrations

Misc.

  • This library is MIT licensed.
  • We will gladly accept contributions. See CONTRIBUTING.md for more information.