Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Validates european vat numbers. Standalone or as a ActiveModel validator.
tag: v0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rvmrc
Gemfile
Gemfile.lock
Guardfile
MIT-LICENSE
README.markdown
Rakefile
valvat.gemspec

README.markdown

== valvat

Validates european vat numbers. Supports simple syntax verification and lookup via the VIES web service.

== Installation

gem install valvat

== Basic Usage

To verify the syntax of an vat number:

Valvat::Syntax.validate("DE345789003") => true or false

To check if the given vat number exists:

Valvat::Lookup.validate("DE345789003") => true or false or nil

Keep in mind that the VIES webservice might be offline at some time for some countries. If this happens Valvat::Lookup.validate returns nil.

See http://ec.europa.eu/taxation_customs/vies/viesspec.do for more accurate information at what time the service for a specific country will be down.

== Links

== BlaBla

Copyright (c) 2011 Yolk Sebastian Munz & Julia Soergel GbR

Something went wrong with that request. Please try again.