No commit activity in last 3 years
No release in over 3 years
This gem makes possible to generate Bank Intermedium's payment slips in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
 Project Readme

BoletoIntermedium

This gem makes possible to generate Bank Intermedium's payment slips in ruby

Installation

Add this line to your application's Gemfile:

gem 'BoletoIntermedium'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install BoletoIntermedium

Usage

In order to generate the bank's slips, you need first to initialize the gem's module with some initial configurations:

BoletoIntermedium.configure do |config|
    config.account = "0000000" #Your account number
end

Then, you can generate the payment slips:

boleto = Boleto.new(
    payment_slip:       1,         #YOUR control number (Integer)
    value_in_cents:     100,       #Value to be paid in cents (Integer)
    due_date:           Date.today #Due Date (Date)
)

To get the bar code:

boleto.bar_code

To get the formatted digitable line:

boleto.formatted_digitable_line

To get the non-formatted digitable line:

boleto.digitable_line

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hamdan85/BoletoIntermedium.