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
Merge requests
!185
Support hook alterPaymentProcessorParams()
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Support hook alterPaymentProcessorParams()
konadave/stripe:alter
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
konadave
requested to merge
konadave/stripe:alter
into
master
2 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
a830bda0
Show latest version
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
a830bda0
Support hook alterPaymentProcessorParams()
· a830bda0
konadave
authored
2 years ago
CRM/Core/Payment/Stripe.php
+
5
−
4
Options
@@ -554,13 +554,14 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
}
// We didn't actually use this hook with Stripe, but it was useful to trigger so listeners could see raw params
// passing $propertyBag instead of $params now allows some things to be altered
$newParams
=
[];
CRM_Utils_Hook
::
alterPaymentProcessorParams
(
$this
,
$propertyBag
,
$newParams
);
// @fixme DO NOT SET ANYTHING ON $propertyBag or $params BELOW THIS LINE (we are reading from both)
$params
=
$this
->
getPropertyBagAsArray
(
$propertyBag
);
// We don't actually use this hook with Stripe, but useful to trigger so listeners can see raw params
$newParams
=
[];
CRM_Utils_Hook
::
alterPaymentProcessorParams
(
$this
,
$params
,
$newParams
);
$amountFormattedForStripe
=
self
::
getAmount
(
$params
);
$email
=
$this
->
getBillingEmail
(
$params
,
$propertyBag
->
getContactID
());
Loading