From 028f1f660979cf7e184d6eff07f941b7889075dc Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Sun, 9 May 2021 18:07:30 +0100
Subject: [PATCH] Move javascript debug to mjwshared

---
 CRM/Core/Payment/Stripe.php |  1 -
 settings/stripe.setting.php | 16 ----------------
 stripe.php                  |  1 -
 3 files changed, 18 deletions(-)

diff --git a/CRM/Core/Payment/Stripe.php b/CRM/Core/Payment/Stripe.php
index 3003ea2f..d6626bed 100644
--- a/CRM/Core/Payment/Stripe.php
+++ b/CRM/Core/Payment/Stripe.php
@@ -394,7 +394,6 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
       'currency' => $this->getDefaultCurrencyForForm($form),
       'billingAddressID' => CRM_Core_BAO_LocationType::getBilling(),
       'publishableKey' => CRM_Core_Payment_Stripe::getPublicKeyById($form->_paymentProcessor['id']),
-      'jsDebug' => (boolean) \Civi::settings()->get('stripe_jsdebug'),
       'paymentProcessorTypeID' => $form->_paymentProcessor['payment_processor_type_id'],
       'locale' => CRM_Stripe_Api::mapCiviCRMLocaleToStripeLocale(),
       'apiVersion' => CRM_Stripe_Check::API_VERSION,
diff --git a/settings/stripe.setting.php b/settings/stripe.setting.php
index b49abb91..73aa4a13 100644
--- a/settings/stripe.setting.php
+++ b/settings/stripe.setting.php
@@ -28,22 +28,6 @@ return [
       ]
     ],
   ],
-  'stripe_jsdebug' => [
-    'name' => 'stripe_jsdebug',
-    'type' => 'Boolean',
-    'html_type' => 'checkbox',
-    'default' => 0,
-    'is_domain' => 1,
-    'is_contact' => 0,
-    'title' => E::ts('Enable Stripe Javascript debugging?'),
-    'description' => E::ts('Enables debug logging to browser console for stripe payment processors.'),
-    'html_attributes' => [],
-    'settings_pages' => [
-      'stripe' => [
-        'weight' => 15,
-      ]
-    ],
-  ],
   'stripe_ipndebug' => [
     'name' => 'stripe_ipndebug',
     'type' => 'Boolean',
diff --git a/stripe.php b/stripe.php
index 7e2eab42..d4dae6c2 100644
--- a/stripe.php
+++ b/stripe.php
@@ -169,7 +169,6 @@ function stripe_civicrm_buildForm($formName, &$form) {
           'publishableKey' => CRM_Core_Payment_Stripe::getPublicKeyById($form->_paymentProcessor['id']),
           'locale' => CRM_Stripe_Api::mapCiviCRMLocaleToStripeLocale(),
           'apiVersion' => CRM_Stripe_Check::API_VERSION,
-          'jsDebug' => (boolean) \Civi::settings()->get('stripe_jsdebug'),
           'csrfToken' => class_exists('\Civi\Firewall\Firewall') ? \Civi\Firewall\Firewall::getCSRFToken() : NULL,
           'country' => CRM_Core_BAO_Country::defaultContactCountry(),
         ];
-- 
GitLab