You are here

function uc_recurring_authorizenet_cim_profile_form in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 includes/uc_recurring.uc_authorizenet.inc \uc_recurring_authorizenet_cim_profile_form()

List the CIM profile information.

1 string reference to 'uc_recurring_authorizenet_cim_profile_form'
uc_recurring_uc_authorizenet_recurring_info in includes/uc_recurring.uc_authorizenet.inc
Implementation of hook_recurring_info().

File

includes/uc_recurring.uc_authorizenet.inc, line 325
Uc recurring implementation for the test gateway module.

Code

function uc_recurring_authorizenet_cim_profile_form($form_state, $rfid) {
  $fee = uc_recurring_fee_user_load($rfid);
  $order = uc_order_load($fee->order_id);
  $ref_id = end(array_keys($order->data['cc_txns']['references']));
  $profile = _uc_authorizenet_cim_profile_get($order, $ref_id);
  $header = array_keys($profile);
  $rows[] = array_values($profile);
  $form['info'] = array(
    '#value' => t('The profile details below were return from Authorize.net'),
  );
  $form['profile'] = array(
    '#value' => theme('table', $header, $rows),
  );
  return $form;
}