Class: ActiveMerchant::Billing::Integrations::FirstData::Notification

Inherits:
AuthorizeNetSim::Notification show all
Defined in:
lib/active_merchant/billing/integrations/first_data/notification.rb

Instance Attribute Summary

Attributes inherited from Notification

#params, #raw

Instance Method Summary collapse

Methods inherited from AuthorizeNetSim::Notification

#all_custom_values_passed_in_and_now_passed_back_to_us, #auth_code, #avs_code, #avs_code_matches?, #billing_address, #cavv_matches?, #cavv_response, #complete?, #customer_id, #cvv2_resp_code, #cvv2_resp_code_matches?, #description, #duty, #freight, #gross, #invoice_num, #item_id, #method, #method_available, #payer_email, #po_num, #received_at, #receiver_email, #response_code_as_ruby_symbol, #response_reason_code, #response_reason_text, #response_subcode, #security_key, #ship_to_address, #status, #tax, #tax_exempt, #test?, #transaction_id, #transaction_type, #unescape

Methods inherited from Notification

#amount, #empty!, #gross, #gross_cents, #initialize, #status, #test?, #valid_sender?

Constructor Details

This class inherits a constructor from ActiveMerchant::Billing::Integrations::Notification

Instance Method Details

#acknowledge(response_key, payment_page_id) ⇒ Object



49
50
51
# File 'lib/active_merchant/billing/integrations/first_data/notification.rb', line 49

def acknowledge(response_key, payment_page_id)
  Digest::MD5.hexdigest(response_key + payment_page_id + params['x_trans_id'] + sprintf('%.2f', gross)) == params['x_MD5_Hash'].downcase
end