sendPaymentToDanceCamps($BookingID, API_TOKEN, SECRET, $Result, $Amount, $Fee, $Currency, $TxnID, "This is a simulated payment", "Your payment has been processed"); // Was the payment successful and was it succesfully sent to dancecamps.org? // If so, send the user on to the success page. If not, send them to the fail // page. In a real application, if the payment send to dancecamps.org failed, // you may want to also send yourself an alert if ($Result==="Completed" && $apiSendResult) header("Location: ".$CampURL."/payment-success.php"); else { // Maybe send an email to let me know something went wrong and let me fix it manually! header("Location: ".$CampURL."/payment-fail.php?message=Simulated-Payment+Failed"); } exit(); } else { ?>