| 1 |
<?php // $Id: pay_method_gateway.inc,v 1.5 2009/04/30 19:18:07 vauxia Exp $ |
<?php // $Id: pay_method_gateway.inc,v 1.6 2009/04/30 21:47:08 vauxia Exp $ |
| 2 |
|
|
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 121 |
} |
} |
| 122 |
|
|
| 123 |
function cc_number_validate() { |
function cc_number_validate() { |
| 124 |
if ((strlen($this->cc_number) > 13) || (strlen($this->cc_number) < 15)) { |
if ((strlen($this->cc_number) < 13) || (strlen($this->cc_number) > 19)) { |
| 125 |
$this->error_message = t('Invalid credit card number.'); |
$this->error_message = t('Invalid credit card number.'); |
| 126 |
return FALSE; |
return FALSE; |
| 127 |
} |
} |
| 227 |
'#title' => t('Last name'), |
'#title' => t('Last name'), |
| 228 |
'#required' => TRUE, |
'#required' => TRUE, |
| 229 |
); |
); |
| 230 |
$form['address'] = array( |
$form['billto'] = array( |
| 231 |
'#type' => 'postal', |
'#type' => 'postal', |
| 232 |
'#postal_user' => $user, |
'#postal_user' => $user, |
| 233 |
'#title' => t('Billing address'), |
'#title' => t('Billing address'), |