You are here

function uc_credit_order_view_form in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_credit/uc_credit.module \uc_credit_order_view_form()
  2. 7.3 payment/uc_credit/uc_credit.module \uc_credit_order_view_form()

Builds the "Process Card" button on the order view.

1 string reference to 'uc_credit_order_view_form'
uc_payment_method_credit in payment/uc_credit/uc_credit.module
Callback function for the Credit Card payment method.

File

payment/uc_credit/uc_credit.module, line 1291
Defines the credit card payment method and hooks in payment gateways.

Code

function uc_credit_order_view_form($form_state, $order_id) {
  $form['order_id'] = array(
    '#type' => 'hidden',
    '#value' => $order_id,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Process card'),
  );
  return $form;
}