Skip to content

Commit

Permalink
Merge pull request #110 from paynl/feature/PLUG-267
Browse files Browse the repository at this point in the history
Feature/plug 267
  • Loading branch information
woutse authored Dec 21, 2020
2 parents de1619b + cb57683 commit dca85c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Controller/Checkout/Finish.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ public function execute()
return $resultRedirect;
}

$this->messageManager->addNoticeMessage(__('Payment canceled'));
$orderStatus = empty($params['orderStatusId']) ? null : $params['orderStatusId'];

$cancelMessage = $orderStatus == -63 ? __('Payment denied') : __('Payment canceled');

$this->messageManager->addNoticeMessage($cancelMessage);
$cancelURL = $this->config->getCancelURL();
$resultRedirect->setPath($cancelURL);

Expand Down
1 change: 1 addition & 0 deletions i18n/nl_NL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"Invalid return, no transactionId specified","Ongeldige return, geen transactieId meegegeven"
"There was an error checking the transaction status","Fout bij het controleren van de transactie status"
"Payment canceled","Betaling geannuleerd"
"Payment denied","Betaling afgewezen"
"Something went wrong, please try again later","Er is iet mis gegaan, probeer het later nogmaals"
"Enter your API-token and ServiceId first","Voer eerst je API-token en Service Id in"
"No","Nee"
Expand Down

0 comments on commit dca85c4

Please sign in to comment.