tomash/spree-pp-website-standard — pull request #16 by hoverlover (2012-03-17 23:04:21+00:00)
Title: Ignore foreign ipn

This PR includes code that will ignore an IPN message if the invoice doesn't correspond with a Spree order. Sometimes, PayPal users will receive funds outside of Spree. With the current codebase, this will cause a 500 error because the order can't be found. The code I've included will simply return a 200 response for the IPN request if the invoice param doesn't match the format of the Spree order number.