Three small amounts (each less than $1.00) have been transmitted to the bank account number you provided.
It can take about four business days for the all of these transactions to appear in your account.
When these 3 amounts are listed in your bank account, enter all three to validate your agreement.
Use the 0.00 format for your entries (10 cents would be entered as 0.10).
Contact your bank (or check on-line) for these recent transactions.
END_INS;
$str .= " ";
return $str;
}
function build_authorization_form($type, $flds, $title,$fee, $config_option)
{
global $payee;
global $business_name;
global $account_id;
$str = "
END_START_DIV;
$str .= "
Please provide the following payment account details so you can receive your automatic payments via $title.
";
if ($fee)
{
$fee = trim($fee,'$');
if (is_numeric($fee) && $fee > 0)
{
$fee = number_format($fee,2);
$str .= " (A processing fee of $$fee will be deducted from your payment for this option).
";
}
}
$str .= "
";
$str .= "\n
\n\n";
return $str;
}
function send_pdf()
{
$obj = getResource('payment_account');
$payment_account = get_object_vars($obj);
// We'll be outputting a PDF
header('HTTP/1.1 200 OK');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header('Date: ' . date("D M j G:i:s T Y"));
header('Last-Modified: ' . date("D M j G:i:s T Y"));
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers
header("Pragma: public");
header('Content-type: application/pdf');
$pdf = $payment_account['authorization_vars']->authorization_snapshot;
$pdf = base64_decode($pdf);
header("Content-Length: " . strlen($pdf));
header("Content-Transfer-Encoding: Binary"); // add
header('Content-Disposition: attachment; filename="authorization.pdf"');
print $pdf;
}
function validate_payment_account()
{
$obj = getResource('payment_account');
$payment_account = get_object_vars($obj);
$auth = $payment_account['authorization_vars'];
$trial[] = $auth->trial_amt_1;
$trial[] = $auth->trial_amt_2;
$trial[] = $auth->trial_amt_3;
$amt = $_POST['_amt_'];
sort($amt);
sort($trial);
// error_log('amt :'.var_export($amt,true));
error_log('trial :'.var_export($trial,true));
// foreach($amt as $key=>$value)
{
if ($trial[$key] != $value)
return "NO MATCH";
}
error_log("Got past ... ");
return postResource('payment_account/validation');
}
function build_summary_table($summary_data)
{
$id=uniqid('tbl_');
$str = '