function uc_recurring_charge_profile in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 uc_recurring.module \uc_recurring_charge_profile()
Process a charge on a recurring profile.
Invokes the renew callback, assumes renewal is successful unless FALSE is returned.
Parameters
$fee: The recurring fee object.
$order: The ubercart order object.
Return value
TRUE if order charged.
1 call to uc_recurring_charge_profile()
- uc_recurring_renew in ./
uc_recurring.module - Process a renewal, either from the cron job or manually from a fee handler.
File
- ./
uc_recurring.module, line 509 - Allows you to add a recurring fee to a product/SKU to handle subscription type services.
Code
function uc_recurring_charge_profile(&$fee, &$order = NULL) {
if (!isset($order)) {
$order = uc_recurring_create_renewal_order($fee);
}
return uc_recurring_invoke($fee->fee_handler, 'renew callback', array(
$order,
&$fee,
));
}