Page 1 of 1

Anyone else having Paypal troubles?

Posted: Fri Mar 21, 2008 10:18 am
by satori
I mentioned this before, but I really have to get to the bottom of this, we're losing orders.

If people want to pay with Paypal on the final page, it presents a Paypal button to click. It just doesn't work.

On my cart, it brings you to the same page, never showing the Paypal page.

I also tried it on Joe's Solunar.com site which has the RC3, and it also errored out, and brought me to this page:
http://www.solunar.com/default.aspx?asp ... ceipt.aspx

I've downloaded the Paypal updates. Is this a confirmed bug? A way to fix it? I've already submitted a bug ticket.

Until I can get Paypal to work, I don't feel comfortable marketing the site, as my customers use Paypal alot. :)

NOTE: Paypal does work if clicked from the side "Basket Cart".

Posted: Sat Mar 22, 2008 9:41 am
by AbleMods
Amazing you mention this now Angela. I've been cracking my head for days trying to nail the pattern of why some PayPal orders fail while others succeed every time.

I suspected it was based on whether the visitor clicked checkout through the basket page or minibasket page but I wasn't sure.

I'll do some local testing right away and see what I can come up with - maybe I can find a solution that works for both of us ;)

Posted: Sat Mar 22, 2008 10:01 am
by AbleMods
There error I'm receiving is:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
I'm continuing troubleshooting to find a workaround.

Posted: Sat Mar 22, 2008 10:42 am
by AbleMods
Ok I've identified a workaround, Angela do you mind testing with your install?

Edit your web.config file and find the <pages> tag. Just search for <pages and it should find it. Mine looks like this but yours may be different.

Code: Select all

<pages validateRequest="false" >
Now replace the line to look like this:

Code: Select all

<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" >
On my site, it fixed the problem. But I'm now getting a page crash upon the browsers return from PayPal back to my site. I'm trying to figure that out now but it's using an unfamiliar .Net feature to me. I'll post more as soon as I have something for you.

Let me know what you find out with your testing...

Posted: Sat Mar 22, 2008 11:07 am
by jmestep
I'm not sure this will help, but I was getting this error message on an AC7 site I've been working on when I tried to edit the home page to add a control. I wasn't getting it on my test site. I found out that the merchant had entered content, but had put it within <html> and <body> tags and had a <form> in the content also.
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Posted: Sat Mar 22, 2008 11:17 am
by satori
I heard back from AbleCommerce, they're aware of the issue. It simply takes about 5-10 seconds until the page transfers to Paypal. Since that's a long wait, most customers click the Paypal button several times before giving up.

Here's what I posted on my new Customer Portal:

http://www.attachedtobaby.com/CustomerS ... rough.aspx

I checked it on your site, and when I waited at least 4 seconds, and then it successfully transferred me to the Paypal page!

So it looks like we just need to add an alert to wait about 5-10 seconds on that page. I updated PayPalPayNowButton.ascx file in /Conlib/Utility and added this ugly but prominent alert:
<h2>IMPORTANT: After clicking the Paypal button, please wait approximately 10 seconds for Paypal page to load! Do not click again or leave the page until you are in Paypal.com.</h2>

I requested them to include one of those "Please Wait" animated gifts on the page.

Posted: Sat Mar 22, 2008 11:29 am
by AbleMods
The error on my site wasn't because the I was clicking the button multiple times. There error occurred immediately upon a single click of the button.

Once I fixed it, then I would see the substantial delay redirecting to PayPal's site.

Posted: Sun Mar 23, 2008 11:02 am
by compunerdy
I get these in my error log once in awhile

Error in PayPal GetExpressCheckout. User ID detected in PayPal response: UID21956, Customer User ID: 21963

Posted: Sat Mar 29, 2008 6:59 am
by bobr2k
satori wrote:<h2>IMPORTANT: After clicking the Paypal button, please wait approximately 10 seconds for Paypal page to load! Do not click again or leave the page until you are in Paypal.com.</h2>
Since I don't have a way to test this yet and would like to implement your idea, could you respond to tell me whether this message should be before or after the placeholder statement? Thanks!

Posted: Sat Mar 29, 2008 11:03 am
by Logan Rhodehamel
RC3 contains an updated PayPal integration that should eliminate this problem. The delay will be dramatically reduced, perhaps to the level of unnoticable. And the original receipt page will not re-appear after clicking the button. I hope this translates into fewer problem orders for you.

(This is because the PayPal library that did the RC2 button was not Medium trust compatible. I created custom handling for the PayPal Pay Now button that is cleaner and faster.)

Hip Hip Hooray!

Posted: Sat Mar 29, 2008 12:00 pm
by bobr2k
Bless you my son ... Thanks!