I transaction state is not getting updated at Magento when it changes at Braintree. I manually want to get the transaction status from Braintree but unable to call the Braintree method in my custom module. Any sugesstion how can I call Braintree method and get the status of transaction?
$gateway->transaction()->search([ Braintree_TransactionSearch::status()->is(Braintree_Transaction::SETTLED) ]);
I want to call this method.