Skip to content

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

License

Notifications You must be signed in to change notification settings

tiagoamaro/spree_cpf

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages