Sha256: ccbe938278163c19e8107a49e8429ed3b6d118808617f5530bd0113491c0a10c
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
Spree Cielo [](https://travis-ci.org/zaeznet/spree_zaez_cielo) ============== This gem implements some funcionalities of Cielo to Spree Commerce. Installation ------------ Add spree_zaez_cielo to your Gemfile: ```ruby gem 'spree_zaez_cielo', github: 'zaeznet/spree_zaez_cielo' ``` Bundle your dependencies and run the installation generator: ```shell bundle bundle exec rails g spree_zaez_cielo:install ``` Settings ------- To configure the Cielo settings, go to /admin/cielo_settings/edit (or access by the menu in configurations > Cielo Settings). To set the settings through a config file, you can assign values to the settings like so: ```ruby Spree::CieloConfig[:token] = 'asd-123' ``` See all settings in /lib/spree/cielo_configuration.rb. Funcionalities ------- This gem supports credit and debt transactions. The credit card available are: * Visa; * Mastercard; * Diners; * Discover; * Elo; * American Express; * JCB. And the debt cards are: * Visa; * Mastercard. The transaction by token can be set by setting (using the `Spree::CieloConfig[:generate_token]`). 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`. ```shell 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: ```ruby require 'spree_zaez_cielo/factories' ``` Copyright (c) 2015 Zaez Inovação Digital, released under the New BSD License
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_zaez_cielo-3.0.1 | README.md |