This article provides a patch for the Adobe Commerce 2.4.5 issue where an Admin user can’t create orders nor reorders for customers when the Braintree payment method is enabled.
Steps to reproduce:
Admin users can successfully create orders and reorders for customers when the Braintree payment method is enabled.
Admin users can’t create orders nor reorders for customers when the Braintree payment method is enabled, and returns the following error:
report.CRITICAL: Error: Call to a member function getMethodInstance() on null in /app/vendor/paypal/module-braintree-core/Block/Form.php:174
Incorrect class dependencies (
Apply the patch provided in this article.
The patch is attached to this article. To download it, click the following link:
Additionally for Adobe Commerce on cloud infrastructure merchants: Adobe has included the fix in the Cloud Patches for Commerce version 1.0.18. Please refer to Cloud Patches for Commerce release notes in our developer documentation to find instructions on applying the latest package.
The patch was created for:
The patch is not compatible with any other Adobe Commerce and Magento Open Source versions and editions.
See How to apply a composer patch provided by Adobe in our support knowledge base for instructions.