From 0dfe1d8afafc59c4a5559c498342668d5a58d6ef Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 23 Jul 2026 22:41:41 +0000
Subject: [PATCH] =Still working away at the Integrations overhaul

---
 inc/ui/Checkout.php |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/inc/ui/Checkout.php b/inc/ui/Checkout.php
index ad21146..82c96a6 100644
--- a/inc/ui/Checkout.php
+++ b/inc/ui/Checkout.php
@@ -31,11 +31,13 @@
 {
     public static function getProvider():Integrations|false
     {
-        foreach (Site::getIntegrations() as $integration => $active) {
-            if (in_array($integration, ['square', 'helcim']) && $active) {
-                return JVB()->connect($integration);
-            }
-        }
+		$int = ['square','helcim'];
+		foreach ($int as $i) {
+			if (Site::hasIntegration($i)) {
+				error_log('Site has '.$i);
+				return JVB()->connect($i);
+			}
+		}
         return false;
     }
 	/**

--
Gitblit v1.10.0