• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Credit Card Validation Script

Participant ,
Oct 08, 2008 Oct 08, 2008

Copy link to clipboard

Copied

Can anyone suggest a way to validate the credit card number? How to use it in coldfusion?
Thanks!!!
TOPICS
Advanced techniques

Views

844

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 08, 2008 Oct 08, 2008

Copy link to clipboard

Copied

Below is an example of code that makes use of the automatic credit card validation in Coldfusion. My guess is that Coldfusion uses the Luhn algorithm. If you feel like doing the Luhn validation yourself, then there are lots of resources on the web to assist you, especially the Wikipedia on Luhn.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 20, 2008 Oct 20, 2008

Copy link to clipboard

Copied

LATEST
If your question is how to determine the card type, there is a CF_TestCardNumber tag in the exchange area.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation