HTTP Response Code Missing #2

Closed
StrictlySkyler opened this Issue Mar 3, 2012 · 3 comments

5 participants

@StrictlySkyler

This module doesn't fire a response code to PayPal when it receives the initial POST of parameters.

It'd be excellent if the module handled that by simply firing off a 200 response (making it turn-key), or if it was in the documentation somewhere that this needs to be handled separate from the IPN validation.

Thanks!

@niftylettuce

why not just put this before ipn.verify?

res.send(200)
ipn.verify(req.body, verify)
function verify(err, message) {
  // ... do stuff
}
@nieldlr

I got an email from Paypal that IPN messages were not responding, although this module was verifying the messages. I checked Paypal and saw that IPN kept retrying the message. I realized that the module wasn't sending back a response code.

Even if you don't add it to code, it would definitely be great to add it to the documentation.

@andzdroid andzdroid closed this Oct 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment