diff --git a/CRM/Mjwshared/Check.php b/CRM/Mjwshared/Check.php index 274e556d90c342be9f71fdb905d9f0f729a62b06..d6b2d1d712416c94fd50ab41dd41059e195d2cd8 100644 --- a/CRM/Mjwshared/Check.php +++ b/CRM/Mjwshared/Check.php @@ -18,11 +18,6 @@ class CRM_Mjwshared_Check { const MIN_VERSION_SWEETALERT = '1.5'; - /** - * @var array - */ - private $jsPaymentProcessorIDs; - /** * @var array */ @@ -38,10 +33,6 @@ class CRM_Mjwshared_Check { */ public function __construct($messages) { $this->messages = $messages; - $this->jsPaymentProcessorIDs = \Civi\Api4\PaymentProcessor::get(FALSE) - ->addWhere('payment_processor_type_id:name', 'IN', ['Stripe', 'Globalpayments']) - ->execute() - ->column('id'); } /** @@ -55,9 +46,7 @@ class CRM_Mjwshared_Check { $this->checkExtensionMinifier(); $this->checkExtensionContributiontransactlegacy(); $this->checkIfSeparateMembershipPaymentEnabled(); - if (!empty($this->jsPaymentProcessorIDs)) { - self::checkExtensionSweetalert(); - } + $this->checkExtensionSweetalert(); return $this->messages; }