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?