title: Is there a refund webhook for Braintree?
body: <p>I didn't find some <code>refund</code> webhook in <a href="https://developers.braintreepayments.com/reference/general/webhooks/overview" rel="noreferrer">webhooks list</a>.</p>
  
  <p>Is <strong>Disbursment webhook</strong> something what can help me in this case <a href="https://developers.braintreepayments.com/reference/general/webhooks/disbursement/php" rel="noreferrer">https://developers.braintreepayments.com/reference/general/webhooks/disbursement/php</a> ? </p>
  
  <hr>
  
  <p>[Edit #1]: I've tested it and found that <strong>Disbursment webhook</strong> won't trigger after refund button is clicked in Braintree sandbox admin.</p>
  
  <p>So I presume there is no webhook for refunds. For now I ended up with scheduled cron task to get refund transactions from the Braintree API:</p>
  
  <pre><code>$collection = Braintree_Transaction::search([
      Braintree_TransactionSearch::createdAt()-&gt;greaterThanOrEqualTo($hourAgo),
      Braintree_TransactionSearch::type()-&gt;is(Braintree_Transaction::CREDIT),
      Braintree_TransactionSearch::refund()-&gt;is(true)
  ]);
  </code></pre>
  
  <hr>
  
  <p>P.S. hey, downvoters, why wouldn't you argument your opinion in comments? At least it could be helpful for someone who will find this thread.</p>