adam1987 Posted February 21, 2006 Posted February 21, 2006 I have installed worldpay - v4.0 - ver1.8.zip which works fine until someone places a order... they pay for the item using worldpay and recieve a Confirmatione mail from worldpay however when i check in the admin panel it displays no orders. Could this be to do with me using any of the following contributions? Register Globals patch & Simple Template System any ideas ?? Quote
adam1987 Posted February 27, 2006 Author Posted February 27, 2006 Please someone ................................................................................ ................................. Quote
bluewizard Posted March 29, 2006 Posted March 29, 2006 Just incase you haven't worked it out. worldpay callback doesn't work with sts mod. It doesn't call back. So you need to turn it off on the wpcallback.php page. Add the following code: if (strpos($scriptname, "wpcallback") !== false) { $display_normal_output = 1; $display_template_output = 0; } just below $display_normal_output = 1; $display_template_output = 0; } In the sts_display_output.php file in your includes folder. wpcallback.php also doesn't call back with register globals switched off so you need to add a bit of code to the top of the file to fix this. if (!isset($_GET)) { $_GET = &$HTTP_GET_VARS;} if (!isset($_POST)) { $_POST = &$HTTP_POST_VARS;} if (!isset($_SESSION)) { $_SESSION = &$HTTP_SESSION_VARS;} if (!isset($_SERVER)) { $_SERVER = &$HTTP_SERVER_VARS;} if ( !isset($_ENV)) { $_ENV = &$HTTP_ENV_VARS;} if ( !isset($_COOKIE)) { $_COOKIE = &$HTTP_COOKIE_VARS;} if ( !isset($_FILES)) { $_FILES = &$HTTP_POST_FILES;} if ( !isset($_REQUEST)) { $_REQUEST = &$_GET&$_POST&$_COOKIE&$_FILES;} // Now scripts will function as though register globals is on if (isset($_GET)) { extract($_GET); } if (isset($_POST)) { extract($_POST); } if (isset($_SESSION)) { extract($_SESSION); } if (isset($_SERVER)) { extract($_SERVER); } if (isset($_ENV)) { extract($_ENV); } if (isset($_COOKIE)) { extract($_COOKIE); } if (isset($_FILES)) { extract($_FILES); } if (isset($_REQUEST)) { extract($_REQUEST); } Hope this helps Cheers, Andrew WebUK.biz Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.