Created
January 21, 2014 02:46
-
-
Save jlstr/8533627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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