This function checks the validity of GTIN-8, GTIN-12, GTIN-13, and GTIN-14 using the check digit.
A number of classes/functions have been written in different languages, such as Java, PHP, Ruby, TSQL, Javascript, Swift 5, and VBA/VB6 - the supported list :-
Java, PHP, Ruby, TSQL, Javascript, Swift 5, and VBA/VB6.
GO