Sha256: 8bfd66dc784823e034c0bb07838ae27270f17568ae1f04d468fe33f298212ec1

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

require "net/http"
require "uri"

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

      private

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
maxipago-0.1.30 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.29 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.28 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.27 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.26 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.25 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.24 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.23 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.22 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.21 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.20 lib/maxipago/request_builder/transaction_request.rb
maxipago-0.1.17 lib/maxipago/request_builder/transaction_request.rb