Geshe Tenzin Zopa August 2018 Payment

[insert_php]
function cleanup($dirtystr) {
$cleanstr = str_replace(“‘”, ” “, $dirtystr);
$cleanstr = str_replace(‘”‘, ‘ ‘, $cleanstr);
$cleanstr = str_replace(‘< ', '<', $cleanstr); $cleanstr = str_replace('>‘, ‘>’, $cleanstr);
return ($cleanstr);
}

function inputfield($srcfile) {
$field = cleanup(convert_uudecode(urldecode(rtrim(fgets($srcfile)))));
// $field = cleanup(rtrim(fgets($srcfile)));
return ($field);
}

function load_bkgdetails($transfile,&$bkgDetails) {
$debug = 0;

if (file_exists($transfile)) {
$srcfile = fopen($transfile, “r”) or die(“Unable to open file!”);

// Test that the data is correctly encoded by checking the first record
$transid = fgets($srcfile);
$transid = urldecode(rtrim($transid));
$transid = @convert_uudecode($transid);
if ($transid) {
$bkgDetails[‘transid’] = $transid;
$bkgDetails[‘bkgfirstname’] = inputfield($srcfile);
$bkgDetails[‘bkglastname’] = inputfield($srcfile);
$bkgDetails[‘bkgemail’] = inputfield($srcfile);
$bkgDetails[‘bkgmobile’] = inputfield($srcfile);
$bkgDetails[‘nonmembers’] = inputfield($srcfile);
$bkgDetails[‘hbcmembers’] = inputfield($srcfile);
$bkgDetails[‘event1’] = inputfield($srcfile);
$bkgDetails[‘event2’] = inputfield($srcfile);
$bkgDetails[‘event3’] = inputfield($srcfile);
$bkgDetails[‘event4’] = inputfield($srcfile);
$bkgDetails[‘event5’] = inputfield($srcfile);
$bkgDetails[‘event6’] = inputfield($srcfile);
$bkgDetails[‘eventhdg1’] = inputfield($srcfile);
$bkgDetails[‘eventhdg2’] = inputfield($srcfile);
$bkgDetails[‘eventhdg3’] = inputfield($srcfile);
$bkgDetails[‘eventhdg4’] = inputfield($srcfile);
$bkgDetails[‘eventhdg5’] = inputfield($srcfile);
$bkgDetails[‘eventhdg6’] = inputfield($srcfile);
$bkgDetails[‘bkgprice’] = inputfield($srcfile);
$bkgDetails[‘bkgpriceval’] = inputfield($srcfile);
$bkgDetails[‘bkgattendees’] = inputfield($srcfile);
$bkgDetails[‘xtras1’] = inputfield($srcfile);
$bkgDetails[‘xtras2’] = inputfield($srcfile);
$bkgDetails[‘xtras3’] = inputfield($srcfile);
$bkgDetails[‘xtras4’] = inputfield($srcfile);
$bkgDetails[‘xtras5’] = inputfield($srcfile);
$bkgDetails[‘xtras6’] = inputfield($srcfile);
$bkgDetails[‘amountpaid’] = inputfield($srcfile);
$bkgDetails[‘paymentmethod’] = inputfield($srcfile);
$bkgDetails[‘paymenttoken’] = inputfield($srcfile);
$bkgDetails[‘remarks’] = inputfield($srcfile);

fclose($srcfile);
} else {
echo “Malformed data
“;
}
} else {
echo “No such transaction file
“;
}
if ($debug) {
echo ‘transid=[‘ . $bkgDetails[‘transid’] . ‘]
‘;
echo ‘bkgfirstname=[‘ . $bkgDetails[‘bkgfirstname’] . ‘]
‘;
echo ‘bkglastname=[‘ . $bkgDetails[‘bkglastname’] . ‘]
‘;
echo ‘bkgemail=[‘ . $bkgDetails[‘bkgemail’] . ‘]
‘;
echo ‘bkgmobile=[‘ . $bkgDetails[‘bkgmobile’] . ‘]
‘;
echo ‘nonmembers=[‘ . $bkgDetails[‘nonmembers’] . ‘]
‘;
echo ‘hbcmembers=[‘ . $bkgDetails[‘hbcmembers’] . ‘]
‘;
echo ‘event1=[‘ . $bkgDetails[‘event1’] . ‘]
‘;
echo ‘event2=[‘ . $bkgDetails[‘event2’] . ‘]
‘;
echo ‘event3=[‘ . $bkgDetails[‘event3’] . ‘]
‘;
echo ‘event4=[‘ . $bkgDetails[‘event4’] . ‘]
‘;
echo ‘event5=[‘ . $bkgDetails[‘event5’] . ‘]
‘;
echo ‘event6=[‘ . $bkgDetails[‘event6’] . ‘]
‘;
echo ‘eventhdg1=[‘ . $bkgDetails[‘eventhdg1’] . ‘]
‘;
echo ‘eventhdg2=[‘ . $bkgDetails[‘eventhdg2’] . ‘]
‘;
echo ‘eventhdg3=[‘ . $bkgDetails[‘eventhdg3’] . ‘]
‘;
echo ‘eventhdg4=[‘ . $bkgDetails[‘eventhdg4’] . ‘]
‘;
echo ‘eventhdg5=[‘ . $bkgDetails[‘eventhdg5’] . ‘]
‘;
echo ‘eventhdg6=[‘ . $bkgDetails[‘eventhdg6’] . ‘]
‘;
echo ‘bkgprice=[‘ . $bkgDetails[‘bkgprice’] . ‘]
‘;
echo ‘bkgpriceval=[‘ . $bkgDetails[‘bkgpriceval’] . ‘]
‘;
echo ‘bkgattendees=[‘ . $bkgDetails[‘bkgattendees’] . ‘]
‘;
echo ‘xtras1=[‘ . $bkgDetails[‘xtras1’] . ‘]
‘;
echo ‘xtras2=[‘ . $bkgDetails[‘xtras2’] . ‘]
‘;
echo ‘xtras3=[‘ . $bkgDetails[‘xtras3’] . ‘]
‘;
echo ‘xtras4=[‘ . $bkgDetails[‘xtras4’] . ‘]
‘;
echo ‘xtras5=[‘ . $bkgDetails[‘xtras5’] . ‘]
‘;
echo ‘xtras6=[‘ . $bkgDetails[‘xtras6’] . ‘]
‘;
echo ‘amountpaid=[‘ . $bkgDetails[‘amountpaid’] . ‘]
‘;
echo ‘paymentmethod=[‘ . $bkgDetails[‘paymentmethod’] . ‘]
‘;
echo ‘paymenttoken=[‘ . $bkgDetails[‘paymenttoken’] . ‘]
‘;
echo ‘remarks=[‘ . $bkgDetails[‘remarks’] . ‘]
‘;
}
return;
}

