You are here

public static function Braintree_Transaction::cloneTransaction in Commerce Braintree 7

4 calls to Braintree_Transaction::cloneTransaction()
Braintree_TransactionTest::testCloneTransaction in braintree_php/tests/integration/TransactionTest.php
Braintree_TransactionTest::testCloneTransactionAndSubmitForSettlement in braintree_php/tests/integration/TransactionTest.php
Braintree_TransactionTest::testCloneTransaction_RaisesErrorOnInvalidProperty in braintree_php/tests/unit/TransactionTest.php
Braintree_TransactionTest::testCloneWithValidations in braintree_php/tests/integration/TransactionTest.php

File

braintree_php/lib/Braintree/Transaction.php, line 202

Class

Braintree_Transaction
Creates and manages transactions

Code

public static function cloneTransaction($transactionId, $attribs) {
  Braintree_Util::verifyKeys(self::cloneSignature(), $attribs);
  return self::_doCreate('/transactions/' . $transactionId . '/clone', array(
    'transactionClone' => $attribs,
  ));
}