| 639 |
return $output; |
return $output; |
| 640 |
|
|
| 641 |
case 'order-details': |
case 'order-details': |
| 642 |
$details = drupal_get_form('uc_payment_method_credit_form', $arg1); |
if (variable_get('uc_credit_debug', FALSE)) { |
| 643 |
return uc_strip_form($details); |
$details = drupal_get_form('uc_payment_method_credit_form', $arg1); |
| 644 |
|
return uc_strip_form($details); |
| 645 |
|
} |
| 646 |
|
else { |
| 647 |
|
return t('Use the terminal available through the<br />%button button on the View tab to<br />process credit card payments.', array('%button' => t('Process card'))); |
| 648 |
|
} |
| 649 |
|
|
| 650 |
case 'edit-process': |
case 'edit-process': |
| 651 |
$cache = uc_credit_cache('load'); |
$cache = uc_credit_cache('load'); |
| 1141 |
} |
} |
| 1142 |
$output .= '<tr><td class="oet-label">'. t('Card Number:') .'</td><td>' |
$output .= '<tr><td class="oet-label">'. t('Card Number:') .'</td><td>' |
| 1143 |
. drupal_render($form['cc_number']) .'</td></tr>'; |
. drupal_render($form['cc_number']) .'</td></tr>'; |
| 1144 |
|
if (variable_get('uc_credit_start_enabled', FALSE)) { |
| 1145 |
|
$output .= '<tr><td class="oet-label">'. t('Start Date:') .'</td><td>' |
| 1146 |
|
. drupal_render($form['cc_start_month']) .' '. drupal_render($form['cc_start_year']) |
| 1147 |
|
.' '. t('(if present)') .'</td></tr>'; |
| 1148 |
|
} |
| 1149 |
$output .= '<tr><td class="oet-label">'. t('Expiration Date:') .'</td><td>' |
$output .= '<tr><td class="oet-label">'. t('Expiration Date:') .'</td><td>' |
| 1150 |
. drupal_render($form['cc_exp_month']) .' ' |
. drupal_render($form['cc_exp_month']) .' ' |
| 1151 |
. drupal_render($form['cc_exp_year']) .'</td></tr>'; |
. drupal_render($form['cc_exp_year']) .'</td></tr>'; |
| 1152 |
|
if (variable_get('uc_credit_issue_enabled', FALSE)) { |
| 1153 |
|
$output .= '<tr><td class="oet-label">'. t('Issue Number:') .'</td><td>' |
| 1154 |
|
. drupal_render($form['cc_issue']) .' '. t('(if present)') .'</td></tr>'; |
| 1155 |
|
} |
| 1156 |
if (variable_get('uc_credit_cvv_enabled', TRUE)) { |
if (variable_get('uc_credit_cvv_enabled', TRUE)) { |
| 1157 |
$form['cc_cvv']['#title'] = ''; |
$form['cc_cvv']['#title'] = ''; |
| 1158 |
$output .= '<tr><td class="oet-label">'. t('CVV:') .'</td><td>' |
$output .= '<tr><td class="oet-label">'. t('CVV:') .'</td><td>' |
| 2032 |
|
|
| 2033 |
return $types; |
return $types; |
| 2034 |
} |
} |
| 2035 |
|
|