diff --git a/src/Service/PaymentService.php b/src/Service/PaymentService.php
index <HASH>..<HASH> 100644
--- a/src/Service/PaymentService.php
+++ b/src/Service/PaymentService.php
@@ -452,7 +452,7 @@ abstract class PaymentService
         ]);
 
         if ($data instanceof \Exception) {
-            $this->exceptionLogger->error($e->getMessage(), ['exception' => $e]);
+            $this->exceptionLogger->error($data->getMessage(), ['exception' => $data]);
         } else {
             $this->logToFile($output, $type);
         }
Fix error var $e is not defined