Giter Site home page Giter Site logo

kejiro / spree_gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spree/spree_gateway

0.0 2.0 0.0 648 KB

Community maintained collection of gateways for use in Spree

Home Page: http://spreecommerce.org

License: BSD 3-Clause "New" or "Revised" License

Ruby 92.85% JavaScript 0.03% CSS 0.03% HTML 7.09%

spree_gateway's Introduction

Spree Gateway

Build Status Code Climate

Community supported Spree Payment Method Gateways. It works as a wrapper for active_merchant gateway. Note that for some gateways you might still need to add another gem to your Gemfile to make it work. For example active_merchant require braintree but it doesn't include that gem on its gemspec. So you need to manually add it to your rails app Gemfile.

Installation

  1. Add this extension to your Gemfile with this line:

Spree >= 3.1

gem 'spree_gateway', '~> 3.3'

Spree 3.0 and Spree 2.x

gem 'spree_gateway', github: 'spree/spree_gateway', branch: 'X-X-stable'

The branch option is important: it must match the version of Spree you're using. For example, use 3-0-stable if you're using Spree 3-0-stable or any 3.0.x version.

  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g spree_gateway:install

Finally, make sure to restart your app. Navigate to Configuration > Payment Methods > New Payment Method in the admin panel and you should see that a bunch of additional gateways have been added to the list.

Contributing

In the spirit of free software, everyone is encouraged to help improve this project.

Here are some ways you can contribute:

  • by using prerelease versions
  • by reporting bugs
  • by suggesting new features
  • by writing or editing documentation
  • by writing specifications
  • by writing code (no patch is too small: fix typos, add comments, clean up inconsistent whitespace)
  • by refactoring code
  • by resolving issues
  • by reviewing patches

Starting point:

  • Fork the repo
  • Clone your repo
  • (You will need to brew install mysql postgres if you don't already have them installed)
  • Run bundle
  • (You may need to bundle update if bundler gets stuck)
  • Run bundle exec rake test_app to create the test application in spec/test_app
  • Make your changes
  • Ensure specs pass by running bundle exec rspec spec
  • (You will need to brew install phantomjs if you don't already have it installed)
  • Submit your pull request

Copyright (c) 2014 Spree Commerce and other contributors, released under the New BSD License

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.