This extension aims to make it simple to validate your customers' shipping addresses using the Address Validation service which UPS provides.
Add spree_ups_address_validation to your Gemfile:
gem 'spree_ups_address_validation', github: 'nicedawg/spree-ups-address-validation', branch: '2-2-stable'
gem 'address_validator', github: 'nicedawg/address-validator'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_ups_address_validation:install
You'll need to configure config/initializers/spree_ups_address_validation.rb using credentials you obtain from UPS here: https://www.ups.com/upsdeveloperkit?loc=en_US
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_ups_address_validation/factories'
Copyright (c) 2014 [Brady Somerville], released under the New BSD License