function uc_recurring_process in Ubercart 5
Passes the information onto the specified fee handler for processing.
Parameters
$order: The order object the fees are attached to.
$fee: The fee object to be processed.
Return value
TRUE or FALSE indicating whether or not the processing was successful.
2 calls to uc_recurring_process()
- uc_recurring_order in payment/
uc_recurring/ uc_recurring.module - Implementation of hook_order().
- uc_recurring_order_view_update_form_submit in payment/
uc_recurring/ uc_recurring.module
File
- payment/
uc_recurring/ uc_recurring.module, line 1041 - Allows you to add a recurring fee to a product/SKU to handle subscription type services.
Code
function uc_recurring_process($order, $fee) {
$handler = variable_get('uc_recurring_handler', 'uc_recurring') . '_recurring_fee';
if (!function_exists($handler)) {
drupal_set_message(t('The handler for processing recurring fees cannot be found.'), 'error');
return FALSE;
}
if ($handler($order, $fee) == TRUE) {
return TRUE;
}
return FALSE;
}