1) Add the following code to the success page:
<?php
// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();
// Unset all of the session variables.
$_SESSION = array();
// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
@setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
@session_destroy();
@session_regenerate_id();
?>
2) there should be a transaction ID binding on the bindings panel, this should be used in the update for the ID Value.
3) you would need to add an update behavior to the IPN Page for this and add a loop so that it updates for each item in the cart.
This will require custom coding to accomplish and will go beyond what we can offer support for through this forum, I would suggest signing up for a premiere ticket where we could help with this, we would also be able to fix the status issue in the premiere ticket pretty quickly.
4) the email receipt should also be sent from the IPN page, but you can display the items orders by adding a cart display manager to the page.