From 9ba58b2028c6da4a41774b0eb97eb885e406f24e Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Tue, 26 Nov 2024 11:38:17 +0000 Subject: [PATCH 1/2] don't parse webhook id and signing secret when displaying on the page --- src/controllers/WebhooksController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/WebhooksController.php b/src/controllers/WebhooksController.php index 3f4566f..b1c79d6 100644 --- a/src/controllers/WebhooksController.php +++ b/src/controllers/WebhooksController.php @@ -108,8 +108,8 @@ public function actionEdit(): YiiResponse $webhookInfo = []; $hasWebhook = true; - $webhookId = App::parseEnv($webhookRecord->webhookId); - $webhookSigningSecret = App::parseEnv($webhookRecord->webhookSigningSecret); + $webhookId = $webhookRecord->webhookId; + $webhookSigningSecret = $webhookRecord->webhookSigningSecret; if (!empty($webhookId)) { try { From 72d8429907ed131e8db69a3d88688fd4f7772edb Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Tue, 26 Nov 2024 11:39:59 +0000 Subject: [PATCH 2/2] updated changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03b3cc3..242676c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for Stripe +## Unreleased + +- Fixed a bug where the Webhook Signing Secret and ID were showing as parsed on the Webhooks page. ([#62](https://github.com/craftcms/stripe/issues/62)) + ## 1.3.0 - 2024-11-19 - Stripe now requires Craft CMS 5.5.0 or later.