From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh
---
inc/ui/Checkout.php | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/inc/ui/Checkout.php b/inc/ui/Checkout.php
index 82c96a6..3eb26fd 100644
--- a/inc/ui/Checkout.php
+++ b/inc/ui/Checkout.php
@@ -3,6 +3,7 @@
use JVBase\base\Site;
use JVBase\integrations\Integrations;
+use JVBase\integrations\ServiceMap;
use JVBase\meta\Form;
use JVBase\meta\Meta;
@@ -29,13 +30,14 @@
*/
class Checkout
{
+ use ServiceMap;
public static function getProvider():Integrations|false
{
$int = ['square','helcim'];
foreach ($int as $i) {
if (Site::hasIntegration($i)) {
- error_log('Site has '.$i);
- return JVB()->connect($i);
+ $self = new self();
+ return $self->getService($i);
}
}
return false;
@@ -70,7 +72,7 @@
$tabs->addTab('thelogin')
->title('Login')
->description('Login to see past orders and access your saved cards')
- ->content(JVB()->magicLink()->renderForm());
+ ->content(MagicLinks::getInstance()->renderForm());
} else {
$tabs->addTab('account')
->title('Account')
--
Gitblit v1.10.0