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
Container registry
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
a34c1a96
Commit
a34c1a96
authored
8 years ago
by
Peter Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
add case: plan.deleted
parent
45b8f3dd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Stripe/Page/Webhook.php
+14
-1
14 additions, 1 deletion
CRM/Stripe/Page/Webhook.php
with
14 additions
and
1 deletion
CRM/Stripe/Page/Webhook.php
+
14
−
1
View file @
a34c1a96
...
...
@@ -439,9 +439,22 @@ class CRM_Stripe_Page_Webhook extends CRM_Core_Page {
));
}
return
;
break
;
// Keep plans table in sync with Stripe when a plan is deleted.
case
'plan.deleted'
:
$plan_id
=
$stripe_event_data
->
data
->
object
->
id
;
// Prepare escaped query params.
$query_params
=
array
(
1
=>
array
(
$plan_id
,
'String'
),
2
=>
array
(
$processorId
,
'Integer'
),
);
CRM_Core_DAO
::
executeQuery
(
"DELETE FROM civicrm_stripe_plans WHERE
plan_id = %1 AND processor_id = %2"
,
$query_params
);
break
;
return
;
}
...
...
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