module Paypal::IPN
Public Class Methods
endpoint()
click to toggle source
# File lib/paypal/ipn.rb, line 3 def self.endpoint _endpoint_ = URI.parse Paypal.endpoint _endpoint_.query = { :cmd => '_notify-validate' }.to_query _endpoint_.to_s end
verify!(raw_post)
click to toggle source
# File lib/paypal/ipn.rb, line 11 def self.verify!(raw_post) response = RestClient.post( endpoint, raw_post ) case response.body when 'VERIFIED' true else raise Exception::APIError.new(response.body) end end