Zend certified PHP/Magento developer

Magento 2.3.4 not syncing with braintree after refund

when issuing a refund from the braintree or paypal panel the orders in Magento 2.3.4 are not set to “closed” and no credit memo is being created. Is there any setting I need to adjust? Payments work great otherwise. Any help appreciated.