v7‰PNG IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ±üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0AºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT Ensures credit card numbers are keyed in correctly.
* *Complete usage information is in the validateCreditCard() method.
* *Credit Card Validation Solution is a trademark of The Analysis and * Solutions Company.
* ** ====================================================================== * SIMPLE PUBLIC LICENSE VERSION 1.1 2003-01-21 * * Copyright (c) The Analysis and Solutions Company * http://www.analysisandsolutions.com/ * * 1. Permission to use, copy, modify, and distribute this software and * its documentation, with or without modification, for any purpose and * without fee or royalty is hereby granted, provided that you include * the following on ALL copies of the software and documentation or * portions thereof, including modifications, that you make: * * a. The full text of this license in a location viewable to users * of the redistributed or derivative work. * * b. Notice of any changes or modifications to the files, * including the date changes were made. * * 2. The name, servicemarks and trademarks of the copyright holders * may NOT be used in advertising or publicity pertaining to the * software without specific, written prior permission. * * 3. Title to copyright in this software and any associated * documentation will at all times remain with copyright holders. * * 4. THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND * COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY * OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE * OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, * COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. * * 5. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DAMAGES, INCLUDING * BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL, * ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. * ====================================================================== ** * @see CreditCardValidationSolution::validateCreditCard() * @package CreditCardValidationSolution * @author Daniel Convissor
Complete usage information is in the validateCreditCard() method.
* * @see validateCreditCard() * @package CreditCardValidationSolution * @author Daniel ConvissorAutomatically determined from the first four digits of the * card number.
* * @var string */ var $CCVSType = ''; /** * The card's expiration date. * *Presented only if the RequireExp parameter is * Y and there are no other problems with the card * number, this variable contains the expiration date in * MMYY format.
* * @var string */ var $CCVSExpiration = ''; /** * String explaining the first problem detected, if any. * @var string */ var $CCVSError = ''; /** * Ensures credit card information is keyed in correctly. * *Checks that the length is correct, the first four digits are * within accepted ranges, the number passes the Mod 10 / Luhn * checksum algorithm and that you accept the given type of card. It * also determines the card's type via the number's first four digits.
* *The procedure has the option to check the card's expiration date.
* *Error messages are internationalized through use of variables * defined by files in the ./language subdirectory. These * files are named after their ISO 639-1 two letter language code. * The language used depends on the code put in the * $Language parameter.
* *Just to be clear, this process does not check with banks or * credit card companies to see if the card number given is actually * associated with a good account. It just checks to see if the * number matches the expected format.
* *Warning: this function uses exact number ranges as part of * the validation process. These ranges are current as of * 30 July 2002. If presently undefined ranges come into use * in the future, this program will improperly deject card numbers * in such ranges, rendering an error saying "First four digits * indicate unknown card type." If this happens while entering a * card and type you KNOW are valid, please contact us so we can * update the ranges.
* *This function requires PHP to be at version 4.0 or above.
* *Please make a donation to support our open source development. * Update notifications are sent to people who make donations that exceed * the small registration threshold. See the link below.
* *Credit Card Validation Solution is a trademark of The Analysis and * Solutions Company.
* *Several people deserve praise for the Credit Card Validation * Solution. I learned of the Mod 10 Algorithm in some Perl code, * entitled "The Validator," available on Matt's Script Archive, * http://www.scriptarchive.com/ccver.html. That code was written by * David Paris, who based it on material Melvyn Myers reposted from an * unknown author. Paris credits Aries Solis for tracking down the data * underlying the algorithm. I pruned down the algorithm to it's core * components, making things smaller, cleaner and more flexible. Plus, * I added the expiration date checking routine. My first attemts at * this were in Visual Basic, on which Allen Browne and Rico Zschau * assisted. Neil Fraser helped a bit on the Perl version. Steve * Horsley, Roedy Green and Jon Skeet provided tips on the Java Edition.
* * @param string $Number the number of the credit card to * validate. * @param string $Language the ISO 639-1 two letter code of * the language for error messages. * @param array $Accepted credit card types you accept. If * not used in function call, all * known cards are accepted. Set * it before calling the function: