lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.34.0 vs lib/active_merchant/billing/gateways/balanced.rb in activemerchant-1.34.1
- old
+ new
@@ -308,9 +308,10 @@
account_uri = response['uri']
elsif error?(response)
# lookup account from Balanced, account_uri should be in the
# exception in a dictionary called extras
account_uri = response['extras']['account_uri']
+ raise Error.new(response) unless account_uri
end
end
post[:account_uri] = account_uri