Skip to content

Validate your Shipping Addresses in Spree using UPS Street Level Address Verification service

License

Notifications You must be signed in to change notification settings

nicedawg/spree-ups-address-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpreeUpsAddressValidation

This extension aims to make it simple to validate your customers' shipping addresses using the Address Validation service which UPS provides.

Installation

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

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

Copyright (c) 2014 [Brady Somerville], released under the New BSD License

About

Validate your Shipping Addresses in Spree using UPS Street Level Address Verification service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published