You are here

function uc_recurring_fee_cancel in UC Recurring Payments and Subscriptions 6

Same name and namespace in other branches
  1. 6.2 uc_recurring.module \uc_recurring_fee_cancel()
  2. 7.2 uc_recurring.module \uc_recurring_fee_cancel()

Cancels a user's recurring fee by setting remaining intervals to 0.

Parameters

$rfid: The recurring fee's ID.

1 call to uc_recurring_fee_cancel()
uc_recurring_user_cancel_form_submit in ./uc_recurring.pages.inc

File

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

Code

function uc_recurring_fee_cancel($rfid) {
  db_query("UPDATE {uc_recurring_users} SET remaining_intervals = 0 WHERE rfid = %d", $rfid);
}