1

I have this error on Magento 2.3.3 when I try to refund (credit memo) an order with braintree.

Notice: Trying to get property of non-object in vendor/magento/module-braintree/Gateway/Validator/ErrorCodeProvider.php on line 41

I did some research, but I didn't find nothing so far. I need your help!

1 Answer 1

0

this error happened for me when the transaction was not settled. I turned on the Braintree debug setting and received a more descriptive error to that one above!

'message' => 'Cannot refund transaction unless it is settled.',

2
  • Oh I gotcha, it make sense. So, this basically means that the transaction went through, but the money has not been collected in the account and so the refund cannot be done? Commented Jul 15, 2020 at 15:52
  • Yes you need to check in braintree the status of the transaction. I think this will be "unsettled" which magento doesn't recognise, hence the error.
    – user3250
    Commented Jul 16, 2020 at 8:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.