Skip to content

Commit 8040804

Browse files
committed
MAGETWO-50289: Merge branch 'authorizenet_place_order' of github.com:ytorbyk/magento2 into github_pr
2 parents 2477c5c + a4830a2 commit 8040804

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Authorizenet/Controller/Directpost/Payment

1 file changed

+4
-0
lines changed

app/code/Magento/Authorizenet/Controller/Directpost/Payment/Place.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Magento\Framework\Registry;
1616
use Magento\Payment\Model\IframeConfigProvider;
1717
use Magento\Quote\Api\CartManagementInterface;
18+
use Magento\Framework\Exception\LocalizedException;
1819

1920
/**
2021
* Class Place
@@ -125,6 +126,9 @@ protected function placeCheckoutOrder()
125126
'action' => $this
126127
]
127128
);
129+
} catch (LocalizedException $exception) {
130+
$result->setData('error', true);
131+
$result->setData('error_messages', $exception->getMessage());
128132
} catch (\Exception $exception) {
129133
$result->setData('error', true);
130134
$result->setData('error_messages', __('Unable to place order. Please try again later.'));

0 commit comments

Comments
 (0)