Sha256: ce0e53bb0f9b595da3e2690fe5e73d6ed6aaf17be1e2afab66540e32a1ec61c9
Contents?: true
Size: 765 Bytes
Versions: 5
Compression:
Stored size: 765 Bytes
Contents
module Spreedly class GatewayTransaction < Transaction field :order_id, :ip, :description, :gateway_token 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
5 entries across 5 versions & 1 rubygems