close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Express wizard problems

Thread began 5/19/2010 10:55 am by paul298707 | Last modified 5/21/2010 3:06 pm by Jason Byrnes | 1529 views | 10 replies |

paul298707

PayPal Express wizard problems

eCart 4.5. I have my shopping cart working great. Registration and login is all good.

I'm able to click the "Checkout with PayPal" button and it takes me to the paypal page where I can login successfully, click OK -- and it takes me to the pp_confirm?tokenxxxxxx page. This all seems correct?

The problem is when I click the "Submit Order" button it doesn't process the transaction in PayPal (I've checked and no funds are transferred) and takes me to the pp_checkout_failure.php page.

Please advise. Thanks. Paul

Sign in to reply to this post

Jason ByrnesWebAssist

Are you using any of the shipping rate lookup providers, like USPS or FedEx?

What is the exact URL in the browser for the failure page? are there any querystring variables at the end?

Add the following code to the failure page anywhere after the <body> tag:

php:
<?php

    
if(!session_id()) 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 />"
     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 fill request and response from paypal to the screen and help us determine the cause for the failure.

NOTE: The full request and response will contain sensitive information like paypal api information, this should be removed before posting it here.

Sign in to reply to this post

paul298707

Here is the error code

PayPal Express Checkout requests and responses :
sales_apixxxxxxxxxxxxxxxxxxxhttp://www.pcsarticles.com/pp_confirm.phphttp://www.pcsarticles.com/pp_cancel.phpAuthorizationxxxxxxSuccessexxxxxxsales@pcsonlinesolutions.comxxxxxxxxxxxxxxxsales@pcsonlinesolutions.comxxxxxxWebAssist.eCartPHP.Pro.ECOArts & Entertainment Articles PackagexxxxxxxxFailurexxxxxxSecurity errorSecurity header is not valid10002Error2.201311648

Sign in to reply to this post

paul298707

A couple other thoughts

I've had conflicting info from these forums -- this could be the problem.

For PayPal Express, one forum answer was to use PayPal's API user name, API password and API signature.

But your help in the wizard says to use your paypal email address, paypal password, and API signature.

Which is it?

I've used both methods and get the same failure.

If I change these setting on the confirm.php and pp_confirm.php pages,where else might I need to change them? Is it necessary to upload the entire ecart and security assist folders (I have been, but do I need to?).

Is it necessary to have my SSL already installed?

Help. I'm sooooo close. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

so the error you are getting is:
Security error
Security header is not valid

This will happen if the API Credentials being used are for the sand box and you are using the live server or if the api is for the live server and you are using the sand box.


Where the problem does not occur until you click the confirm button on the pp_confim.php page, the problem is in the Process Express Checkout server behavior.

In the Server behaviors list, double click the Process transaction with PayPal Express checkout server behavior. Double check that the API credentials in this server behavior are the same as in the Get Payer Profile fro PayPal Express Checkout server behavior and that the sand box setting is the same as well.

Sign in to reply to this post

paul298707

Still need clarification

Jason, I think we're getting close, but you still haven't verified if I should be using the PayPal API user name, API password and API signature OR the paypal email address, password and API signature?

I have not been using sandbox.

I think it's key you tell me whether to use the API user name or my paypal email address I use to login.

P.S. It's interesting to note I've tried them both, made them the same, uploaded the files, and when I later open the Checkout Payer Provile it has somehow changed my normal paypal password to the API password. And another time it changed my email address to my API user name.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

it should be the API username, api password, and api signature.

Since the pp_confirm page lods and does not go to the failure page, you have the correct values in the Get Payer Profile fro PayPal Express Checkout server behavior.


it is just in the Process transaction with PayPal Express checkout server behavior that it is set incorrectly.

dalso make sure that there are not 2 instances of the Process transaction with PayPal Express checkout server behavior this could also cause the problem.

make sure the api information in the Process transaction with PayPal Express checkout server behavior matches the api information in the Get Payer Profile fro PayPal Express Checkout server behavior

Sign in to reply to this post

paul298707

This was helpful

Thanks Jason, this got me where I needed to be. FYI, it was the API stuff that screwed things up. If you use the checkout wizard and click the "help" button it shows an "email" address for the user name, and not an API user name (they don't look anything like an email).

Apparently, one of the times I tried using an email address got stuck in the system somehow. Even after I edited the server behavior to correct it, and would save it, I would open it again and it would have the old info?

Do you know why (and where) this old info kept coming back??????? PLEASE answer this so I know for future projects.

Another way of asking this is: When I change a server behavior, do I need to upload any other pages (or folders) other than the page I made the change on??????

I eventually deleted the cart and ALL checkout pages, reran the wizard with the correct API settings, and it's all working. Yea. Now on to the download page.

I could have save many days and you guys time if your documentation was clear on this.

Thanks for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not able to find the help documentation page you are referring to. The help page that comes op on the payment gateway section of the checkout wizard in eCart 5 just has information about local and remote checkout. no examples of the api information.


With express checkout, there are 3 server behaviors that get applied:
On the Checkout page:
1) Authentication For PayPal Express Checkout

On the pp_confirm page:
2) Get Payer Profile For PayPal Express Checkout
3) Process Transaction with PayPal Express Checkout.

you need to update the API information in all three of these server behaviors.

Sign in to reply to this post

paul298707

Originally Said By: paul298707
  When I change a server behavior, do I need to upload any other pages (or folders) other than the page I made the change on??????  



Thanks Jason, clear on that and it's working. But I'm still wondering about the above question? For example, if I change a server behavior on the confirm page, what page(s) and/or folders other than the confirm page would I need to upload?

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