From d32f2f6d791338936ff199403a9bc9bbc63f3d71 Mon Sep 17 00:00:00 2001
From: "@ChristelLoftus" <christel@bob.co.za>
Date: Mon, 14 Oct 2024 14:34:28 +0200
Subject: [PATCH] consumer secret key as webhook key

---
 Observer/ConfigChangeObserver.php | 3 +--
 etc/adminhtml/system.xml          | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Observer/ConfigChangeObserver.php b/Observer/ConfigChangeObserver.php
index 8362feb..efc0179 100644
--- a/Observer/ConfigChangeObserver.php
+++ b/Observer/ConfigChangeObserver.php
@@ -84,8 +84,7 @@ class ConfigChangeObserver implements ObserverInterface
                 } else {
                     $this->messageManager->addErrorMessage(
                         __('Webhook validation failed. Please check your internet connection
-                        and get the webhook key for your channel on Bob Go sales channels page.
-                        https://my.bobgo.co.za/sales-channels')
+                        and use your Bob Go integration consumer secret key for webhook validation.')
                     );
                 }
             }
diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml
index 0483f32..4d6ee89 100644
--- a/etc/adminhtml/system.xml
+++ b/etc/adminhtml/system.xml
@@ -39,7 +39,7 @@
                 <!-- Webhook Key Input Field -->
                 <field id="webhook_key" translate="label" type="text" sortOrder="9" showInDefault="1" showInWebsite="1" showInStore="0">
                     <label>Webhook key</label>
-                    <comment>Enter the webhook key for authentication.</comment>
+                    <comment>Enter Bob Go integration consumer secret key for webhook authentication.</comment>
                     <depends>
                         <field id="enable_webhooks">1</field>
                     </depends>
-- 
GitLab