• Resolved jasperhuss

    (@jasperhuss)


    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

    • This topic was modified 4 years, 9 months ago by jasperhuss.
Viewing 1 replies (of 1 total)
  • Plugin Contributor SkyVerge

    (@skyverge)

    Hi @jasperhuss,

    Thanks for reaching out. Happy to help you with this!

    Braintree is correct that we are using the 3.34.0 SDK currently within our plugin and do need to get that updated. However, our plugin does support PHP 7+, as our test environment is using PHP 7.3 currently.

    That being said, there may be a separate issue happening and I’m happy to take a closer look with you to see what we can do to get you up to 7.3!

    So that we can have a more detailed discussion within the context of your site specifically, can I get you to please open up a support request with us here? (Make sure to mention “Marcus” so I can grab it when it comes in!)
    https://skyverge.com/contact/

    Please make sure to include your system status so we can get a better idea of what might be going on. You can grab it by going to:

    WooCommerce > Status and clicking on Get system report.

    Thanks!

    Marcus
    SkyVerge

Viewing 1 replies (of 1 total)
  • The topic ‘Braintree PHP SDK 3.34 not supported with PHP 7.3 – need upgrade’ is closed to new replies.