You are here

function uc_payment_gateway_select_form_submit in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_payment/uc_payment.module \uc_payment_gateway_select_form_submit()

Submit handler for uc_payment_gateway_select_form().

See also

uc_payment_gateway_select_form()

File

payment/uc_payment/uc_payment.admin.inc, line 326
Payment administration menu items.

Code

function uc_payment_gateway_select_form_submit($form, &$form_state) {
  unset($_SESSION['uc_payment_method']);
  unset($_SESSION['uc_payment_order_id']);
  unset($_SESSION['uc_payment_amount']);
  unset($_SESSION['uc_payment_data']);
  uc_payment_process($form_state['values']['method'], $form_state['values']['order_id'], $form_state['values']['amount'], unserialize($form_state['values']['p_data']), FALSE, $form_state['values']['p_selected']);
  $form_state['redirect'] = 'admin/store/orders/' . $form_state['values']['order_id'];
}