<commit_before>![DIBS Logo][1]

# Spree Payment Gateway for DIBS

[![Dependency Status](https://gemnasium.com/futhr/spree-dibs.png)](https://gemnasium.com/futhr/spree-dibs)

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

## Installation

Add spree_dibs and this branch of active merchant to your Gemfile:

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

### 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.

```ruby
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
```

Thanks! [@DylanJ][7] for this hack :)<commit_msg>Add info about 2-0-stable branch to readme.<commit_after>![DIBS Logo][1]

# Spree Payment Gateway for DIBS

[![Dependency Status](https://gemnasium.com/futhr/spree-dibs.png)](https://gemnasium.com/futhr/spree-dibs)

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

## Installation

Add spree_dibs and this branch of active merchant to your `Gemfile`:

```ruby
gem 'spree_dibs', github: 'futhr/spree-dibs', branch: '2-0-stable'
gem 'activemerchant', github: 'futhr/active_merchant', branch: 'dibspayment'
```

### 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.

```ruby
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
```

Thanks! [@DylanJ][7] for this hack :)
{'fraction_non_alphanumeric': 0.12299196787148595, 'fraction_numerical': 0.006024096385542169, 'mean_word_length': 4.217277486910994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6139232', 'n_tokens_mistral': 733, 'n_tokens_neox': 694, 'n_words': 224}