lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.106.0
- old
+ new
@@ -302,12 +302,12 @@
end
end
def build_request(options)
requires!(options, :action)
- xml = Builder::XmlMarkup.new :indent => 2
- xml.instruct!(:xml, :version => '1.0', :encoding => 'utf-8')
+ xml = Builder::XmlMarkup.new indent: 2
+ xml.instruct!(:xml, version: '1.0', encoding: 'utf-8')
xml.tag! 'soap:Envelope', { 'xmlns:soap' => 'http://schemas.xmlsoap.org/soap/envelope/',
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'xmlns:xsd' => 'http://www.w3.org/2001/XMLSchema'} do
xml.tag! 'soap:Body' do
xml.tag! options[:action], {'xmlns' => 'https://www.thepaymentgateway.net/'} do
@@ -381,16 +381,16 @@
success = response[:transaction_result][:status_code] == '0'
message = response[:transaction_result][:message]
authorization = success ? [options[:order_id], response[:transaction_output_data][:cross_reference], response[:transaction_output_data][:auth_code]].compact.join(';') : nil
Response.new(success, message, response,
- :test => test?,
- :authorization => authorization,
- :avs_result => {
- :street_match => AVS_CODE[ response[:transaction_output_data][:address_numeric_check_result] ],
- :postal_match => AVS_CODE[ response[:transaction_output_data][:post_code_check_result] ],
+ test: test?,
+ authorization: authorization,
+ avs_result: {
+ street_match: AVS_CODE[ response[:transaction_output_data][:address_numeric_check_result] ],
+ postal_match: AVS_CODE[ response[:transaction_output_data][:post_code_check_result] ],
},
- :cvv_result => CVV_CODE[ response[:transaction_output_data][:cv2_check_result] ]
+ cvv_result: CVV_CODE[ response[:transaction_output_data][:cv2_check_result] ]
)
end
def parse(xml)
reply = {}