Sha256: bd6aeaab1a7687867d61b44b39c2301b6b0b6413f8076a1c6d60835d4ec5a2f2

Contents?: true

Size: 461 Bytes

Versions: 11

Compression:

Stored size: 461 Bytes

Contents

require "net/http"
require "uri"

module Maxipago
  module RequestBuilder
    class TransactionRequest < Maxipago::RequestBuilder::Request
      URL = ENV['MP_URL_TRANSACTION'] || "https://testapi.maxipago.net/UniversalAPI/postXML"

      private

      def set_uri
        @uri = URI.parse(URL)
      end

      def build_xml
        Maxipago::XmlBuilder::BuilderTransaction.new(@maxipagoId, @apiKey, @apiVersion, opts).get_xml_data
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
maxipago-0.1.15 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.14 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.13 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.12 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.11 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.10 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.9 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.8 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.7 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.6 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.5 lib/maxipago/request_builder/transaction_request.rb