From d0ad4d21c79f64094224f97b3ddf27868f7dd20a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 8 May 2018 17:48:07 +0300 Subject: [PATCH] Prevent multiple gateways w/tokens --- app/Models/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Account.php b/app/Models/Account.php index d2b41875e754..ce8622855b77 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -907,7 +907,7 @@ class Account extends Eloquent $available = true; foreach ($gatewayTypes as $type) { - if ($type != GATEWAY_TYPE_TOKEN && $paymentDriver->handles($type)) { + if ($paymentDriver->handles($type)) { $available = false; break; }