I’ve been working with the PayPal_Adaptive gem recently and unfortunately I’ve run into a few issues. The latest of these has been that that my IPN verification was returning an INVALID response from Paypal.
I had made a few modifications to the provided payment_notification.rb file in order to accommodate for a few app specific requirements. This left me having to pass the original data attribute params. Unfortunately this wasn’t identical to the response that PayPal expected, I actually needed to use the following:
#Incorrect usage verify_ipn(params) #Correct usage verify_ipn(request.raw_post)
I realised this error after reading Tanel’s post about securing your IPN interactions so make sure you check out his blog if you run into any more problems!