diff --git a/Component/Service/SessionLoader.php b/Component/Service/SessionLoader.php index 9f7c5e4c..68ceb281 100644 --- a/Component/Service/SessionLoader.php +++ b/Component/Service/SessionLoader.php @@ -48,7 +48,8 @@ public function getBankData($customerAddressBilling, $customerId) $customerIdSession = $sessionArray['customerId']; if ($customerIdSession !== $customerId) { - throw new \Exception("Attempt to load bank data for wrong customer!"); + throw new \Exception("Attempt to load bank data for wrong customer! Session Value " . + $customerIdSession . " checked value " . $customerId . "." ); } $bankCode = $sessionArray['bankcode']; diff --git a/Controller/frontend/RpayRatepay.php b/Controller/frontend/RpayRatepay.php index e8d7777e..a138a358 100755 --- a/Controller/frontend/RpayRatepay.php +++ b/Controller/frontend/RpayRatepay.php @@ -183,7 +183,7 @@ public function saveUserDataAction() $sessionLoader = new SessionLoader(Shopware()->Session()); if ($Parameter['ratepay_debit_updatedebitdata']) { $sessionLoader->setBankData( - $customerModel->getId(), + $userModel->getId(), // $customerAddressBilling->getFirstname() . " " . $customerAddressBilling->getLastname(), $Parameter['ratepay_debit_accountnumber'], $Parameter['ratepay_debit_bankcode']