No commit activity in last 3 years
No release in over 3 years
Adds Billet as a Payment Method to Spree Commerce
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Spree Billet Build Status

Extension to add the functionalities of billets to Spree Commerce. This extension uses the gem brcobranca to generate the billet, the shipping file and read the return file. To documentation and additional information about generation, see the fork of Zaez about that.

Installation

Add spree_zaez_billet to your Gemfile:

gem 'spree_zaez_billet', github: 'zaeznet/spree_zaez_billet'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_zaez_billet:install

Banks

The banks and types of files supported for this extension are:

Billet

  • Banco do Brasil;
  • Itaú;
  • Bradesco;
  • Caixa;
  • Santander Banespa;
  • HSBC;
  • Sicredi.

See the docs to available wallets.

Shipping File (arquivo remessa)

  • Banco do Brasil (CNAB240);
  • Caixa (CNAB240);
  • Itaú (CNAB400);
  • Bradesco (CNAB400).

See the docs to configure the information.

Return file (arquivo retorno)

  • CNAB400;
  • CNAB240;
  • CBR643.

Settings

To configure the settings, you can go to admin/billet_settings page, or in an initialize file you can modify the settings like that:

Spree::BilletConfig[:account] = '1234'

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_zaez_billet/factories'

Copyright (c) 2015 Zaez Inovação Digital, released under the New BSD License