in looking at the braintree zc code, i would now even argue that this payment module is NOT a javascript based payment method.
in addition, it looks to be based on braintree sdk 3.4.0 which was
deprecated on 3/2022; and unsupported as of 3/2023.
the latest braintree php sdk was released 2 weeks ago, and is version 6.16.0.