You are here

function uc_authorizenet_arb_user_update_form in Ubercart 5

Same name and namespace in other branches
  1. 6.2 payment/uc_authorizenet/uc_authorizenet.pages.inc \uc_authorizenet_arb_user_update_form()
1 string reference to 'uc_authorizenet_arb_user_update_form'
uc_authorizenet_menu in payment/uc_authorizenet/uc_authorizenet.module
Implementation of hook_menu().

File

payment/uc_authorizenet/uc_authorizenet.module, line 1021
Process payments using Authorize.net. Supports AIM and ARB.

Code

function uc_authorizenet_arb_user_update_form($uid, $rfid) {
  $form = array();
  $fee = uc_recurring_fee_load('user', $rfid);
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $uid,
  );
  $form['rfid'] = array(
    '#type' => 'value',
    '#value' => $rfid,
  );
  $form['description'] = array(
    '#value' => '<div>' . t('Recurring fee order ID: @order_id', array(
      '@order_id' => $fee['order_id'],
    )) . '</div>',
  );
  $form['cc_data'] = array(
    '#type' => 'fieldset',
    '#title' => t('Credit card details'),
    '#theme' => 'uc_payment_method_credit_form',
    '#tree' => TRUE,
  );
  $form['cc_data'] += uc_payment_method_credit_form($order);
  unset($form['cc_data']['cc_policy']);
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Update'),
    '#suffix' => l(t('Cancel'), 'user/' . $uid),
  );
  return $form;
}