Valentines Day Photo Competition Payment

Please review the below information and confirm that it is correct.
If the information is not correct please return to the previous page and correct your information.

Once you are happy that everything is correct please press the “Pay Now” button to enter via Payfast

INFORMATION SUMMARY:
ARE a Kyalami Park Club member (Please note that this will be verified with the draw)
“;
echo “Amount to be Paid: R 50”;
$price=50;
}
Else
{
echo “You indicated that you are NOT a Kyalami Park Club member
“;
echo “Amount to be Paid: R 75”;
$price=75;
}
?>

Please confirm by clicking the pay now button. Clicking the Pay Now button will launch Payfast to complete your payment electronically.

‘10420211’, //’10000103′, //’10420211′,
‘merchant_key’ => ’06kdhz834l26f’, //’479f49451e829′, //’06kdhz834l26f’,
‘return_url’ => ‘http://www.kyalamipark.com/UploadPhoto/’,
‘cancel_url’ => ‘http://www.kyalamipark.com/CancelledPayment/’,
‘notify_url’ => ‘http://www.kyalamipark.com/payment_notification_page_success.php’,
’email_address’=> $memberemail,
‘amount’ => $price,
‘item_name’ => ‘Valentines Comp’,
‘item_description’ => $reference,
’email_confirmation’ => 1,
‘confirmation_address’ => ‘memberandmarketing@kyalamipark.com’
);

// Create GET string
foreach( $data as $key => $val )
{
if(!empty($val))
{
$pfOutput .= $key .’=’. urlencode( trim( $val ) ) .’&’;
}
}
// Remove last ampersand
$getString = substr( $pfOutput, 0, -1 );
// if( isset( $passPhrase ) )
// {
// $getString .= ‘&passphrase=’.$passPhrase;
// }
$data[‘signature’] = md5( $getString );

// If in testing mode use the sandbox domain ? sandbox.payfast.co.za else www.payfast.co.za
$testingMode = FALSE;
$pfHost = $testingMode ? ‘sandbox.payfast.co.za’ : ‘www.payfast.co.za’;
$htmlForm = ‘

‘;
foreach($data as $name=> $value) {
$htmlForm .= ‘‘;
}
$htmlForm .= ‘     

‘;
echo $htmlForm;
//echo $data[‘signature’];
//echo ‘ ‘;
//echo $getString;
//echo ‘ ‘;
//echo $pfHost;
?>

Scroll to Top