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





if notify.acknowledge
process order ...
Acknowledge the transaction to EPaymentPlans . This method has to be called after a new apc arrives . EPaymentPlans will verify that all the information we received are correct and will return ok or a fail . if notify . acknowledge process order ...
def acknowledge(authcode = nil)
          payload = raw
          response = ssl_post(EPaymentPlans.notification_confirmation_url, payload)
          raise StandardError.new("Faulty EPaymentPlans result: #{response}") unless ["AUTHORISED", "DECLINED"].include?(response)
          response == "AUTHORISED"
        end
def acknowledge ( authcode = nil ) payload = raw response = ssl_post ( EPaymentPlans . notification_confirmation_url , payload ) raise StandardError . new ( "Faulty EPaymentPlans result: #{response}" ) unless [ "AUTHORISED" , "DECLINED" ] . include? ( response ) response == "AUTHORISED" end
Acknowledge the transaction to EPaymentPlans.
Acknowledge the transaction to EPaymentPlans .
# Replace with the appropriate codes
authcode
<not_specific>