lib/active_merchant/billing/gateways/cashnet.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/cashnet.rb in activemerchant-1.104.0
- old
+ new
@@ -143,9 +143,10 @@
if (200...300).cover?(response.code.to_i)
return response.body
elsif response.code.to_i == 302
return ssl_get(URI.parse(response['location']))
end
+
raise ResponseError.new(response)
end
def unparsable_response(raw_response)
message = 'Unparsable response received from Cashnet. Please contact Cashnet if you continue to receive this message.'