VirtueMart
3.2.14.9808
|
Static Public Member Functions | |
static | validate_credit_card_number ($creditcard_code, $cardnum) |
static | _strtonum ($string) |
static | mod10 ($card_number) |
static | validate_credit_card_cvv ($creditcard_type, $cvv, $required=true, $creditcard_number='') |
static | validate_credit_card_date ($creditcard_type, $month, $year) |
|
static |
|
static |
|
static |
|
static |
$creditcard_type | |
$month | |
$year |
|
static |
Validates the Payment Method (Credit Card Number) Adapted From CreditCard Class Copyright (C) 2002 Daniel Fr�z Costa
Documentation:
Card Type Prefix Length Check digit
MasterCard 51-55 16 mod 10 Visa 4 13, 16 mod 10 AMEX 34, 37 15 mod 10 Dinners Club/Carte Blanche 300-305, 36, 38 14 mod 10 Discover 6011 16 mod 10 enRoute 2014, 2149 15 any JCB 3 16 mod 10 JCB 2131, 1800 15 mod 10
More references: http://www.beachnet.com/~hstiles/cardtype.hthml. http://www.braemoor.co.uk/software/creditcard.shtml http://en.wikipedia.org/wiki/Credit_card_number
string | $creditcard_code | |
string | $cardnum |