Skip to content
Snippets Groups Projects
Commit 324ba5bd authored by mattwire's avatar mattwire
Browse files

Merge remote-tracking branch 'jongold/no-dev-webhooks' into master

parents 864f4d5e 567ba7ea
No related branches found
No related tags found
1 merge request!128Don't check for webhooks on non-production instances
......@@ -29,6 +29,10 @@ class CRM_Stripe_Webhook {
* @throws \CiviCRM_API3_Exception
*/
public static function check(&$messages, $attemptFix = FALSE) {
$env = Civi::settings()->get('environment');
if ($env && $env !== 'Production') {
return;
}
$result = civicrm_api3('PaymentProcessor', 'get', [
'class_name' => 'Payment_Stripe',
'is_active' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment