From c204185ae86a98994f80010abf35a190c9406739 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 12 Jul 2026 18:08:19 +0000
Subject: [PATCH] =Refactor of Integrations.php. Separated different functionality into traits that classes can use to add that functionality. Hopefully will make maintaining it a little easier. Still have to finish up, as well as refactoring the individual classes to utilize the new system.
---
inc/integrations/services/Helcim.php | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/inc/integrations/Helcim.php b/inc/integrations/services/Helcim.php
similarity index 99%
rename from inc/integrations/Helcim.php
rename to inc/integrations/services/Helcim.php
index f5dc8a5..47d97fd 100644
--- a/inc/integrations/Helcim.php
+++ b/inc/integrations/services/Helcim.php
@@ -1,13 +1,11 @@
<?php
-namespace JVBase\integrations;
-use Exception;
-use JVBase\meta\Meta;
-use WP_Error;
-use WP_Post;
-use JVBase\ui\Checkout;
-use JVBase\managers\queue\TypeConfig;
+namespace JVBase\integrations\services;
+use JVBase\integrations\Integrations;
use JVBase\managers\queue\executors\IntegrationExecutor;
+use JVBase\managers\queue\TypeConfig;
+use JVBase\meta\Meta;
+use JVBase\ui\Checkout;
if (!defined('ABSPATH')) {
exit;
@@ -103,9 +101,9 @@
'delete' => false,
];
- $this->handleWebhooks = false;
+ $this->hasWebhooks = false;
- parent::__construct($userID);
+ parent::__construct();
// Helcim-specific actions (processAction dispatches these)
$this->actions = array_merge($this->actions, [
--
Gitblit v1.10.0