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