Sha256: 017941bb0bd775704fac6bd8845c4b01b11221a8f34c4b193548802cdf28c4a4
Contents?: true
Size: 444 Bytes
Versions: 9
Compression:
Stored size: 444 Bytes
Contents
module Paypal module IPN def self.endpoint _endpoint_ = URI.parse Paypal.endpoint _endpoint_.query = { :cmd => '_notify-validate' }.to_query _endpoint_.to_s end def self.verify!(raw_post) response = RestClient.post( endpoint, raw_post ) case response.body when 'VERIFIED' true else raise APIError.new(response.body) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems