lib/active_merchant/billing/gateways/pay_conex.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/pay_conex.rb in activemerchant-1.104.0

- old
+ new

@@ -84,10 +84,11 @@ private def force_utf8(string) return nil unless string + binary = string.encode('BINARY', invalid: :replace, undef: :replace, replace: '?') # Needed for Ruby 2.0 since #encode is a no-op if the string is already UTF-8. It's not needed for Ruby 2.1 and up since it's not a no-op there. binary.encode('UTF-8', invalid: :replace, undef: :replace, replace: '?') end def add_credentials(post) @@ -235,9 +236,8 @@ def unparsable_response(raw_response) message = 'Invalid JSON response received from PayConex. Please contact PayConex if you continue to receive this message.' message += " (The raw response returned by the API was #{raw_response.inspect})" return Response.new(false, message) end - end end end