We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2477c5c + a4830a2 commit 8040804Copy full SHA for 8040804
app/code/Magento/Authorizenet/Controller/Directpost/Payment/Place.php
@@ -15,6 +15,7 @@
15
use Magento\Framework\Registry;
16
use Magento\Payment\Model\IframeConfigProvider;
17
use Magento\Quote\Api\CartManagementInterface;
18
+use Magento\Framework\Exception\LocalizedException;
19
20
/**
21
* Class Place
@@ -125,6 +126,9 @@ protected function placeCheckoutOrder()
125
126
'action' => $this
127
]
128
);
129
+ } catch (LocalizedException $exception) {
130
+ $result->setData('error', true);
131
+ $result->setData('error_messages', $exception->getMessage());
132
} catch (\Exception $exception) {
133
$result->setData('error', true);
134
$result->setData('error_messages', __('Unable to place order. Please try again later.'));
0 commit comments