See also the Transaction response object.
This functionality is specific to Braintree Marketplace merchants.
PHP
$result = $gateway->transaction()->cancelRelease("transaction_id");
If the transaction can't be found, you'll receive a Braintree\Exception\NotFound
exception.
If you previously released an escrowed Braintree Marketplace transaction, you can cancel the release while the escrowStatus
is releasePending
.