Skip to content

Commit

Permalink
Added the increment ID to the 'Missing Redirect Url' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Mar 18, 2020
1 parent f3e6c8d commit 497810c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/community/Mollie/Mpm/controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ public function paymentAction()
return;
} else {
$this->mollieHelper->setError(self::REDIRECT_ERR_MSG);
$this->mollieHelper->addToLog('error', 'Missing Redirect Url');
$error = sprintf('Missing Redirect Url, increment ID: #%s', $order->getIncrementId());
$this->mollieHelper->addToLog('error', $error);
$this->mollieHelper->restoreCart();
$this->_cancelUnprocessedOrder($order, 'Missing Redirect Url');
$this->_cancelUnprocessedOrder($order, $error);
$this->_redirect('checkout/cart');
return;
}
Expand Down

0 comments on commit 497810c

Please sign in to comment.