Skip to content

Commit

Permalink
bug/ETS-20_net-prices-setting-breaks-ratepay fix fuer lastschrift
Browse files Browse the repository at this point in the history
  • Loading branch information
rpWhittington committed Aug 10, 2018
1 parent 6bf294b commit 0366e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Component/Service/SessionLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
2 changes: 1 addition & 1 deletion Controller/frontend/RpayRatepay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 0366e06

Please sign in to comment.