Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
commerce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
commerce
Merge requests
!151
Issue
#3112812
: Add logging for payment failures during checkout
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3112812
: Add logging for payment failures during checkout
issue/commerce-3112812:3112812-add-logging-for
into
8.x-2.x
Overview
15
Commits
20
Pipelines
20
Changes
1
Merged
Dmytrii Kaiun
requested to merge
issue/commerce-3112812:3112812-add-logging-for
into
8.x-2.x
1 year ago
Overview
15
Commits
20
Pipelines
20
Changes
1
Expand
0
0
Merge request reports
Viewing commit
603c49cd
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
603c49cd
This happens in the event so no need to do it here
· 603c49cd
Alex Pott
authored
1 year ago
modules/log/src/EventSubscriber/PaymentEventSubscriber.php
+
1
−
1
Options
@@ -156,7 +156,7 @@ class PaymentEventSubscriber implements EventSubscriberInterface {
*/
public
function
onPaymentFailure
(
FailedPaymentEvent
$event
):
void
{
$payment
=
$event
->
getPayment
();
$payment_method
=
$payment
?->
getPaymentMethod
()
??
$event
->
getPaymentMethod
();
$payment_method
=
$event
->
getPaymentMethod
();
// Allow payment methods to add additional information to the commerce log.
// These value will not be used by the log template but can allow contrib
Loading