Skip to content

Commit 1e04cda

Browse files
committed
MAGETWO-51014: Incorrect error message is shown to customer when Express Checkout fraud filters triggered
- CR Changes - added firstError variable usage
1 parent 018ca59 commit 1e04cda

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Paypal/Model/Api

1 file changed

+1
-1
lines changed

app/code/Magento/Paypal/Model/Api/Nvp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ protected function _handleCallErrors($response)
12911291
$firstError = $errors[0]['code'];
12921292
$exception = $this->_isProcessableError($firstError)
12931293
? $this->_processableExceptionFactory->create(
1294-
['phrase' => $exceptionPhrase, 'code' => $errors[0]['code']]
1294+
['phrase' => $exceptionPhrase, 'code' => $firstError]
12951295
)
12961296
: $this->_frameworkExceptionFactory->create(
12971297
['phrase' => $exceptionPhrase]

0 commit comments

Comments
 (0)