You are here

function uc_recurring_expire in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 uc_recurring.module \uc_recurring_expire()

Process a fee expiration.

Parameters

$fee: The recurring fee object.

1 call to uc_recurring_expire()
uc_recurring_cron in ./uc_recurring.module
Implementation of hook_cron().

File

./uc_recurring.module, line 561
Allows you to add a recurring fee to a product/SKU to handle subscription type services.

Code

function uc_recurring_expire($fee) {
  $order = uc_order_load($fee->order_id);
  $fee->status = UC_RECURRING_FEE_STATUS_EXPIRED;
  uc_recurring_fee_user_save($fee);
  ca_pull_trigger('uc_recurring_renewal_expired', $order, $fee);
}