I am using Braintree payments and have just updated the php api library to version 6.16.0 and am now getting this error when processing payments:
Notice : Undefined property on Braintree\Result\Successful: message in /home/accpunt/public_html/master/braintree/braintree-php-6.16.0/lib/Braintree/Instance.php** on line 35
Going by the method code, this suggests that ther is no array key in the object’s attributes that matches the $name parameter that was passed in.
You shold be able to see futher up the stack trace where the method was called and what $name parameter was passed to it.
Thanks guys… I am still having this issue… I can’t find anything in the documentation that refers to just $name… I tried updating the Instance.php code with above but still get the error and it is not a good idea to update a third-party API… any other ideas?
With some help from ChatGPT I worked this out… the error was with a call that is no longer used in the new version of the API - $cardError = $result->message;