lib/active_merchant/billing/gateways/wirecard.rb
# Contact WireCard, make the XML request, and parse the
# reply into a Response object
Contact WireCard, make the XML request, and parse the
reply into a Response object
Contact WireCard make the XML request and parse the reply into a Response object
def commit(request)
	      headers = { 'Content-Type' => 'text/xml',
	                  'Authorization' => encoded_credentials }
	      response = parse(ssl_post(test? ? TEST_URL : LIVE_URL, request, headers))
	      success = response[:FunctionResult] == "ACK" || response[:FunctionResult] == "PENDING"
	      message = response[:Message]
        authorization = (success && @options[:action] == :authorization) ? response[:GuWID] : nil
        Response.new(success, message, response,
          :test => test?,
          :authorization => authorization,
          :avs_result => { :code => response[:avsCode] },
          :cvv_result => response[:cvCode]
        )
      end
def commit ( request ) headers = { 'Content-Type' => 'text/xml' , 'Authorization' => encoded_credentials } response = parse ( ssl_post ( test? ? TEST_URL : LIVE_URL , request , headers ) ) success = response [ :FunctionResult ] == "ACK" || response [ :FunctionResult ] == "PENDING" message = response [ :Message ] authorization = ( success && @options [ :action ] == :authorization ) ? response [ :GuWID ] : nil Response . new ( success , message , response , :test => test? , :authorization => authorization , :avs_result => { :code => response [ :avsCode ] } , :cvv_result => response [ :cvCode ] ) end
Contact WireCard, make the XML request, and parse the
reply into a Response object
Contact WireCard make the XML request and parse the reply into a Response object
# Pending Status also means Acknowledged (as stated in their specification)
request
<not_specific>