GST check digit validation algorithm2 min read

GST number validation is done through 2 steps

  1. Check if there is a character in position of a character and a number in position of a number.
  2. Validate the check digit that is the last character in the GST no. with  Luhn mod N algorithm (https://en.wikipedia.org/wiki/Luhn_mod_N_algorithm)

An implementation in javascript

USAGE:

true  is returned if the GST.no is valid. false  if not.

Comment below if you have any questions.

Leave a comment

Your e-mail address will not be published. Required fields are marked *