public static function Braintree_Transaction::submitForSettlement in Commerce Braintree 7
3 calls to Braintree_Transaction::submitForSettlement()
- Braintree_Transaction::submitForSettlementNoValidate in braintree_php/
lib/ Braintree/ Transaction.php - Braintree_TransactionTest::testSubmitForSettlement_nullAmount in braintree_php/
tests/ integration/ TransactionTest.php - Braintree_TransactionTest::testSubmitForSettlement_withAmount in braintree_php/
tests/ integration/ TransactionTest.php
File
- braintree_php/
lib/ Braintree/ Transaction.php, line 444
Class
- Braintree_Transaction
- Creates and manages transactions
Code
public static function submitForSettlement($transactionId, $amount = null) {
self::_validateId($transactionId);
$response = Braintree_Http::put('/transactions/' . $transactionId . '/submit_for_settlement', array(
'transaction' => array(
'amount' => $amount,
),
));
return self::_verifyGatewayResponse($response);
}