lib/active_merchant/billing/gateways/mastercard.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/mastercard.rb in activemerchant-1.80.0

- old
+ new

@@ -57,11 +57,11 @@ r.process(:ignore_result) { void(r.authorization, options) } end end def verify_credentials - url = build_url(SecureRandom.uuid, "nonexistent") + url = build_url(SecureRandom.uuid, 'nonexistent') begin ssl_get(url, headers) rescue ResponseError => e return false if e.response.code.to_i == 401 end @@ -162,11 +162,11 @@ post[:customer].merge!(customer) end def add_3dsecure_id(post, options) return unless options[:threed_secure_id] - post.merge!({"3DSecureId" => options[:threed_secure_id]}) + post.merge!({'3DSecureId' => options[:threed_secure_id]}) end def country_code(country) if country country = ActiveMerchant::Country.find(country) @@ -219,10 +219,10 @@ def parse(body) JSON.parse(body) end def success_from(response) - response['result'] == "SUCCESS" + response['result'] == 'SUCCESS' end def message_from(succeeded, response) if succeeded 'Succeeded'