我没有找到refund
webhook webhooks list。Braintree有退款webhook吗?
是拨款webhook什么可以帮助我在这种情况下https://developers.braintreepayments.com/reference/general/webhooks/disbursement/php?
[编辑#1]:我测试了一下,发现Disbursment网络挂接退款按钮被点击布伦特里沙箱管理员后不会触发。
所以我认为没有webhook退款。现在,我结束了与计划的cron任务从布伦特里API获得退款交易:
$collection = Braintree_Transaction::search([
Braintree_TransactionSearch::createdAt()->greaterThanOrEqualTo($hourAgo),
Braintree_TransactionSearch::type()->is(Braintree_Transaction::CREDIT),
Braintree_TransactionSearch::refund()->is(true)
]);
附:嘿,downvoters,你为什么不在意见中争论你的意见?至少它可能会有帮助的人会找到这个线程。