Skip to content

Commit

Permalink
Remove appendSession from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bretterklieber committed Mar 11, 2019
1 parent 2478304 commit 5fa5205
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ public function saveOrderAction()
$confirmUrl = $router->assemble(
array(
'action' => 'confirm',
'forceSecure' => true,
'appendSession' => true
'forceSecure' => true
)
);

Expand Down Expand Up @@ -326,7 +325,6 @@ public function confirmAction()

Shopware()->Session()->offsetSet('sPaymentstate', 'success');

$orderNumber = 0;
// pending url, we already have an order id, just update the payment state
if ($data['orderId']) {
$this->saveOrder(
Expand Down Expand Up @@ -530,13 +528,13 @@ public function confirmAction()
$message = $error->getConsumerMessage();
}

$update['session'] = '';
}
break;
default:
}

$update['data'] = serialize($post);
$update['session'] = base64_encode(serialize($_SESSION)); // save back ev. modified sessiondata

Shopware()->Db()->update(
'wirecard_checkout_seamless',
Expand Down Expand Up @@ -571,6 +569,13 @@ public function returnAction()
$this->View()->redirectUrl = $this->Front()->Router()->assemble(Array('controller' => 'checkout', 'action' => 'confirm', 'sUseSSL' => true));

$responseData = unserialize($result['data']);

// write back modified sessiondata, might be modified by the confirm (server2server) request
$savedSessionData = unserialize(base64_decode($result['session']));
if (is_array($savedSessionData) && isset($savedSessionData['Shopware'])) {
Shopware()->Session()->offsetSet('sOrderVariables', $savedSessionData['Shopware']['sOrderVariables']);
}

try {

$return = WirecardCEE_QMore_ReturnFactory::getInstance(
Expand Down

0 comments on commit 5fa5205

Please sign in to comment.