-
Notifications
You must be signed in to change notification settings - Fork 9.4k
More secure IPN postback check and capture registration #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hello. We will look into this issue and let you know if we can merge it or otherwise fix it. |
I can confirm that a problem exists at the postback result I've dumped the array which contains the postback results and it looks like this:
Now look at the paypal-request which made my shop-client angry:
The connection wants to have a deal with 100-status. The script doesn't parse this request data correctly.
Either we fix the parsing routine or we just tell paypal that it should use http1.0, not 1.1 |
Same problem here. But an easier solution @mage2-team : $response = preg_split('/^\r?$/m', $response);
$response = trim(array_pop($response)); Using HTTP 1.0 is no solution, because it is not supported by PayPal's IPN service anymore. |
It would be great to see the IPN-Model-Class following the single reponsibility principle and just handling the primary logic (paypal stuff) instead of focusing on how to parse a raw http body. |
I can confirm this issue and agree with @Naitsirch ' solution. I replaced
with
Link to blogpost: http://www.dhmedia.com.au/blog/debugging-paypal-ipn-postback-failure-magento @Detzler has a good point. The class that is responsible for the curl request should also be able to deal with curl error codes (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) because currently, if a request times-out for whatever reason, there is no way to easily see what happened (in the exception logs for example). |
And if there is a timeout or server error on PayPal's side, Magento should return a HTTP 500 error code. Otherwise the IPN won't be repeated, because Paypal thinks that everything worked fine. |
Hello jonathanselander, |
[MPI] Refactor end-to-end functional 3rd party tests
MAGETWO-37209: Excel Formula Injection via CSV/XML export - 2.x
Source item webapi
High-traffic clients have experienced issues with Paypal IPN postbacks not being registered and invoices not being marked as captured. Adding this patch has fixed the issue