Skip to content
Snippets Groups Projects
Unverified Commit 8038e39b authored by Joshua Walker's avatar Joshua Walker Committed by GitHub
Browse files

Merge pull request #229 from progressivetech/issue228

avoid IDS extension problems
parents 78a109e7 b48aac6e
No related branches found
No related tags found
No related merge requests found
......@@ -203,3 +203,22 @@ function stripe_civicrm_managed(&$entities) {
}
}
}
/*
* Implementation of hook_idsException.
*
* Ensure webhooks don't get caught in the IDS check.
*/
function stripe_civicrm_idsException(&$skip) {
// Handle old method.
$skip[] = 'civicrm/stripe/webhook';
$result = civicrm_api3('PaymentProcessor', 'get', array(
'sequential' => 1,
'return' => "id",
'class_name' => "Payment_stripe",
'is_active' => 1,
));
foreach($result['values'] as $value) {
$skip[] = 'civicrm/payment/ipn/' . $value['id'];
}
}
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