function uc_recurring_authorizenet_cim_profile_form in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.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 - Implements hook_recurring_info().
File
- includes/
uc_recurring.uc_authorizenet.inc, line 334 - Uc recurring implementation for the test gateway module.
Code
function uc_recurring_authorizenet_cim_profile_form($form, $form_state, $rfid) {
$fee = uc_recurring_fee_user_load($rfid);
$order = uc_order_load($fee->order_id);
$refs = array_keys($order->data['cc_txns']['references']);
$ref_id = end($refs);
$profile = _uc_authorizenet_cim_profile_get($order, $ref_id);
$header = array_keys($profile);
$rows[] = array_values($profile);
$form['info'] = array(
'#markup' => t('The profile details below were return from Authorize.net'),
);
$form['profile'] = array(
'#markup' => theme('table', array(
'header' => $header,
'rows' => $rows,
)),
);
$form['return'] = array(
'#markup' => l(t('Return'), 'admin/store/orders/recurring/view/fee/' . $rfid),
);
return $form;
}