function show_bkgdetails($bkgDetails) {
$debug = 0;
echo ‘

Details of Booking with Transaction Id: ‘ . $bkgDetails[‘transid’] .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

‘ .

‘;
echo ‘

Name ‘ . $bkgDetails[‘bkgfirstname’] . ‘ ‘ . $bkgDetails[‘bkglastname’] . ‘
Email ‘ . $bkgDetails[‘bkgemail’] . ‘
Mobile ‘ . $bkgDetails[‘bkgmobile’] . ‘
Non Members ‘ . $bkgDetails[‘nonmembers’] . ‘
JCAA Members ‘ . $bkgDetails[‘hbcmembers’] . ‘
Event #1 ‘ . $bkgDetails[‘event1’] . ‘
Event #2 ‘ . $bkgDetails[‘event2’] . ‘
Event #3 ‘ . $bkgDetails[‘event3’] . ‘
Event #4 ‘ . $bkgDetails[‘event4’] . ‘
Event #5 ‘ . $bkgDetails[‘event5’] . ‘
Event #6 ‘ . $bkgDetails[‘event6’] . ‘
Price ‘ . $bkgDetails[‘bkgprice’] . ‘
Amount Paid ‘ . $bkgDetails[‘amountpaid’] . ‘
Payment Method ‘ . $bkgDetails[‘paymentmethod’] . ‘
Payment Token ‘ . $bkgDetails[‘paymenttoken’] . ‘
Remarks ‘ . $bkgDetails[‘remarks’] . ‘

‘;
return;
}

