Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stripe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
Stripe
Commits
59534465
Commit
59534465
authored
7 years ago
by
Jamie McClelland
Browse files
Options
Downloads
Patches
Plain Diff
avoid IDS extension problems
https://github.com/drastik/com.drastikbydesign.stripe/issues/228
parent
03ed1c37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stripe.php
+17
-0
17 additions, 0 deletions
stripe.php
with
17 additions
and
0 deletions
stripe.php
+
17
−
0
View file @
59534465
...
...
@@ -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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment