This is my first attempt at modifying code, and I need a little help.
Our billing system currently send notices to subscribers upon each successful rebill. We want to turn this feature off. I have found the function in the code that performs this action. There are two files involved. One that processes the credit card and calls the function and the other that contains the sub routine.
cc_core.inc.php
case CC_RESULT_SUCCESS:
$err = $db->finish_waiting_payment(
$payment['payment_id'], $payment['paysys_id'],
$receipt_id, $payment['amount'], '', cc_core_get_payer_id($vars, $member));
if ($err) {
$db->log_error($err . ": payment_id = $payment[payment_id] (rebilling)");
}
mail_rebill_success_member($member, $payment_id, $product);
break;
case CC_RESULT_INTERNAL_ERROR:
case CC_RESULT_DECLIME_TEMP:
if ($pl->config['reattempt'] != '')
$new_expire = cc_core_prorate_subscription($p['payment_id'], $pl->config['reattempt'], $dat);
mail_rebill_failed_member($member, $payment_id, $product, "$err_msg", $new_expire);
break;
common.inc.php
function mail_rebill_success_member($user, $payment_id, $product){
global $db;
$t = &new_smarty();
$t->assign('user', $user);
$t->assign('payment', $db->get_payment($payment_id));
$t->assign('product', $product->config);
///
$et = & new aMemberEmailTemplate();
$et->name = "cc_rebill_success";
mail_template_user($t, $et, $user);
}
I don't want to send customer email after rebill so how do I null mail_rebill_success_member?