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

- old
+ new

@@ -67,11 +67,11 @@ super end def require_valid_domain!(options, param) if options[param] - raise ArgumentError.new('not a valid cardconnect domain') unless /\Dcardconnect.com:\d{1,}\D/ =~ options[param] + raise ArgumentError.new('not a valid cardconnect domain') unless /https:\/\/\D*cardconnect.com/ =~ options[param] end end def purchase(money, payment, options = {}) if options[:po_number] @@ -286,9 +286,10 @@ test: test?, error_code: error_code_from(response) ) rescue ResponseError => e return Response.new(false, 'Unable to authenticate. Please check your credentials.', {}, :test => test?) if e.response.code == '401' + raise end def success_from(response) response['respstat'] == 'A'