I want to check Braintree transaction status. I am calling


in my helper but unable to do so it is giving error

"Missing required argument $merchantId of Magento\Braintree\Model\Adapter\BraintreeAdapter"

How can I call that?

1 Answer 1


(sorry, I'd leave as a comment but I don't have those privileges yet)

Sounds like the BraintreeAdapter directory does not have access to your Braintree API credentials located in Braintree/Gateway/Config/Config.php (link)

Can you confirm that you have added your sandbox credentials to your Magento store? You may need to instantiate the Braintree gateway in a similar fashion to BraintreeSearchAdapter

  • Yes I have added the Braintree sandbox credentials to store. Commented May 23, 2018 at 5:49
  • What directory is your helper located in? Maybe that location does not have Braintree credentials loaded from a use Braintree\Configuration operator? I believe Braintree credentials are constructed in the BraintreeAdapter.php file
    – hollabaq
    Commented May 24, 2018 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.