1

I want to check Braintree transaction status. I am calling

$gateway->transaction()->search([
  Braintree_TransactionSearch::status()->is(Braintree_Transaction::SETTLED)
]);

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

0

(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

2
  • Yes I have added the Braintree sandbox credentials to store. 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
    May 24, 2018 at 15:26

Your Answer

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

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