diff --git a/lib/active_merchant/billing/gateways/d_local.rb b/lib/active_merchant/billing/gateways/d_local.rb index de64520cb3d..97c4d55d410 100644 --- a/lib/active_merchant/billing/gateways/d_local.rb +++ b/lib/active_merchant/billing/gateways/d_local.rb @@ -245,7 +245,7 @@ def success_from(action, response) return false unless response['status_code'] if action == 'void' - response['status_code'] == '400' && response['status'] == 'CANCELLED' + response['status_code'].to_s == '400' && response['status'] == 'CANCELLED' else %w[100 200 400 600 700].include? response['status_code'].to_s end