spree_cpf

Spree extension that adds brazilian CPF field in the address checkout form

Last updated on: July 04 at 05:53 PM

source code bug tracker
Opensource
0 0 1
owner:  tiagoamaro

SpreeCpf

Build Status Coverage Status Dependency Status

Spree Extension that adds CPF field in an order

Installation

Add spree_cpf to your Gemfile:

gem 'spree_cpf'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_cpf:install

Set the preference in an initializer such as config/initializers/spree.rb:

Spree.config do |config|
config.ship_address_has_cpf = true # Default is false
end

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

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_cpf/factories'

Copyright (c) 2014 Tiago Amaro, released under the MIT License

compatible spree versions
tags spree versions
master ~> 2.1.2
authors
Tiago Amaro