well, yes, the localhost address:
pp_confirm.php
is using your local wamp server for testing, like i said in my previous reply, you are running the pages from your local server and the database connection is set to connect top the remote server.
you need to use the live server address for doing the transaction.
to troubleshoot why the transaction is failing, add the following code to the pp_checkout_failure.php page just before the closing </body> tag:
<?php
@session_start();
echo "<p>Express Authorize: <br />";
echo "Full Request: ".(isset($_SESSION["ECO_Auth_Request"])?htmlentities($_SESSION["ECO_Auth_Request"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["ECO_Auth_Result"])?htmlentities($_SESSION["ECO_Auth_Result"]):"n/a")."<br /></p>";
echo "<p>Express Process: <br />";
echo "Full Request: ".(isset($_SESSION["ECO_Process_Request"])?htmlentities($_SESSION["ECO_Process_Request"]):"n/a")."<br />";
echo "Full Response: ".(isset($_SESSION["ECO_Process_Result"])?htmlentities($_SESSION["ECO_Process_Result"]):"n/a")."<br /></p>";
?>
this will write the full request being sent to paypal and the response coming back to help determine the cause of the failure.
NOTE: the full request and full response will contain sensitive information that should be removed before posting here,