Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Math.IsValidCC
Verifies a credit card number.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Math | 3.1 | Yes | Yes | Yes | Yes | Yes |
MBS( "Math.IsValidCC"; text ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| text | The text with the number. | "12345678" |
Result
Returns 1 on success or 0 on failure.
Description
Verifies a credit card number.This function implements the Luhn algorithm. This is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in US and Canadian Social Insurance Numbers.
If this function returns 0, you can be sure the number is not valid. But if the function returns 1, you may want to check the number online with some database.
Example Databases
Blog Entries
Created 18th August 2014, last changed 18th August 2014
Math.InsidePolygon - Math.MillimeterToPixel
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins