Brian Dunning's FileMaker Custom Functions

ValidCard ( pNumber ; pShow )

ValidCard checks the plausibility of a given cardnumber and gives back the check digit or if you want the name of the card.

  Average rating: 4.4 (30 votes) Log in to vote

Klaus-Dieter Bruegmann   Klaus-Dieter Bruegmann - Show more from this author
kade project
http://www.kade-project.de

Share on Facebook Share on Twitter

  Sample input:
complete card number ; ""

complete card number ; "Card"
  Sample output:
check digit

card name

(or "input error")

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

ValidCard checks the plausibility of a given cardnumber and gives back the check digit or if you want the name of the card. You can check various types of cards: American Express, Diner's Club, Visa, Mastercard, Discover, JCB, En Route and also the german "Bahncard" and the "Miles&More" card of the german airline "Lufthansa".

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: