close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout Keeps Failing

Thread began 6/06/2012 4:16 pm by bill173836 | Last modified 6/06/2012 6:44 pm by bill173836 | 515 views | 4 replies |

bill173836

Checkout Keeps Failing

I talked with Jason yesterday and he informed me it would be best to use PayPal Pro instead of PayPal Standard. I deleted all my eCart files and started from scratch I created the eCart Object. Created the Shopping Cart, The add to Cart buttons and the Checkout using PayPal Pro. I've got my API information in place Deleted the Credit Card Form off the Checkout page and deleted the confirm.php. Page everything works until I click the PayPal button on the Checkout page and it fails every time. Any idea what I can do?

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code to the failure page to write the full request and response from the gateway to the page, this will help us see what is going wrong:

php:
<?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>"
?>
Sign in to reply to this post

bill173836

I've compared it to other sites that I had done in the past and noticed that the code under the authorization was different.

This is what the wizard created: (I'm using 5.06 now)

$WA_PP_ECO_SetResult = WA_PP_ECO_Set_Post($WA_PP_ECO_Set_params);
if ($WA_PP_ECO_SetResult->isError) {
if ("pp_checkout_failure.php" != "") {
header("Location: ". "pp_checkout_failure.php"); exit;
}
}
else {
$ShoppingCart->redirStr = $WA_PP_ECO_SetResult->ECOServer;
}
}

This is what was in an older version:

$WA_PP_ECO_SetResult = WA_PP_ECO_Set_Post($WA_PP_ECO_Set_params,$WA_PP_ECO_Do_itemized);
if ($WA_PP_ECO_SetResult->isError) {
if ("pp_checkout_failure.php" != "") {
header("Location: ". "pp_checkout_failure.php"); exit;
}
}
else {
$siteCart->redirStr = $WA_PP_ECO_SetResult->ECOServer;
}
}

I switched them out and now it goes to PayPal. The total price is being displayed but all the description information is blank. Just the Total Charge is present. If I have 2 items in the cart Paypal only shows a Quantity of 1.
I've uploaded a screen shot.

What was in the cart was 2 different products with quanities of 5 each.
The shipping is $8.50
Tax is $0.11
Grand Total: 10.11 <----- This appears to be the only value being sent to Paypal

Sign in to reply to this post

bill173836

Continued from previous post.

Here is what the shopping cart looked like.

Sign in to reply to this post

bill173836

I think I figured it out, the wizard left out a whole lot of session variables that paypal needed. It appears to be working now. I'll fully test to make sure.

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...