lib/active_merchant/billing/gateways/wirecard.rb
# Generates the complete xml-message, that gets sent to the gateway
Generates the complete xml-message, that gets sent to the gateway
Generates the complete xml - message that gets sent to the gateway
def build_request(action, money, options = {})
				xml = Builder::XmlMarkup.new :indent => 2
				xml.instruct!
				xml.tag! 'WIRECARD_BXML' do
				  xml.tag! 'W_REQUEST' do
          xml.tag! 'W_JOB' do
              xml.tag! 'JobID', 'test dummy data'
              xml.tag! 'BusinessCaseSignature', options[:signature] || options[:login]
              add_transaction_data(xml, action, money, options)
				    end
				  end
				end
				xml.target!
      end
def build_request ( action , money , options = { } ) xml = Builder :: XmlMarkup . new :indent => 2 xml . instruct! xml . tag! 'WIRECARD_BXML' do xml . tag! 'W_REQUEST' do xml . tag! 'W_JOB' do xml . tag! 'JobID' , 'test dummy data' xml . tag! 'BusinessCaseSignature' , options [ :signature ] || options [ :login ] add_transaction_data ( xml , action , money , options ) end end end xml . target! end
Generates the complete xml-message, that gets sent to the gateway
Generates the complete xml - message that gets sent to the gateway
# TODO: OPTIONAL, check what value needs to be insert here # UserID for this transaction # Create the whole rest of the message
action
<not_specific>
money
<not_specific>
options
<not_specific>