Check capabilities of european payment providers who participate in the SEPA system. The gem currently supports only "Deutsche Bundesbank" as a clearer. You can fetch all providers and their capabilities or fetch only a unique provider by his BIC.
The gem comes with a sqlite3 database which contains all data. In order to access it, you need to have sqlite3 installed.
Last data update: 2016-12-20
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install sepa_clearer
require 'sepa_clearer' # Create a new cleaer instance clearer = SepaClearer::Clearer.new # Fetch all payment providers clearer.all # => [<PaymentProvider: …>, <PaymentProvider: …>] # Fetch a single provider by his identifier code. The BIC is normalized (uppercase and 11 letters filled with X) provider = clearer.find_by_bic('DEIRGENDWAS') # => <PaymentProvider: @bic="DEIRGENDWAS", @name="YOUR PROVIDER", @sct=false, @core=true, @cor1=true, @b2b=false> # Get all capabilities provider.capabilities # => [:core, :cor1]
Update clearer list
bin/update_data from your command line. The script should fetch the
latest data and replace the clearer lists with the new data.
If the script fails, check if the urls have changed. You should find the data here: http://www.bundesbank.de/Navigation/EN/Tasks/Payment_systems/SEPA/SCL_Directory/scl_directory.html
- Fork it ( https://github.com/railslove/sepa-clearer/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request