function uc_payment_gateway_select in Ubercart 6.2
Same name and namespace in other branches
- 5 payment/uc_payment/uc_payment.module \uc_payment_gateway_select()
Selects a specific gateway when multiple gateways are available.
1 string reference to 'uc_payment_gateway_select'
- uc_payment_menu in payment/
uc_payment/ uc_payment.module - Implements hook_menu().
File
- payment/
uc_payment/ uc_payment.admin.inc, line 261 - Payment administration menu items.
Code
function uc_payment_gateway_select() {
// Find the available gateways.
$gateways = _payment_gateway_list($_SESSION['uc_payment_method'], TRUE);
foreach ($gateways as $gateway) {
$options[$gateway['id']] = $gateway['title'];
}
// Construct form for selection of a gateway.
$output = t('Please choose a payment gateway to use for that payment.');
$output .= drupal_get_form('uc_payment_gateway_select_form', $options, $_SESSION['uc_payment_method'], $_SESSION['uc_payment_order_id'], $_SESSION['uc_payment_amount'], $_SESSION['uc_payment_data']);
return $output;
}