lib/offsite_payments/integrations/paypal.rb
# Acknowledge the transaction to paypal. This method has to be called after a new
# ipn arrives. Paypal will verify that all the information we received are correct and will return a
# ok or a fail.
#
# Example:
#
#   def paypal_ipn
#     notify = PaypalNotification.new(request.raw_post)
#
#     if notify.acknowledge
#       ... process order ... if notify.complete?
#     else
#       ... log possible hacking attempt ...
#     end
Acknowledge the transaction to paypal. This method has to be called after a new
ipn arrives. Paypal will verify that all the information we received are correct and will return a
ok or a fail.





if notify.acknowledge
process order ...
Acknowledge the transaction to paypal . This method has to be called after a new ipn arrives . Paypal will verify that all the information we received are correct and will return a ok or a fail . if notify . acknowledge process order ...
def acknowledge(authcode = nil)
          payload =  raw
          response = ssl_post(Paypal.service_url + '?cmd=_notify-validate', payload,
            'Content-Length' => "#{payload.size}",
            'User-Agent'     => "Active Merchant -- http://activemerchant.org"
          )
          raise StandardError.new("Faulty paypal result: #{response}") unless ["VERIFIED", "INVALID"].include?(response)
          response == "VERIFIED"
        end
def acknowledge ( authcode = nil ) payload = raw response = ssl_post ( Paypal . service_url + '?cmd=_notify-validate' , payload , 'Content-Length' => "#{payload.size}" , 'User-Agent' => "Active Merchant -- http://activemerchant.org" ) raise StandardError . new ( "Faulty paypal result: #{response}" ) unless [ "VERIFIED" , "INVALID" ] . include? ( response ) response == "VERIFIED" end
Acknowledge the transaction to paypal.
Acknowledge the transaction to paypal .
authcode
<not_specific>