Coder Social home page Coder Social logo

futhr / spree-dibs Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 300 KB

Spree Payment Gateway for DIBS

Home Page: http://spreecommerce.com

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

Ruby 98.42% JavaScript 0.71% CSS 0.87%
dibs spree-dibs ruby spree-payment-gateway wip draft spree e-commerce rspec extension

spree-dibs's Introduction

DIBS Logo

Spree Payment Gateway for DIBS

Dependency Status Code Climate

DIBS Payment Services, the largest provider of Internet payment solutions in Northern Europe.

Installation

Add spree_dibs and this branch of active merchant to your Gemfile

gem 'spree_dibs', github: 'futhr/spree-dibs', branch: 'master'
gem 'activemerchant', github: 'futhr/active_merchant', branch: 'dibspayment'

NOTE _This cannot be used with official active_merchant gem due to that the DIBS gateway was never merged. This because DIBS do not have a sandbox to run CI tests against.

Heroku SSL gotcha

To make this work if you deploy on Heroku you need to add this to your Rails app in config/initialzers/dibs.rb. You also need to include this code snippet to make your tests pass.

require 'net/http'

Net::HTTP.class_eval do
  def do_start
    # Start Hack
    @ssl_version = :SSLv3 if @address =~ /.*\.dibspayment\.com/
    # PREPARE', End Hack
    connect
    @started = true
  end
end

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

Issue/feature related questions can be asked thru Gitter chat.

Starting point:

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against. Make sure to create spec/support/config.yml from the sample file and modify the merchantid and hmackey variables from your DIBS account information.

  • Fork the repo
  • Clone your repo
  • Run bundle install
  • Add config for your DIBS account
  • 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
  • Submit your pull request

Copyright (c) 2014 Tobias Bohwalli, FreeRunning Technologies and 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.