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.
1 parent 018ca59 commit 1e04cdaCopy full SHA for 1e04cda
app/code/Magento/Paypal/Model/Api/Nvp.php
@@ -1291,7 +1291,7 @@ protected function _handleCallErrors($response)
1291
$firstError = $errors[0]['code'];
1292
$exception = $this->_isProcessableError($firstError)
1293
? $this->_processableExceptionFactory->create(
1294
- ['phrase' => $exceptionPhrase, 'code' => $errors[0]['code']]
+ ['phrase' => $exceptionPhrase, 'code' => $firstError]
1295
)
1296
: $this->_frameworkExceptionFactory->create(
1297
['phrase' => $exceptionPhrase]
0 commit comments