lib/active_merchant/billing/gateways/openpay.rb in activemerchant-1.90.0 vs lib/active_merchant/billing/gateways/openpay.rb in activemerchant-1.91.0

- old
+ new

@@ -203,10 +203,10 @@ json_error(raw_response) end end def error?(response) - response.key?('error_code') + response['error_code'] && !response['error_code'].blank? end def response_error(raw_response) parse(raw_response) rescue JSON::ParserError