Hi, I have a question regarding the use of sessions and callbacks in Worldpay (which we have had working in a oscommerce setup, but cant seem to get it working with this 'simple' script).
This is the code that we have in our callback.php page and all that gets returned when the callback initiates is the default success banner, any ideas?;
<?php
error_reporting(0);
require("merchantfront.php"); // just contains shopping basket functions
session_name("mysession");
session_start();
if (!session_is_registered("basket")) {
$basket=new Basket;
session_register("basket");
}
if ($transStatus == "C") { ?> <WPDISPLAY ITEM=banner> <?php }
if ($transStatus == "Y")
{
if ($basket->Get_Basket_Count()>0) {
$pos = $basket->Enum_Items(true);
while ($pos>=0) {
print $basket->Get_Item_Name($pos);
$pos = $basket->Enum_Items();
}
}
}
?>