function uc_payment_gateway_select in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.admin.inc \uc_payment_gateway_select()
Select a payment gateway to process a payment when multiple gateways exist for a given payment method.
1 string reference to 'uc_payment_gateway_select'
- uc_payment_menu in payment/
uc_payment/ uc_payment.module - Implementation of hook_menu().
File
- payment/
uc_payment/ uc_payment.module, line 770
Code
function uc_payment_gateway_select($url_order_id) {
$gateways = _payment_gateway_list($_SESSION['uc_payment_method'], TRUE);
foreach ($gateways as $gateway) {
$options[$gateway['id']] = $gateway['title'];
}
$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;
}