validate('transactionReference'); return [ 'transactionReference' => $this->getTransactionReference(), 'amount' => $this->getAmount(), ]; } /** * Send the request with specified data. * * @param mixed $data The data to send * * @return ResponseInterface */ public function sendData($data) { $response = $this->braintree->transaction()->refund($data['transactionReference'], $data['amount']); return $this->createResponse($response); } }