From 6ea3da0b6140742ee7b583c1b236ca308963dfd2 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Tue, 25 Mar 2025 19:27:27 +0100 Subject: [PATCH] Fix typo --- htdocs/stripe/admin/stripe.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index ca2a15ccaca..3f1e6823a6d 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -259,7 +259,7 @@ if (empty($conf->stripeconnect->enabled)) { \Stripe\Stripe::setApiKey(getDolGlobalString('STRIPE_TEST_SECRET_KEY')); $endpoint = \Stripe\WebhookEndpoint::retrieve(getDolGlobalString('STRIPE_TEST_WEBHOOK_ID')); $endpoint->enabled_events = $stripearrayofwebhookevents; - if (GETPOST('webhook', 'alpha') == getDolGlobalSting('STRIPE_TEST_WEBHOOK_ID')) { + if (GETPOST('webhook', 'alpha') == getDolGlobalString('STRIPE_TEST_WEBHOOK_ID')) { if (!GETPOST('status', 'alpha')) { $endpoint->disabled = true; } else { @@ -327,7 +327,7 @@ if (empty($conf->stripeconnect->enabled)) { print ''; if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { if (getDolGlobalString('STRIPE_LIVE_WEBHOOK_KEY') && getDolGlobalString('STRIPE_LIVE_SECRET_KEY') && getDolGlobalString('STRIPE_LIVE_WEBHOOK_ID')) { - if (utf8_check(getdolGlobalString('STRIPE_TEST_SECRET_KEY'))) { + if (utf8_check(getDolGlobalString('STRIPE_TEST_SECRET_KEY'))) { try { \Stripe\Stripe::setApiKey(getDolGlobalString('STRIPE_LIVE_SECRET_KEY')); $endpoint = \Stripe\WebhookEndpoint::retrieve(getDolglobalString('STRIPE_LIVE_WEBHOOK_ID'));