VirtueMart  3.2.14.9808
Static Public Member Functions | List of all members
Creditcard Class Reference

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)
 

Member Function Documentation

static Creditcard::_strtonum (   $string)
static
static Creditcard::mod10 (   $card_number)
static
static Creditcard::validate_credit_card_cvv (   $creditcard_type,
  $cvv,
  $required = true,
  $creditcard_number = '' 
)
static
static Creditcard::validate_credit_card_date (   $creditcard_type,
  $month,
  $year 
)
static
Parameters
$creditcard_type
$month
$year
Returns
bool
Author
valerie isaksen
static Creditcard::validate_credit_card_number (   $creditcard_code,
  $cardnum 
)
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

Parameters
string$creditcard_code
string$cardnum
Returns
boolean

The documentation for this class was generated from the following file: