See also the Transaction response object.

This functionality is specific to Braintree Marketplace merchants.

PHP
$result = $gateway->transaction()->holdInEscrow('transaction_id');
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.

If the transaction can't be found, you'll receive a Braintree_Exception_NotFound exception.

You can only hold a transaction in escrow if its status is authorized or submittedForSettlement.

Arguments
transactionId required, string

The id of the transaction you want to hold in escrow.