You are here

public static function Braintree_Transaction::void in Commerce Braintree 7

void a transaction by id

Parameters

string $id transaction id:

Return value

object Braintree_Result_Successful|Braintree_Result_Error

3 calls to Braintree_Transaction::void()
Braintree_Transaction::voidNoValidate in braintree_php/lib/Braintree/Transaction.php
Braintree_TransactionTest::testVoid in braintree_php/tests/integration/TransactionTest.php
Braintree_TransactionTest::testVoid_withValidationError in braintree_php/tests/integration/TransactionTest.php

File

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

Class

Braintree_Transaction
Creates and manages transactions

Code

public static function void($transactionId) {
  self::_validateId($transactionId);
  $response = Braintree_Http::put('/transactions/' . $transactionId . '/void');
  return self::_verifyGatewayResponse($response);
}