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

Credit Card Validation Script

Participant ,
Oct 08, 2008 Oct 08, 2008
Can anyone suggest a way to validate the credit card number? How to use it in coldfusion?
Thanks!!!
TOPICS
Advanced techniques
902
Translate
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
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.

Translate
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
LATEST
If your question is how to determine the card type, there is a CF_TestCardNumber tag in the exchange area.
Translate
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