Skip to content
Snippets Groups Projects
Commit 3580b687 authored by mattwire's avatar mattwire
Browse files

Add system check to recommend installing firewall extension

parent 4c997d5c
No related branches found
No related tags found
1 merge request!956.3.2
......@@ -40,6 +40,21 @@ class CRM_Stripe_Check {
'fa-money'
);
}
$extensions = civicrm_api3('Extension', 'get', [
'full_name' => 'firewall',
]);
if (empty($extensions['id']) || ($extensions['values'][$extensions['id']]['status'] !== 'installed')) {
$messages[] = new CRM_Utils_Check_Message(
'stripe_recommended',
E::ts('If you are using Stripe to accept payments on public forms (eg. contribution/event registration forms) it is recommended that you install the <strong><a href="https://lab.civicrm.org/extensions/firewall">firewall</a></strong> extension.
Some sites have become targets for spammers who use the payment endpoint to try and test credit cards by submitting invalid payments to your Stripe account.'),
E::ts('Recommended Extension: firewall'),
\Psr\Log\LogLevel::NOTICE,
'fa-lightbulb-o'
);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment