From 694ad961110b43bc16030d442445f3ec20d141e3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 30 Jul 2020 14:49:12 +1000 Subject: [PATCH] -1 for fees_and_limits = enable gateway --- app/Models/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index 574571c2febf..3f8f9db09f7c 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -460,10 +460,10 @@ class Client extends BaseModel implements HasLocalePreference else return true; - if ((property_exists($fees_and_limits, 'min_limit')) && $fees_and_limits->min_limit !== null && $amount < $fees_and_limits->min_limit) + if ((property_exists($fees_and_limits, 'min_limit')) && $fees_and_limits->min_limit !== null && $fees_and_limits->min_limit != -1 && $amount < $fees_and_limits->min_limit) return false; - if ((property_exists($fees_and_limits, 'max_limit')) && $fees_and_limits->max_limit !== null && $amount > $fees_and_limits->max_limit) + if ((property_exists($fees_and_limits, 'max_limit')) && $fees_and_limits->max_limit !== null && $fees_and_limits->max_limit != -1 && $amount > $fees_and_limits->max_limit) return false; return true;