function uc_recurring_extend_fee in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 uc_recurring.module \uc_recurring_extend_fee()
Handle extensions when a recurring payment was unsuccessful.
Parameters
$fee: The fee object.
$extend_seconds: The number of seconds to extend the order by.
2 calls to uc_recurring_extend_fee()
- uc_recurring_hosted_paypal_ipn in modules/
uc_recurring_hosted/ uc_recurring_hosted.paypal_ipn.inc - Handle IPN callbacks for PayPal recurring payments
- uc_recurring_process_extensions in ./
uc_recurring.module - Handle extensions when a recurring payment was unsuccessful.
File
- ./
uc_recurring.module, line 589 - Allows you to add a recurring fee to a product/SKU to handle subscription type services.
Code
function uc_recurring_extend_fee(&$fee, $extend_seconds) {
$fee->attempts++;
$fee->next_charge += $extend_seconds;
$fee->data['extension'] += $extend_seconds;
if ($extend_seconds <= 0) {
$fee->remaining_intervals = 0;
}
uc_recurring_fee_user_save($fee);
}