lib/active_merchant/billing/gateways/flo2cash.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/flo2cash.rb in activemerchant-1.109.0

- old
+ new

@@ -8,11 +8,11 @@ self.live_url = 'https://secure.flo2cash.co.nz/ws/paymentws.asmx' self.supported_countries = ['NZ'] self.default_currency = 'NZD' self.money_format = :dollars - self.supported_cardtypes = [:visa, :master, :american_express, :diners_club] + self.supported_cardtypes = %i[visa master american_express diners_club] BRAND_MAP = { 'visa' => 'VISA', 'master' => 'MC', 'american_express' => 'AMEX', @@ -140,18 +140,18 @@ body = xml.target! envelope_wrap(action, body) end def envelope_wrap(action, body) - <<-EOS -<?xml version="1.0" encoding="utf-8"?> -<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> - <soap12:Body> - <#{action} xmlns="http://www.flo2cash.co.nz/webservices/paymentwebservice"> - #{body} - </#{action}> - </soap12:Body> -</soap12:Envelope> + <<~EOS + <?xml version="1.0" encoding="utf-8"?> + <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> + <soap12:Body> + <#{action} xmlns="http://www.flo2cash.co.nz/webservices/paymentwebservice"> + #{body} + </#{action}> + </soap12:Body> + </soap12:Envelope> EOS end def url (test? ? test_url : live_url)