DNK has a spanking new server up and running like clockwork. Stability problems are a thing of the past. Our new monitoring service reports 100% uptime since the move!
16
kicks
published 1 year, 2 months ago, submitted by SuperJason SuperJason 1 year, 2 months ago

ytechie.com — The right way to do credit card validation with the Luhn algorithm. Just as easy as regular expressions, but with stronger validation. This is a step-by-step guide to get it working in 10 minutes or less.

Add a comment 4 comments | category: | Views: 43 | Get KickIt image code
Using the Luhn algorithm to validate credit cards
tags: | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
Here is a VB.NET version of the Luhn algorithm (back when I had to code in VB.NET)...

http://www.dotnetkicks.com/vbnet/Credit_Card_Number_Validation_VB_Net_Function
posted by powerrush powerrush 1 year, 2 months ago
Thanks for giving me credit since you the post was inspired by my comment and not the post.
posted by jdelator jdelator 1 year, 2 months ago
It should read *since you know
posted by jdelator jdelator 1 year, 2 months ago
Well really the best way to do it is with both regex and Luhn validation. Also, the fastest way to add up digits in a number is to use modulus-9, not to convert to a string then walking the chars converting them as you go...
posted by gregbeech 1 year, 2 months ago



information Login or create an account to comment on this story

Related Stories:
 

Search: