You are here

function uc_recurring_process_extensions in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 uc_recurring.module \uc_recurring_process_extensions()

Handle extensions when a recurring payment was unsuccessful.

Parameters

$fee: The fee object.

1 call to uc_recurring_process_extensions()
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 539
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_process_extensions(&$fee) {
  $extend_seconds = uc_recurring_get_extension($fee->pfid, $fee->attempts);
  uc_recurring_extend_fee($fee, $extend_seconds);
}