Below are instructions for using the BluePay_bp20post-PHP5.php class to setup recurring payments from a donation form.
//create first scheduled payment
$year=date('Y');
$month=date(m)+1;
if($month>12){$month=1;}
$end=date('d h:m:s');
$rebill_date="$year-$month-$end";
// Create instance
$bp = new BluePayment();
//First sale creates a master. It will be processed as a payment. In the Blue Pay terminal it will be labelled (rebill master).
$bp->sale($amt);
//Sets up schedule of recurring payments. This is set for monthly billing.
$bp->rebAdd($amt, date($rebill_date), "1 MONTH", '');
//note: setCustInfo parameters were modified to capture what I needed. Refer to the class and adjust for your purposes.
$bp->setCustInfo(
$cc_num, $cvv, $exp, $fname, $lname,
$address, $address2, $city, $state, $zip, $country,
$phone,$email, $memo
);
$bp->process();
$status= $bp->getStatus();
$error=$bp->getMessage();