Skip to content
Snippets Groups Projects

Issue #3112812: Add logging for payment failures during checkout

Merged Dmytrii Kaiun requested to merge issue/commerce-3112812:3112812-add-logging-for into 8.x-2.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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