Ejemplo n.º 1
0
 function cancel_rebills($sub_ids, $sub_notes = "", $sub_status_text = "")
 {
     if (!isset($this->userid) && $this->access_level != "admin") {
         return;
     }
     $status = array();
     foreach ($sub_ids as $key => $id) {
         $status[] = subscription_cancel($id, $this->userid, $sub_notes, $sub_status_text);
     }
 }
Ejemplo n.º 2
0
    }
} elseif ($_REQUEST[action] == "cancel") {
    $reference_number = quote_smart($_REQUEST['reference_number']);
    $ss_account_notes = quote_smart(trim($_REQUEST['ss_account_notes']));
    $ss_rebill_status_text = quote_smart($_REQUEST['ss_rebill_status_text']);
    if ($_SESSION['no_more_where'] != "true") {
        $where = $_SESSION['where'] . " AND td.`reference_number` = '{$reference_number}'";
    } else {
        $where = $_SESSION['where'];
    }
    $results = $lookup->find_transaction_query($where);
    foreach ($results as $outer_key => $row) {
        $_SESSION['no_more_where'] = "true";
        $ss_subscription_ID = $row['ss_subscription_ID'];
        if ($row[ss_rebill_status] == "active" and strlen($ss_subscription_ID) > 0) {
            subscription_cancel($ss_subscription_ID, NULL, $ss_account_notes, $ss_rebill_status_text);
        } else {
            echo "error";
        }
        echo "<big><big><big><center>Processing...</big></big></big></center>";
    }
}
if ($dis_phone_number) {
    echo "<center><big><big>For other assistance call <br>1-800-923-8168</big></big></center>";
}
?>
</body>