Braintree PHP SDK 3.34 not supported with PHP 7.3 – need upgrade
-
Hi,
Since PHP 7.1 is considered insecure we upgraded PHP to 7.3 but the Braintree plugin (running 2.3.11) is throwing errors and checkout is locked.
javascript error occurs:
Uncaught TypeError: Cannot read property ‘message’ of undefined
this is happening after the braintree.client.create() function is called.After contacting Braintree about this they responded with:
The integration you’re using through WooCommerce is utilizing an older version of our PHP SDK (3.34.0) that does not support PHP 7, which seems to be at the root cause of the issues you experienced.
Braintree added support for PHP 7 in version 4.0.0 of our PHP SDK (this SDK version requires using PHP 7.2 or higher) and support for PHP 7.4 was added in the release of SDK version 4.6.0.
If you haven’t done so already, you’ll want to speak with the support team at WooCommerce to see if they have an update that utilizes these later releases of Braintree’s PHP SDK. Once this is updated in your integration, it should resolve the errors you were running into. (Please feel free to CC Braintree’s Support team on any ticket you open up with WooCommerce and we’ll gladly assist however we can.)
We have now set PHP to 7.1 as temporary workaround
So are there any plans to upgrade this SDK in the foreseeable future? Running an older PHP version is not something one should be forced to ??
Many thanks!
Jasper
- The topic ‘Braintree PHP SDK 3.34 not supported with PHP 7.3 – need upgrade’ is closed to new replies.