Sha256: 60e1b2bb697fc0a621ea75d7061910ed324e221662ba50738d4acd19b008031b
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
module Spreedly class GatewayTransaction < Transaction field :order_id, :ip, :description, :gateway_token, :gateway_transaction_id field :merchant_name_descriptor, :merchant_location_descriptor field :on_test_gateway, type: :boolean attr_reader :response def initialize(xml_doc) super response_xml_doc = xml_doc.at_xpath('.//response') @response = response_xml_doc ? Response.new(response_xml_doc) : nil end end class Response include Fields field :success, :pending, :cancelled, type: :boolean field :created_at, :updated_at, type: :date_time field :message, :avs_code, :avs_message, :cvv_code, :cvv_message, :error_code, :error_detail def initialize(xml_doc) initialize_fields(xml_doc) end end end
Version data entries
3 entries across 3 versions & 1 rubygems