Skip to content
Snippets Groups Projects
Commit 59534465 authored by Jamie McClelland's avatar Jamie McClelland
Browse files
parent 03ed1c37
Branches
Tags
No related merge requests found
......@@ -203,3 +203,20 @@ 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';
// Handle new method. Get the IDs of the Stripe payment processor.
$sql = "SELECT pp.id FROM civicrm_payment_processor pp JOIN civicrm_payment_processor_type
pt ON pp.payment_processor_type_id = pt.id AND pt.name = 'Stripe'";
$dao = CRM_Core_DAO::executeQuery($sql);
while($dao->fetch()) {
$skip[] = 'civicrm/payment/ipn/' . $dao->id;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment