You are here

function uc_recurring_expire in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.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
Implements hook_cron().

File

./uc_recurring.module, line 522
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);

  // @todo - replace with rules

  //ca_pull_trigger('uc_recurring_renewal_expired', $order, $fee);
  rules_invoke_event('uc_recurring_renewal_expired', $order, $fee);
}