Gumbo_Valid_CreditCard

Gumbo_Valid
   |
   --Gumbo_Valid_CreditCard

Credit Card Validation Class

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Inherited Methods

Class Methods

public Gumbo_Valid_CreditCard __construct ( [bool $throw], [int $level] ) [line 42]

Constructor

Parameter(s):

  • (bool) $throw :: throw Exceptions
  • (int) $level :: Error Level thrown
Overrides
Gumbo_Valid::__construct()

[ Top ]
public bool isCreditCard ( string $val ) [line 54]

Returns if the value is a Credit Card Number (Luhn Formula)

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]
public bool isCreditCardAmericanExpress ( string $val ) [line 178]

Returns if the Credit Card is a American Express

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]
public bool isCreditCardDinersClub ( string $val ) [line 205]

Returns if the Credit Card is a Diner's Club

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]
public bool isCreditCardDiscover ( string $val ) [line 151]

Returns if the Credit Card is a Discover

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]
public bool isCreditCardMasterCard ( string $val ) [line 124]

Returns if the Credit Card is a MasterCARD

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]
public bool isCreditCardVisa ( string $val ) [line 97]

Returns if the Credit Card is a VISA

Parameter(s):

  • (string) $val
  • throws:  Gumbo_Exception

[ Top ]