lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/clearhaus.rb in activemerchant-1.104.0
- old
+ new
@@ -6,11 +6,11 @@
self.supported_countries = ['DK', 'NO', 'SE', 'FI', 'DE', 'CH', 'NL', 'AD', 'AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'FO', 'GL', 'EE', 'FR', 'GR',
'HU', 'IS', 'IE', 'IT', 'LV', 'LI', 'LT', 'LU', 'MT', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'GB']
self.default_currency = 'EUR'
- self.currencies_without_fractions = %w(BIF BYR DJF GNF JPY KMF KRW PYG RWF VND VUV XAF XOF XPF)
+ self.currencies_without_fractions = %w(BIF CLP DJF GNF JPY KMF KRW PYG RWF UGX VND VUV XAF XOF XPF)
self.supported_cardtypes = [:visa, :master]
self.homepage_url = 'https://www.clearhaus.com'
self.display_name = 'Clearhaus'
self.money_format = :cents
@@ -162,10 +162,11 @@
response =
begin
parse(ssl_post(url, body, headers))
rescue ResponseError => e
- raise unless(e.response.code.to_s =~ /400/)
+ raise unless e.response.code.to_s =~ /400/
+
parse(e.response.body)
end
Response.new(
success_from(response),