close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Serious issue with paypal

Thread began 8/11/2014 9:05 pm by Christopher West | Last modified 8/12/2014 8:43 am by Jason Byrnes | 525 views | 1 replies |

Christopher WestCommunity Expert

Serious issue with paypal

Hello, I originally wrote a long account of 2 issues I was having with PayPal, however after talking to Ray it seems that my issues are resolved.

But will still describe the issues I was having in case anyone else was having problems..

ISSUE 1: Sometimes on checkout the website would redirect to 2 different PayPal pages...one was the the old style and the other was a nice looking fresh versions (screenshots attached). This was completely random.

ISSUE 2: On the PayPal page after logging in and confirming the order and pressing the Paypal Continue button....it would then redirect to my website's cart.php page and it would show the cart to be empty..this was puzzling as this was random and mostly the order were successful...just once in a while it would redirect to an empty cart page so the order failed.

Well...After many tests, I realised the once thing I wasnt paying attention to is my website's URL I have 2 URLS and old one that my client had originally used and a newer one that I recommended for SEO purposes...however because Internet browsers have auto-complete I beleive somemtimes I was placing order via the old URL and when I get redirected to PayPal to confirm the order, it was then redirecting back to the new URL..so that would mean of course it would redirect to an empty cart page as the URL needs to match during the PayPal payment process.

Originally I had an .htaccess snippet of code to create the redirect to the new URL if a customer enters the old URL in the browser...So something there must have gone wrong as I just checked it and my .HTACCESS file was blank..possible when I was testing out some other functions of the .HTACCESS file and forgot to go back to the original.

So correcting the HTACCESS file solved ISSUE 2:
in case anyone requires it the code I use for redirect is:

# Redirect non-www urls to www
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yourwebsite\.co.uk
RewriteRule (.*) http://www.yourwebsite.co.uk/$1 [R=301,L]



OK, now the other issue of 2 different PayPal payment layout pages, Ray had informed me that PayPal was had been doing A/B testing for performance. Once way to fix the issue, so that it would go to the NEW PayPal payment layout page is to change line 206 of the ecart file: PP_ECO_PHP.php ...

originally in my ecart file I had the code:

php:
$retVal->ECOServer = "https://www." . ($usesandbox?"sandbox.":"") . "paypal.com/webscr?cmd=_express-checkout&token=" . $_SESSION['PayPal_ECO_Token'];




and change to this code:

php:
$retVal->ECOServer = "https://www." . ($usesandbox?"sandbox.":"") . "paypal.com/checkoutnow?token=" . $_SESSION['PayPal_ECO_Token'];



This should solve the issue :)

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

Thanks for posting that information Chris, appreciate it.

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