In the below function, the $order variable is never passed or set. I'll upload a patch as soon as I wrap my head around the desired behavior.
/**
* Create form for updating credit card details for recurring fee.
*/
function uc_recurring_authorizenet_cim_update_form($form_state, $rfid) {
$form['rfid'] = array(
'#type' => 'value',
'#value' => $rfid,
);
$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(array(), $order);
unset($form['cc_data']['cc_policy']);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_recurring.695176.patch | 854 bytes | jhedstrom |
Comments
Comment #1
jhedstromHere's a patch that loads the order associated with the rfid that is passed to the form building function.
Comment #2
univate commentedIs this the same as this issue? - #666702: Authorize.net info not saved after updating payment profile
Comment #3
jhedstromIt may be related, but it seems to be in a different section of code.
Comment #4
univate commented