public function createEscrowedTransaction() { $result = Braintree\Transaction::sale(['merchantAccountId' => Test\Helper::nonDefaultSubMerchantAccountId(), 'amount' => '100.00', 'creditCard' => ['number' => '5105105105105100', 'expirationDate' => '05/12'], 'options' => ['holdInEscrow' => true], 'serviceFeeAmount' => '1.00']); Test\Helper::escrow($result->transaction->id); return $result->transaction; }