Paypal Ipn Notification Error

PayPal seems to work properly. Anybody have an idea why we receive the following error?

From: service@paypal.com [mailto:service@paypal.com]
Sent: Tuesday, October 27, 2015 10:05 PM
To: John Doe
Subject: PayPal Instant Payment Notification Warning

Hello John Doe,

Please check your server that handles PayPal Instant Payment Notifications
(IPN). IPNs sent to the following URL(s) are failing:

https :// mywebsiteiscool.com/index.php?dispatch=payment_notification.return&payment=paypal

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

Can you ask them specifically what they are seeing as a response to indicate that it's failing?

Are there any errors in your PHP error_log file?

What are the order statuses related to those failed IPN notifications?

What does the payment area of the order.details show as "Reason text"?

What version of cs-cart are you running. I don't think any version of Paypal for V4 before 4.3.4 is viable.

Something wrong with the access. I see default wordpress page through the mentioned URL:

http://prntscr.com/8wlc1e

It means that the IPN is not processed by CS-Cart

We tested the cart transactions several times and it seems to work properly. Here's the info from PayPal IPN transaction message log:

Date/time created: 10/28/2015 16:58 PDT
Original/Resent: Original
Latest delivery attempt date/time: 10/29/2015 04:21 PDT
Notification URL: h t t p s://.com/index.php?dispatch=payment_notification.return&payment=paypal
HTTP response code: 404
Delivery status: Retrying
No. of retries: 13
Transaction ID: 40209492004992004
IPN type: Transaction made

IPN Message:

transaction_subject=
txn_type=virtual_terminal
payment_date=16:58:26 Oct 28, 2015 PDT
last_name=Jackson
receipt_id=5277-5271-9437-6296
residence_country=US
item_name=
payment_gross=116.89
mc_currency=USD
business=@.com
payment_type=instant
protection_eligibility=Ineligible
verify_sign=S5TxfnHu..1Ps9uT490eD
payer_status=unverified
tax=0.00
txn_id=3869384968943856
quantity=1
receiver_email=@.com
first_name=Michael
payer_id=YYUEEYRTGER
receiver_id=LKKDUUEYWTT
item_number=
handling_amount=0.00
payment_status=Completed
payment_fee=3.11
mc_fee=3.11
shipping=0.00
mc_gross=116.89
custom=
charset=windows-1252
notify_version=3.8
ipn_track_id=05eAd78e2b1c

I would search your Apache access logs for instances of dispatch=payment_notification.return and see if you have some successes or whether it's all failures. If all failures, then I'd assume you have an ownership/permissions issue on your site. But the access logs will probably give you more detail.

The dispatch=payment_notification.return should define('PAYMENT_NOTIFICATION', true) and then call app/addons/paypal/payments/paypal.php. So odds are that it is the reference to paypal.php that is actually generating the 404. Check .htacess as well as ownership/permissions of all directories/files in the path.

Please also make sure that the .htaccess file exists in the app/addons/paypal/payments directory

Hi

I have the same issue, while everything was working fine, about 4 days ago all successful orders started coming in as "open" I am running CS Cart Version 4.3.3

IPNs sent to the following URL(s) are failing:

https://www.greennbrown.com/index.php?dispatch=payment_notification.paypal_ipn

When I check with the hosting provider, below is their response ---

It appears the command PayPal provides is OS specific. The one provided uses cert directory locations for possibly an Ubuntu system where your VPS is running CentOS. When omitting the " -CApath" option the command executed successfully and returned an OK:

--
openssl s_client -connect api-3t.sandbox.paypal.com:443 -showcerts
New, TLSv1/SSLv3, Cipher is AES256-SHA256
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1.2
Cipher : AES256-SHA256
Session-ID: 9E01CD86FA9E593CAD505F17E34C0A9BEA778E6FD2550155F2946F88585CD6DD
Session-ID-ctx:
Master-Key: 19BBA31548271712DA455D2C263EF0975068FB4C560D603D3AE9A8463B992D6622AE3C222B
Key-Arg : None
Krb5 Principal: None
PSK identity: None
PSK identity hint: None
Start Time: 1461575355
Timeout : 300 (sec)
Verify return code: 0 (ok)
--


This shows it's not a server configuration or an SSL certificates. This leaves be to believe it maybe an issue with CS-Cart and the way the URL's are provided causing the redirect issue when PayPal attempt to connect.

Without omitting the "-CAPath" option the results were

New, TLSv1/SSLv3, Cipher is AES256-SHA256

Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1.2
Cipher : AES256-SHA256
Session-ID: 9E01CD86FA9D5CB1AD505F17E34C0D9B92D9C7A09AF2BC0BF2946F88585CE9E2
Session-ID-ctx:
Master-Key: 9CF1EC6B3F6ABDB3D2EC7076DCEC56106C23778389F8FE20047702B383AC79CD65F958C13
Key-Arg : None
Krb5 Principal: None
PSK identity: None
PSK identity hint: None
Start Time: 1461568996
Timeout : 300 (sec)
Verify return code: 20 (unable to get local issuer certificate)

------------------

Any help is sincerely appreciated