close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal checkout failure

Thread began 2/09/2010 3:40 pm by Joe Lowery | Last modified 2/10/2010 11:16 am by Eric Mittman | 1567 views | 5 replies |

Joe Lowery

PayPal checkout failure

I continue to get a checkout failure with both Express Checkout and standard credit card checkout with PowerStore 2. Here's what I have set up:

WA Globals - I've set test mode to "false", PayPal sandbox to "true", and entered my sandbox store credentials (I get the "test store" name when I click the Express C/O button, so that seems right).

After clicking the Express C/O button, the test store site opens on PayPal where I log in and get the info screen. I click continue and am taken to checkout_failure.php (not pp_checkout_failure.php).

I've put the following code on confirm.php to check the session values:

<?php
if(!session_id()) session_start();
echo("PayPal Full Request :<br />");
echo("<code>".isset($_SESSION["PP_DirectPayment_postedValues"])?$_SESSION["PP_DirectPayment_postedValues"]:""."</code><br /><br />");
echo("Paypal Full Response :<br />");
echo("<code>".isset($_SESSION["PP_DirectPayment"])?$_SESSION["PP_DirectPayment"]:""."</code><br /><br />");
?>



This is the response I get:
PayPal Full Request :
Paypal Full Response :

Obviously, I'm missing some basic connection, but can't figure it out. Please help!

Best - Joe

Sign in to reply to this post

Joe Lowery

After digging through the forum archives, I added the following code snippet to checkout_failure.php:

<?php
if(!session_id()) session_start();
echo("<p>Auth request: ".isset($_SESSION['ECO_Auth_Request'])?$_SESSION['ECO_Auth_Request']:""."</p>");
echo("<p>Auth Result: ".isset($_SESSION['"ECO_Auth_Result'])?$_SESSION['ECO_Auth_Result']:""."</p>");
echo("<p>Get Request: ".isset($_SESSION['ECO_Get_Request'])?$_SESSION['ECO_Get_Request']:""."</p>");
echo("<p>Get Result: ".isset($_SESSION['ECO_Get_Result'])?$_SESSION['"ECO_Get_Result']:""."</p>");
echo("<p>Preocess request: ".isset($_SESSION['"ECO_Process_Request'])?$_SESSION['ECO_Process_Request']:""."</p>");
echo("<p>Process Result: ".isset($_SESSION['ECO_Process_Result'])?$_SESSION['ECO_Process_Result']:""."</p>");
?>



After doing so, I got this response:

merc_XXXX766451_biz_api1.XXXXjoe.com1265766457A34NYRzYdRNJAxd5WTQQ43k7P-2vABrJgPfE2TykbX1xwy8NaijHl3Xy2.20544.38http://ellencellijewelry.com/pp_confirm.phphttp://ellencellijewelry.com/pp_cancel.phpAuthorizationA34NYRzYdRNJAxd5WTQQ43k7P-2vABrJgPfE2TykbX1xwy8NaijHl3Xy2010-02-10T02:06:00ZSuccessead7b25e7e9892.201179072EC-3CG72032LN250881Emerc_1265766451_biz_api1.markofthejoe.com1265766457A34NYRzYdRNJAxd5WTQQ43k7P-2vABrJgPfE2TykbX1xwy8NaijHl3Xy2.20EC-3CG72032LN250881E

What's baffling is that it appears to have succeeded - but obviously something is failing. Help!

Best - Joe

Sign in to reply to this post

Joe Lowery

Okay, I saw Eric's note to another user and put in the proper code for debugging. This is what I get from going the Express Checkout route or through the sandbox credit card:

Fatal error: Call to undefined function PP_DirectPayment_Result() in /homepages/22/d300453961/htdocs/checkout_failure.php on line 129

but line 129 is the debug code:

<?php echo(PP_DirectPayment_Result("Full Request")) ?>



Please help.

Best - Joe

Sign in to reply to this post

Eric Mittman

Joe,

I think you are missing the necessary include files on this page in order to get this result. Here are the includes that should be put at the top of the page:

<?php
require_once("WA_eCart/Adv_CO_Scripts/PP_DirectPayment_PHP.php");
?>
<?php
require_once("WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php");
?>

If you have the full request and full response code after these includes it should return the values without error, let me know how this works for you.

Sign in to reply to this post

Joe Lowery

Thanks for the reply, Eric. I added the two includes to both checkout_failure.php and pp_checkout_failure.php and am now not getting any debug information, just the standard HTML failure message. What else can I try?

Best - Joe

Sign in to reply to this post

Eric Mittman

I have opened a ticket for you on this so we can exchange some more details in private, please login and update the ticket from the support history section.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...