$debug = 0; // set to 1 to turn on debug or 0 to turn it off

if ($debug) {
echo “Debug is ON
“;
echo “Present Working Directory is [” . getcwd() . “]
“;
}

// $didParm = $_GET[“did”];
$didParm = “geshe-zopa-2018”;
$tidParm = $_GET[“tid”];

if ($debug) {
echo “did=[” . $didParm . “]
“;
echo “tid=[” . $tidParm . “]
“;
}

if ($didParm != “”) {
echo ‘

‘;
if ($tidParm != “”) {
$srcfilename = “wp-content/uploads/bkgs/” . $didParm . “/” . $tidParm;
load_bkgdetails($srcfilename,$bkgdetails);
show_bkgdetails($bkgdetails);
}
echo ‘

‘;
} else {
echo ‘Missing URL Parameter: did=directoryname
‘;
}

[/insert_php]

Did you make a booking for Geshe Tenzin Zopa August 2018 but didn’t pay yet?

You can pay by credit card as follows:

Method 1:

Click on the “Pay Now” button below. This will take you to our secure payment page. You can pay by PayPal or Credit Card. To pay by Credit Card you don’t need a PayPal account. Just click on the “Pay with a Card” button at the bottom of the PayPal login page. Upon completion of your payment, PayPal will send you an email as a receipt. PayPal will also notify us of your payment.

Method 2:

Call us on 08 9367 4817 (+618 9367 4817) 10am to 2pm weekdays and supply us with your credit card details over the phone. Note: Office hours depend on the availability of volunteers.

Method 3:

Come in person to Hayagriva Buddhist Centre (64 Banksia Tce, Kensington) and make your payment on our POS machine. Call us before you come out to make sure our office volunteer is here to process your payment.

Thank you

Your Booking Details

Sorry. No booking found matching your Transaction Id (tid)

Name: ${bkgfirstname} ${bkglastname}    Email: ${bkgemail}    Phone: ${mobile}

Number of HBC Members: ${hbcmembers}    Number of Non-Members: ${nonmembers}    Price: $${bkgprice}

[insert_php]
$mytransactionid = $_GET[“tid”];
$mytransactionid = str_replace(“‘”, ” “, $mytransactionid);
$mytransactionid = str_replace(‘”‘, ‘ ‘, $mytransactionid);
$mytransactionid = str_replace(‘<', '<', $mytransactionid); $mytransactionid = str_replace('>‘, ‘>’, $mytransactionid);
$transactionparm = 0;
if ($mytransactionid != “”) $transactionparm = 1;
if ($transactionparm) {
echo ““;
}
$paypalUrl = “https://www.paypal.com/cgi-bin/webscr”;
//$paypalUrl = “https://www.sandbox.paypal.com/cgi-bin/webscr”;
$payCmd=”_xclick”;
$payBusiness=”donations@hayagriva.org.au”;
$payLc=”AU”;
$payItemName=”Geshe Tenzin Zopa August 2018″;
$payCurrencyCode=”AUD”;
$payButtonSub=”services”;
$payNoNote=”1″;
$payNoShipping=”2″;
$payBn=”PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted”;
$payAmount=”1.00″;
$amtParm = $_GET[“tam”];
$amtParm = str_replace(“‘”, ” “, $amtParm);
$amtParm = str_replace(‘”‘, ‘ ‘, $amtParm);
$amtParm = str_replace(‘<', '<', $amtParm); $amtParm = str_replace('>‘, ‘>’, $amtParm);
if ($amtParm != “”) $payAmount=$amtParm;
if ($payAmount > 1) {
echo ‘

Balance payable: \$’ . $payAmount . ‘

‘;
}
else {
echo ‘

Something is wrong. No amount to be paid.

‘;
}
[/insert_php]