Skip to content

Instantly share code, notes, and snippets.

@jlstr
Created January 21, 2014 02:46
Show Gist options
  • Save jlstr/8533627 to your computer and use it in GitHub Desktop.
Save jlstr/8533627 to your computer and use it in GitHub Desktop.
class PaypalNotificationsController < ApplicationController
def ipn_notify
if PayPal::SDK::Core::API::IPN.valid?(request.raw_post)
#logger.info("IPN message: VERIFIED")
puts "\n\n V E R I F I E D \n\n\n"
render :text => "VERIFIED"
else
#logger.info("IPN message: INVALID")
render :text => "INVALID"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment