Module: AuthorizeNet::AIM::Fields

Included in:
Response
Defined in:
lib/authorize_net/fields.rb

Overview

Contains the various lists of fields needed by the AIM API.

Constant Summary collapse

FIELDS =

Enumeration of the fields found in the AIM response. The index of the field name corresponds to its position (+ 1) in the AIM response.

[
  :response_code,
  :response_subcode,
  :response_reason_code,
  :response_reason_text,
  :authorization_code,
  :avs_response,
  :transaction_id,
  :invoice_number,
  :description,
  :amount,
  :method,
  :transaction_type,
  :customer_id,
  :first_name,
  :last_name,
  :company,
  :address,
  :city,
  :state,
  :zip_code,
  :country,
  :phone,
  :fax,
  :email_address,
  :ship_to_first_name,
  :ship_to_last_name,
  :ship_to_company,
  :ship_to_address,
  :ship_to_city,
  :ship_to_state,
  :ship_to_zip_code,
  :ship_to_country,
  :tax,
  :duty,
  :freight,
  :tax_exempt,
  :purchase_order_number,
  :md5_hash,
  :card_code_response,
  :cardholder_authentication_verification_response,
  :solution_id,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  :account_number,
  :card_type,
  :split_tender_id,
  :requested,
  :balance_on_card,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil # Merchant defined fields come after this field (68)
]
CP_FIELDS =

Enumeration of the fields found in the card present AIM response. The index of the field name corresponds to its position (+ 1) in the card present AIM response.

[
  :cp_version,
  :response_code,
  :response_reason_code,
  :response_reason_text,
  :authorization_code,
  :avs_response,
  :card_code_response,
  :transaction_id,
  :md5_hash,
  :reference_id,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  nil,
  :account_number,
  :card_type,
  :split_tender_id,
  :requested,
  :approved_amount,
  :balance_on_card
]