@@ 343-345 (lines=3) @@ | ||
340 | } |
|
341 | ||
342 | if ( (($cc_type == 'MAESTRO') && (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_MAESTRO == 'True')) || (($cc_type == 'AMEX') && (MODULE_PAYMENT_SAGE_PAY_DIRECT_ALLOW_AMEX == 'True')) ) { |
|
343 | if ( !isset($_POST['cc_starts_month']) || !in_array($_POST['cc_starts_month'], $months_array) ) { |
|
344 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardstart'); |
|
345 | } |
|
346 | ||
347 | if ( !isset($_POST['cc_starts_year']) || !in_array($_POST['cc_starts_year'], $year_valid_from_array) ) { |
|
348 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardstart'); |
|
@@ 347-349 (lines=3) @@ | ||
344 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardstart'); |
|
345 | } |
|
346 | ||
347 | if ( !isset($_POST['cc_starts_year']) || !in_array($_POST['cc_starts_year'], $year_valid_from_array) ) { |
|
348 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardstart'); |
|
349 | } |
|
350 | ||
351 | $cc_start = substr($_POST['cc_starts_month'] . $_POST['cc_starts_year'], 0, 4); |
|
352 | } |
|
@@ 354-356 (lines=3) @@ | ||
351 | $cc_start = substr($_POST['cc_starts_month'] . $_POST['cc_starts_year'], 0, 4); |
|
352 | } |
|
353 | ||
354 | if ( !isset($_POST['cc_expires_month']) || !in_array($_POST['cc_expires_month'], $months_array) ) { |
|
355 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardexpires'); |
|
356 | } |
|
357 | ||
358 | if ( !isset($_POST['cc_expires_year']) || !in_array($_POST['cc_expires_year'], $year_valid_to_array) ) { |
|
359 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardexpires'); |
|
@@ 358-360 (lines=3) @@ | ||
355 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardexpires'); |
|
356 | } |
|
357 | ||
358 | if ( !isset($_POST['cc_expires_year']) || !in_array($_POST['cc_expires_year'], $year_valid_to_array) ) { |
|
359 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardexpires'); |
|
360 | } |
|
361 | ||
362 | if ( ($_POST['cc_expires_year'] == date('y')) && ($_POST['cc_expires_month'] < date('m')) ) { |
|
363 | OSCOM::redirect('checkout_payment.php', 'payment_error=' . $this->code . '&error=cardexpires'); |