close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Variables Not Passing to Paypal

Thread began 2/28/2011 11:15 am by warrenphillips25336771 | Last modified 3/09/2011 1:21 pm by Jason Byrnes | 5641 views | 17 replies |

warrenphillips25336771Beta Tester

Variables Not Passing to Paypal

Hi

done my client a site a couple of months ago using powerstore 2, but when using paypal we enter our details in paypal, choose options for payment card etc... click pay and it goes through the motions then goes back to the site saying cart is empty,

It looks to me like the cart variables are not getting passed through with the shipping etc... can someone have a look please, site is timberwiseuk.com all you have to do is go through to paypal and you will see there is no prices there, I tried to purchase something, went through everything and no orders were stored, and paypal took no money!

Sign in to reply to this post

warrenphillips25336771Beta Tester

Update

If I put my correct address in it redirects me to cart page, I do not seem to be going to confirm page neither, where has it gone wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

what is the address in the address bar when you get to the checkout page?

What is the address in the address bar when you get to the cart is empty page?

Are you testing using PayPal Express checkout?

Or are you entering your credit card information?


  If I put my correct address in it redirects me to cart page  



I'm not sure what you mean by this, please explain in more detail.

Sign in to reply to this post

warrenphillips25336771Beta Tester

Answer

Hi Jason

I look at a product and the trail is as follows,

productdetail.php --> Cart.php --> Checkout.php --> Paypal Website

I am not testing paypal express it is a live working thing,

By this "If I put my correct address in it redirects me to cart page" I mean if i put my correct details into paypal IE use correct credentials it just goes back to the cart.php page and says cart empty in the content area, if I add a different address which is different to my billing address for my credit card then the transaction fails.

I have tried 7 times now and everytime nothing happens with paypal, no money taken etc... but am I correct in saying there should be a confirm page somewhere before being sent to paypal?

Sign in to reply to this post

Jason ByrnesWebAssist

please send me a link to your site so I can see the problem to better understand the issue.
You say you are using PowerStore 2?

the only time you would be redirected to paypal is using Express Checkout or payPal Standard, Power Store 2 does not support paypal standard.

Sign in to reply to this post

warrenphillips25336771Beta Tester

Well it has credentials

Hi Jason

it is www(dot)timberwiseuk(dot)com. I got the credentials from paypal same as I have with another powerstore and that one works.

There is a test product there that is what i use,

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is domain switching


when you start shopping using the www address, the cart contents are stored in a session for that domain. When paypal directs you back to the site, it is not using the www address, it is leaving the www off, this is not the same domain as far as the session cookie is concerned so the cart is empty.

That is why my initial reply was to ask about the address in the address bar, I wasn't concerned with the page names, but the full address.


in the wa_globals.php page, make sure that the address you enter for the $WAGLOBAL_Root_URL is the full www address.

Sign in to reply to this post

warrenphillips25336771Beta Tester

Still Failing

Hi Jason

Still get a failed transaction even though I changed the globals file! checkout_failure.php?shipping=fail

Anything else I can try?

Sign in to reply to this post

warrenphillips25336771Beta Tester

Added code

I even added this to the pp_failure.php page but for some reason it is not sending any info back!

<?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 />");
?>

Sign in to reply to this post

Jason ByrnesWebAssist

this time it is a shipping issue, what shipping provider did you chose?

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