PayPal Auto-Return Fail – Unable to verify $_SERVER["HTTP_HOST"]
-
Hi everyone. I’m having issues with customers not being able to return to my website to register and create their accounts, after paying via PayPal. Note that it is NOT every payment/auto-return which fails. It is about 1 in every 5.
I have a PayPal button which is generated by the following s2member shortcode for recurring payments:
[s2Member-PayPal-Button level=”2″ ccaps=”” desc=”PRO Account mydomain.com” ps=”MyPaymentStyle” lc=”” cc=”USD” dg=”0″ ns=”1″ custom=”mydomain.com” ta=”0″ tp=”0″ tt=”D” ra=”19.99″ rp=”1″ rt=”Y” rr=”1″ rrt=”” rra=”1″ image=”https://mydomain.com/wp-content/uploads/2014/04/BuyNowPayPal.png” output=”button” /]The error which the customer receives is:
ERROR: Unable to verify $_SERVER[“HTTP_HOST”].
Please contact Support for assistance.If you are the site owner, please check the custom value in your Button Code. It MUST start with your domain name.
I have triple checked my PayPal and s2member settings (I guess they would have to be correct anyone if it is working 80% of the time).
It’s only started happening over the last 3-4 weeks as I was alerted to it when I started receiving double payments from customers because they were thinking their payment didn’t go through (which of course it did but it just wouldn’t redirect to the registration page). Then one of my customers alerted me to the error.
My custom value is my domain without the ‘www’ and I don’t have any subdomains. My website is never on a ‘www’ scheme. It is interesting how sometimes it works and sometimes it doesn’t. Can someone please give me some ideas as to why this is happening? I got a feeling it is something which I haven’t changed (i.e. something on PayPal’s or s2member’s side of things).
I’ve also checked my PayPal IPN history and compared the same person’s payment for when it fails and when it succeeds and they are identical (apart from the time, invoice number and things that change on a transaction basis). My single hint for why this is happening is from the s2member logs. I think s2member isn’t receiving all the variables back from PayPal in time (or at all). I’ve read this could be happening due to using other PayPal buttons not generated by s2member’s shortcode but why would that apply here?
- The topic ‘PayPal Auto-Return Fail – Unable to verify $_SERVER["HTTP_HOST"]’ is closed to new replies.