webtechnick / CakePHP-Paypal-IPN-Plugin

CakePHP Paypal Instant Payment Notification Plugin

Home Page:http://www.webtechnick.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returning response code 400 after IPN data processing.

atishgoswami opened this issue · comments

Recently encountered a problem with the plugin that the IPN request gets processed properly but Paypal servers received a 400 response code.

I solved this by explicitly sending a 200 header as soon as notification was received and exiting after processing. Seems like a recent change at Paypal requiring a 200 OK to be sent

Hope this helps someone

+1

Just discovered the same issue!

I solved it by setting $this->autoRender to false, and thus returning a blank page. Not only does this solve the issue with PayPal changes, but will also speed up performance.

Lastest release fixes this issue. Thank you both for your contribution.