Commit f4bb36d4 authored by mattwire's avatar mattwire
Browse files

Remove unnecessary check for jsPaymentProcessorIDs

parent 2f3f968e
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment