I will post the script when I have it more solid. It works now but the
error checking isn't there. It is a modification of a script on php
exchange. I have made it more generic and am adding more error checking.
I am having a conceptual problem though with SUBMIT_ORDER. This is the
logical place to put the call to the cybercash script. I put it right
before the sending of email.
This works fine if everything goes according to plan, but if there is an
error I need to redirect to another page.
To show this:
...................
$billingAddress = getAddress($AddressID);
}
// add for cyber cash
/*
require ("/home//htdocs/cbsend.php3");
global $MStatus;
if($MStatus == "success" OR $MStatus == "success-duplicate")
{
$ActionResults .= "Credit card authorized and billed!<br>";
$continueScript = TRUE;
} else
{
$ActionResults .= "Credit card not authorized<br>";
$continueScript = FALSE;
}
*/
// end processing
if($ContinueProcessing)
{
//send confirmation email
if((SEND_EMAIL) AND validateEmail($billingAddress["Email"]))
{
...............
I can never get the ActionResults to post and it always continues. Any clues?
Thanks,
Jon Griffin
[EMAIL PROTECTED]
Check out:
<http://www.salsablanca.com>
<http://www.jongriffin.com>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]