Exemplo n.º 1
0
 /**
  * Clones existing transaction
  *
  * @param float $amount
  * @param string $transactionId
  * @return mixed
  * @throws \Exception
  */
 protected function cloneTransaction($amount, $transactionId)
 {
     $this->_debug(['clone-' . $transactionId . ' amount=' . $amount]);
     $result = $this->braintreeTransaction->cloneTransaction($transactionId, ['amount' => $amount, 'options' => ['submitForSettlement' => true]]);
     $this->_debug($this->_convertObjToArray($result));
     return $result;
 }