lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.84.0

- old
+ new

@@ -13,11 +13,11 @@ self.supported_countries = ['GB', 'ES'] self.default_currency = 'EUR' self.money_format = :cents # The card types supported by the payment gateway - self.supported_cardtypes = [:visa, :master, :american_express, :discover, :maestro, :jcb, :solo, :diners_club] + self.supported_cardtypes = [:visa, :master, :american_express, :discover, :maestro, :jcb, :diners_club] # The homepage URL of the gateway self.homepage_url = 'http://www.iridiumcorp.co.uk/' # The name of the gateway @@ -375,11 +375,11 @@ end def commit(request, options) requires!(options, :action) response = parse(ssl_post(test? ? self.test_url : self.live_url, request, - {'SOAPAction' => 'https://www.thepaymentgateway.net/' + options[:action], - 'Content-Type' => 'text/xml; charset=utf-8' })) + {'SOAPAction' => 'https://www.thepaymentgateway.net/' + options[:action], + 'Content-Type' => 'text/xml; charset=utf-8' })) 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