close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout Failure

Thread began 4/06/2010 9:35 pm by paul397433 | Last modified 4/08/2010 10:23 am by paul397433 | 912 views | 9 replies |

paul397433

Checkout Failure

Sorry for the cross posting but I have received no responses to multiple requests for a ticket, or suggestions or...something.. after a number of days of need.

I am getting checkout failure in PS3. Using scripts provided, I get the following error message:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/44/d314764825/htdocs/checkout_failure.php:3) in /homepages/44/d314764825/htdocs/checkout_failure.php on line 4

We were able to process a single transaction through the system successfully. Now that looks like a fluke.

Thank you for any help you can provide.

Sign in to reply to this post

Jason ByrnesWebAssist

see the following page for information on the headers already sent error:
148/


to troubleshoot why the transaction is failing, add the following code to your checkout failure page after the <body> tag to write the response from the gate way to the screen:

php:
<?php  

 
if(!session_id()) session_start(); 
 if(
$WAGLOBAL_Gateway == ) { 
     echo 
"<p>Direct Pay: <br />"
     echo 
"Full Request: ".(isset($_SESSION["PP_DirectPayment_postedValues"])?htmlentities($_SESSION["PP_DirectPayment_postedValues"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["PP_DirectPayment"])?htmlentities($_SESSION["PP_DirectPayment"]):"n/a")."<br /></p>";  
     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 />"
     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>"
 } 
  
 if(
$WAGLOBAL_Gateway == 2) { 
     echo 
"<p>Auth Net: <br />"
     echo 
"Full Request: ".(isset($_SESSION['WAAuthNet_postedValues'])?htmlentities($_SESSION['WAAuthNet_postedValues']):"n/a")."<br />"
     echo 
"Full Response: ".(isset($_SESSION['WAAuthNet'])?htmlentities($_SESSION['WAAuthNet']):"n/a")."<br /></p>"
 } 
  
  if(
$WAGLOBAL_Gateway == ) { 
     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>"
  } 
   
 if(
$WAGLOBAL_Shipping == 1) { 
     echo 
"<p>UPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_UPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_UPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_UPS_FullResponse"]):"n/a")."<br /></p>";  
 } 
 if(
$WAGLOBAL_Shipping == 2) { 
     echo 
"<p>FedEX: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>";  
 } 
 if(
$WAGLOBAL_Shipping == 3) { 
     echo 
"<p>USPS: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_USPS_FullResponse"]):"n/a")."<br /></p>";  
 } 
?>




the response from the gateway will help us determine why the transaction is failing.

Sign in to reply to this post

paul397433

Checkout failure, more...

Thank you for the help.

I now get the following:

Parse error: syntax error, unexpected '<' in /homepages/44/d314764825/htdocs/checkout_failure.php on line 31

I've attached a copy of the (renamed) php file I am using for reference.

Paul

Attached Files
checkout_failure_paul.php.txt
Sign in to reply to this post

Jason ByrnesWebAssist

at line 31, you have the following code:

php:
echo "<p>UPS: <br />"; <a href="checkout_failure.php">Checkout failure -</a>



this is not the code I provided in my previous reply, line 31 should be:

php:
echo "<p>UPS: <br />";
Sign in to reply to this post

paul397433

Checkout Problem

Not trying to be cute here, Jason. I appreciate your help and I can tell you are very busy, as I am.

What is the difference between those two lines of code?

Sign in to reply to this post

paul397433

Checkout Failure

Ok, I see what I think you meant to say above and the checkout_failure page returned the code in the attached. (I have masked the ccard #)

Attached Files
Auth Net response.txt
Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, the problem was the anchor tag.


In the response, the error returned from authorize.net is line item is invalid.

I think the problem is the short description for the product, it is being sent as:
<p>*Outrageous Dog Collection Flowers</p>

I think the error is caused by the * character.


try removing that from the products short description.

Sign in to reply to this post

paul397433

Yippie, yea, fireworks, cigars

That seems to have got it.

Here is what is happening. The text in the 3 product desc. areas were copy/pasted from a word doc and insterted using the paste as plain text tool in th editor. Trouble is that when you do that it inserts a character that appears as a blank space -- invisible. You can easily see the character when looking view source, but unless you do that it looks like it can broke it because the character insterted displays as a *. Crap.

But its fixed and I can move on.

Thank you! Great catch.

I still don't have Paypal working but thats a different matter. For now I can get by on Authorize.net.

Cheers.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.


The same code on the failure page should help determine why paypal is not working.

Sign in to reply to this post

paul397433

PayPal Puzzle

Thanks, Jason.

1. Is there a way to *simply* remove the paypal option (lose the buttons on the checkout page)? We have authorize.net working just fine and I'm not sure our customers are big paypal users. Would be easier than (2) . Or is there some other workaround? I am still pressed for time and getting going is way more important than paypal or USPS.

2. Put the code into the checkout failure page and got the following response -- see attached txt . Looks like there is a discrepancy in the zip codes, a usps problem. (again). But I've checked both the user data and the paypal data and the zip codes agree/are present in both places. Question: I'm actually trying to pay through a paypal account that is different than my website user -- do the two get reconciled somewhere? Must agree?

BTW, we are www.outrageousdog.com.

Attached Files
PayPal failure2.txt
Sign in to reply to this post
loading

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