From b093abe4d2232a686fd00948b620783073d97a43 Mon Sep 17 00:00:00 2001 From: Philipp Stracker Date: Thu, 20 Feb 2025 14:01:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20two=20hardcoded=20values?= =?UTF-8?q?=20to=20SettingsMap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-compat/services.php | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/modules/ppcp-compat/services.php b/modules/ppcp-compat/services.php index b69d4fc0d..03a6a3460 100644 --- a/modules/ppcp-compat/services.php +++ b/modules/ppcp-compat/services.php @@ -148,18 +148,22 @@ return array( * the credentials are used for. */ array( - 'merchant_id' => 'merchant_id', - 'client_id' => 'client_id', - 'client_secret' => 'client_secret', - 'sandbox_on' => 'sandbox_merchant', - 'live_client_id' => 'client_id', - 'live_client_secret' => 'client_secret', - 'live_merchant_id' => 'merchant_id', - 'live_merchant_email' => 'merchant_email', - 'sandbox_client_id' => 'client_id', - 'sandbox_client_secret' => 'client_secret', - 'sandbox_merchant_id' => 'merchant_id', - 'sandbox_merchant_email' => 'merchant_email', + 'merchant_id' => 'merchant_id', + 'client_id' => 'client_id', + 'client_secret' => 'client_secret', + 'sandbox_on' => 'sandbox_merchant', + 'live_client_id' => 'client_id', + 'live_client_secret' => 'client_secret', + 'live_merchant_id' => 'merchant_id', + 'live_merchant_email' => 'merchant_email', + 'sandbox_client_id' => 'client_id', + 'sandbox_client_secret' => 'client_secret', + 'sandbox_merchant_id' => 'merchant_id', + 'sandbox_merchant_email' => 'merchant_email', + + // Hardcoded settings, not present in new UI. + 'enabled' => static fn() => true, + 'allow_local_apm_gateways' => static fn() => true, ) ), new SettingsMap(