Why am I getting a 500 Error when using PayPal uses IPN to WooCommerce? - paypal

I'm using WooCommerce version 3.3.5 and I'm trying to get the IPN to work so that my orders get updated.
I added https://example.com/?wc-api=WC_Gateway_Paypal as my notification URL in PayPal.
I'm currently getting a 500 error "PayPal IPN Request Failure" when the order is processed.
What am I doing wrong or what do I have to do to fix this problem.
Thanks in Advance

Related

Getting Error on PayPal PAYEE_ACCOUNT_LOCKED_OR_CLOSED

I have implemented Paypal API in my ASP.net MVC application and I have tested it using the live api key,
At the time of payment processing I am getting an error stated
reason=PAYEE_ACCOUNT_LOCKED_OR_CLOSED in the failure URL
This is the page which I am getting
I got the resolution for the issue
It was the account was not completely created from paypal
Thats has been resolved and now the payment is working fine....
Thanks for your response micstr

Using paypal IPN sample code but it doesnt work

I'm trying to setup Paypal IPN for my Skype bot but I can't get it to work. I am using the Paypal sample code found here: https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php but I keep on getting We could not send an IPN due to an HTTP error: 500: Internal Server Error from Paypal's IPN simulator.
I really need help with this. I'm not good with PHP.

Instant Payment Notification (IPN) returning Html

We are requesting the following URL "https://securepayments.paypal.com/cgi-bin/acquiringweb" with cmd=_notify-validate to get the notification of VERIFIED or INVALID as per the documentation (https://www.paypal.com/cgi-bin/webscr?cmd=p/acc/ipn-info-outside), but we are receiving a completely different response. This causes problems because as a result our system doesn't behave as expected.
Response:
Error Processing Payment Error Message "This transaction can't be
processed. Please pay with another card."
Please help me why I am facing this issue however we are receiving payment successfully and everything was working fine a couple of days ago.
I have found a solution and to make it clear, https://www.paypal.com/cgi-bin/webscr URL is for IPNs and https://securepayments.paypal.com/cgi-bin/acquiringweb is for receiving payments through hosted sole solution(developer.paypal.com/webapps/developer/docs/classic/products/#HSS).
May be PayPal has changed something in their API.

PayPal IPN Failing

I got an email from paypal saying:
>Hello <>,
>Please check your server that handles PayPal Instant Payment
>Notifications (IPN). IPNs sent to the following URL(s) are failing:
>
>url--
>
>If you do not recognize this URL, you may be using a service provider
>that is using IPN on your behalf. Please contact your service provider
>with the above information. If this problem continues, IPNs may be
>disabled for your account.
>
>Thank you for your prompt attention to this issue.
>
>
>Thanks,
>
>PayPal
Is anyone familiar with this? We got 1 payment that made through today, it updated the database and all but still I am concern if this email will be a threat to our website.
I tested the IPN url using the IPN stimulator and it worked fine. Should I need to change my IPN setting? Some forums are saying to turn off the IPN notifications. Should I assume that this is coming from the server refusing to accept the Paypal IPN? I'm so confused on what to do with this problem, let alone my client also knows.
I checked my site error logs but I couldn't find any new errors related to the my paypal IPN listener.
thanks,
If the warning message you are receiving is showing "url--", you may want to double check:
- the value set up in your PayPal Profile > Instant Payment Notification
- or the value you have inserted in your integration in the variable "notify_url" (if you are using Website Payment Standard or "PAYMENTREQUEST_n_NOTIFYURL" (if you are using API).
When you receive an IPN warning message, I'd recommend to check your IPN history (in your PayPal account) to check what is the HTTP response that your server is returning to PayPal.
You can test your IPN listener here
Find IPN overview here

PayPal Instant Payment Notification (IPN) Issue: PayPal sends VERIFIED response but has FAILED status in IPN History. 404 Error

PayPal is sending the VERIFIED message to my IPN listener but my IPN History shows a FAILED status. The IPN History also shows a 404 error. The code I am using for my listener can be found here: https://cms.paypal.com/cms_content/US/en_US/files/developer/IPN_PHP_41.txt. I am testing this with sandbox. How can I be receiving a VERIFIED response from Paypal but yet the IPN History shows a failed STATUS with a 404 error? Shouldn't PayPal be sending an INVALID response since the IPN History status is failed?
VERIFIED has nothing to do with how the transactions appear in your ipn history. How you respond to the original ipn post is what determines what shows in your ipn history.
If your ipn history says it's receiving a 404 response, then you need to check your ipn script and stop sending a 404 response.
If it were any other error, since you are using PayPal's script, I would bet you didn't change the environment variable/the URLs to match your environments. With a 404 though, you're telling the client (paypal in this case) that the page they want doesn't exist, even if you're still reading the data