OK, the response you're sending to PayPal is being rejected by PayPal. Are you using the Sandbox URL or the production URL? Is your input valid? Check it (the $post_string) by hand.
Hi
I am getting this error over and over. I am using paypal sandbox. Not sure what can I do. Kind of stuck here
"IPN validation failed."[04/06/2016 10:45 AM] - SUCCESS :paychecker intiated by 173.0.81.1[04/06/2016 10:46 AM] - SUCCESS :paychecker intiated by 173.0.81.1[04/06/2016 10:46 AM] - SUCCESS :Validating PayPal order [04/06/2016 10:46 AM] - SUCCESS :IPN message new resposne: INVALID[04/06/2016 10:46 AM] - FAILURE :IPN validation failed.
Any help?
OK, the response you're sending to PayPal is being rejected by PayPal. Are you using the Sandbox URL or the production URL? Is your input valid? Check it (the $post_string) by hand.
Sam wrote:> OK, the response you're sending to PayPal is being rejected by PayPal. Are> you using the Sandbox URL or the production URL? Is your input valid? Check> it (the $post_string) by hand.I am using sandbox url. I will update you as soon as I can with my post string I am currently down
Here is the post string
Post string: payment_type=instant&payment_date=Wed+Apr+06+2016+13%3A16%3A28+GMT-0400+%28Eastern+Standard+Time%29&payment_status=Completed&payer_status=verified&first_name=John&last_name=Smith&payer_email=buyer%40paypalsandbox.com&payer_id=TESTBUYERID01&address_name=John+Smith&address_country=United+States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San+Jose&address_street=123+any+street&business=pappu51000-facilitator%40yahoo.com&receiver_email=pappu51000-facilitator%40yahoo.com&receiver_id=pappu51000-facilitator%40yahoo.com&residence_country=US&item_name1=something&item_number1=AK-1234&quantity=1&shipping=0&tax=0&mc_currency=USD&mc_fee=0&mc_gross=69.99&mc_gross_1=0&mc_handling=0&mc_handling1=0&mc_shipping=0&mc_shipping1=0&txn_type=cart&txn_id=899327589¬ify_version=2.4&custom=xyz123&invoice=abc1234&test_ipn=1&verify_sign=AFcWxV21C7fd0v3bYYYRCpSSRl31AChhqwmGUDM..hlasHn0xX87Aqpb&cmd=_notify-validate
That's not enough information for us to help you even a little bit. This is your bug. You need to do the legwork of figuring out what you've done wrong; we can't fix code you've changed for you. We'll fix our own code, but we can't debug your code.
What you're probably doing wrong is how you're using the PayPal IPN tester. Or how you've configured your PayPal "paychecker.php". Run the purchase through the site itself. Configure it correctly. If you still get an error, and it's an error in our code then we'll be glad to fix it.
I recall you emailing us about the email address not matching, saying it was a chicken & egg problem. Did you do something crazy? Or did you figure out you can just set the "receiver" email in PaymentSettings.php.
Hey Sam
Seems like you are getting annoyed. Well, as I said I do not posses knowledge of php. On the website, you said it is just plug and play. I am trying my best to understand the problem but I need to know where to start.
I did figure out the email problem. On your comment .... we can not debug the code you changed for your self. I have not changed any code except for settings in paymentsettings.php. I am not sure what can I be doing wrong. I checked the post string and it seems to match the info that i am filling into the IPN on pay pal site.
"Run the purchase through the site itself. Configure it correctly. If you still get an error, and it's an error in our code then we'll be glad to fix it."
What do you mean by run the purchase through the site? Please, explain.
For email issue, I didn' t do anything crazy ... Just match the email on both sides.
Hope you will be able to help.
Do you think it could be a problem with htts vs http? My IPN listener url is not set as https.
Well, your server should be HTTPS, but that's just security 101 stuff. Don't send payment or customer information over HTTP.
But that's not the problem you're running into. How do I know? Because PayPal is successfully contacting your script. And your script is successfully contacting PayPal's servers. Where did things go off the rails? Your script is sending a "post_string" to PayPal that PayPal sees is invalid (i.e. they didn't contact your servers with that post_string, thus the post_string is fraudulent.
Hence the "invalid" response from PayPal.
>> "What do you mean by run the purchase through the site? Please, explain."
You're making a payment site. Run the purchase through that payment site. I.e. don't use the IPN generator. Have the site generate the request.
My guess is that "paychecker.php" is contacting the production PayPal servers. You'd have to add logging to see which server it's contacting.
>> "Well, as I said I do not posses knowledge of php. On the website, you said it is just plug and play."
You need knowledge of PHP to modify the PHP examples. If you would rather use ASP.NET, then we also have identical ASP.NET examples. If you want a truly plug-and-play experience, just use FastSpring: https://wyday.com/limelm/help/automate-license-generation-with-fastspring/
They handle all of the details about the payments.
Hi Sam
I tried to do a real transaction(Through website as you mentioned). It took my money but never sent me a license. Can you please have a look? I really need to figure out the issue.
Thanks in advance
What I meant here is that it failed to receive proper response and never successfully sent a license out. I have already tried to fake the response and it was sending me out the license.
Just a thought: try Fastspring.We use it and we are happy. No real programming skills needed. Things are more complex than just generating keys and processing payments. Just to name a few problems you will run into:- VAT (national, international)- Invoicing international customers- Your emails get blocked for random reasons, customers don't get them even if everything went fine...
Anyone can help me with limelm php script issues?
I started debugging and seems like this error is holding me back....
"Cannot communicate securely with peer: no common encryption algorithm(s)"
OK, so your PHP version is compiled without the correct crypto library. Use a version of PHP that's compiled correctly. See: http://stackoverflow.com/questions/31107851/how-to-fix-curl-35-cannot-communicate-securely-with-peer-no-common-encryptio
Please, tell me what i am looking for. Here is my php configuration:
http://www.freewebhostingarea.com/phpinfo-default_variables.html
Seems suported tls ssl sslv2 sslv3
The problem is the cipher list supported. Don't use that free web host (you're getting what you pay for). That php version (5.4.x) is a vulnerability magnet (it's no longer supported and no longer getting security fixes). It's not even the latest for the 5.4.x branch (the last version of the 5.4.x branch is 5.4.45). Look at all of the security fixes: http://php.net/ChangeLog-5.php#5.4.45
But that's beside the point. 5.4.x is not supported.
Use a proper webhost. Preferably run by professionals. Use 5.5.x at a minimum. Preferably 5.6.x or even better 7.0.x.
Or just use FastSpring. We don't get any money for saying that or for referring people to them.
Hi
Finally I got it working 🙂
It was the php configuration issue. Thanks. I started using our genuine host and everything just worked. (I mean I have to setup properly, but no debugging was required)
Please, highlight the fact (about PHP ) in webpage where you describe the how to automate with paypal.
I am considering Fastspring as well. I will give it a try.
Thanks again