WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search


Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - השוואת מחירים בסופר
ZeroLag.com
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : After discovering some credit card validation routines didnt work - here is one that I found works with all the numbers I have tried so far
Categories : Credit Cards, Ecommerce, PHP Update Picture
John Craig
Date : Mar 02nd 1999
Grade : 4 of 5 (graded 2 times)
Viewed : 13440
File : No file for this code example.
Images : No Images for this code example.
Search : More code by John Craig
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

function CC_checksum($ccard){
if(strlen($ccard) < 1)
return 0;
$ccard = ereg_replace("[^[:digit:]]+", "", $ccard);
$checksum = 0;
$factor = (strlen($ccard) % 2) ? 1 : 2;
for($i = 0; $i < strlen($ccard); $i++){
$digit = substr($ccard, $i, 1);
$checksum += ($digit * $factor > 9) ? $digit * $factor - 9 : $digit * $factor;
$factor = ($factor == 1) ? 2 : 1;
}
return !($checksum % 10);
}



ECHOcart - Open Source Shopping Cart
Categories : PHP, Credit Cards, Ecommerce
credit card security code
Categories : PHP, Credit Cards, PHP Classes, Credit Cards
Credit Card Identification and Validation Class - The credit_card class provides methods for cleaning, validating and identifying the type of credit card numbers.
Categories : PHP, PHP Classes, Credit Cards, Ecommerce, Algorithms
A set of functions to check the validity of a credit card number.
Categories : Ecommerce, Credit Cards, PHP
Credit Card validation routine. Uses MOD 10 to check if credit card number is valid.
Categories : Ecommerce, Credit Cards, PHP, Complete Programs
Validation function for LUHNMod10 and variant. Can discriminate credit card numbers of varying lengths. Uses [Double >> Sum-of-Digits] transform.
Categories : Credit Cards, Authentication, Ecommerce, PHP
an example of the cyberlib payment class
Categories : PHP, PHP Classes, Ecommerce, Credit Cards
How to validate an Israeli ID number.
Categories : Ecommerce, PHP, Algorithms
open source online php shop project ecommerce commerce
Categories : PHP, Ecommerce
Shopping Basket On-Line Ordering System.
Categories : Complete Programs, MySQL, PHP, Ecommerce, Databases
Credit Card Numbers for testing
Categories : Credit Cards, Ecommerce, Debugging
Amazon.com API, CURL-REST Parser. Obtain data about Amazon products (PHP5 +)
Categories : PHP, Ecommerce, XML, Web Services, CURL
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
REALTIME SHIPPING QUOTE
Categories : Complete Programs, Ecommerce, PHP
ECHO-PHP Class Real Time Transaction Processor v1.4.4 for Credit Cards and Checks / ACH
Categories : PHP Classes, Cybercash, Classes and Objects, Ecommerce, PHP