PayPal Pro UK Debugging
Can someone give me some PHP code to place on my 'checkout_failure.php' page that will allow me to debug some errors?
I am using PayPal Pro UK. Thanks.
Can someone give me some PHP code to place on my 'checkout_failure.php' page that will allow me to debug some errors?
I am using PayPal Pro UK. Thanks.
You can put this code on your failure pages to get a better idea of the issue:
<?php
if(!session_id()) session_start();
echo("Direct Pay Full Request :<br />");
echo("<code>".isset($_SESSION["PP_DirectPayment_postedValues"])?$_SESSION["PP_DirectPayment_postedValues"]:""."</code><br /><br />");
echo("Direct Pay Full Response :<br />");
echo("<code>".isset($_SESSION["PP_DirectPayment"])?$_SESSION["PP_DirectPayment"]:""."</code><br /><br />");
echo("PayPal Express Checkout requests and responses :<br />");
echo("Auth request: ".isset($_SESSION['ECO_Auth_Request'])?$_SESSION['ECO_Auth_Request']:""."<br /><br />");
echo("Auth Result: ".isset($_SESSION['"ECO_Auth_Result'])?$_SESSION['ECO_Auth_Result']:""."<br /><br />");
echo("Get Request: ".isset($_SESSION['ECO_Get_Request'])?$_SESSION['ECO_Get_Request']:""."<br /><br />");
echo("Get Result: ".isset($_SESSION['ECO_Get_Result'])?$_SESSION['"ECO_Get_Result']:""."<br /><br />");
echo("Preocess request: ".isset($_SESSION['"ECO_Process_Request'])?$_SESSION['ECO_Process_Request']:""."<br /><br />");
echo("Process Result: ".isset($_SESSION['ECO_Process_Result'])?$_SESSION['ECO_Process_Result']:""."<br /><br />");
?>
If you need to post back with this information make sure that you remove any sensitive details first like your PayPal account setting and credit card info.
It doesn't seem to work, just blank - no error messages!
I am using PayPal Pro UK.
What version of eCart are you working with? In eCart 5 there is not a real distinction between UK and US Payments Pro, they use the same system now.
If you open up your checkout failure and look in the bindings you should see bindings for your local checkout server behavior. You will want to add the full request and full response to the page.
This code may need to make use of an include file that is on your confirm page. You should add the includes that go to the WA_eCart folder from this file onto your failure page.
I am having problems getting VISA Credit cards to work.
Were you able to add in the full request and full response bindings for the checkout on the failure page? This is the next step that needs to be taken to debug the problem further. You will need these bindings added to the page, if you also need the include files for them you can copy and paste the include files from your confirm page. Please post back with the results that you get after adding these bindings. If you post back with the info that appears on the page make sure to remove any sensitive details like PayPal logins or credit card numbers.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.