1 | <?php |
||
8 | class CreditCard extends BaseCreditCard |
||
9 | { |
||
10 | /** |
||
|
|||
11 | * Validate this credit card. If the card is invalid, InvalidCreditCardException is thrown. |
||
12 | * |
||
13 | * This method is called internally by gateways to avoid wasting time with an API call |
||
14 | * when the credit card is clearly invalid. |
||
15 | * |
||
16 | * Falls back to validating number, cvv, expiryMonth, expiryYear if no parameters are present. |
||
17 | * |
||
18 | * @param string ... Optional variable length list of required parameters |
||
19 | * @throws InvalidCreditCardException |
||
20 | */ |
||
21 | public function validate() |
||
69 | } |
||
70 |