You are here

public static function Braintree_Customer::creditNoValidate in Commerce Braintree 7

credit a customer, assuming validations will pass

returns a Braintree_Transaction object on success

@access public

Parameters

array $attribs:

Return value

object Braintree_Transaction

Throws

Braintree_Exception_ValidationError

2 calls to Braintree_Customer::creditNoValidate()
Braintree_CustomerTest::testCreditNoValidate_createsACreditUsingGivenId in braintree_php/tests/integration/CustomerTest.php
Braintree_CustomerTest::testCreditNoValidate_throwsIfInvalid in braintree_php/tests/integration/CustomerTest.php

File

braintree_php/lib/Braintree/Customer.php, line 233

Class

Braintree_Customer
Creates and manages Customers

Code

public static function creditNoValidate($customerId, $transactionAttribs) {
  $result = self::credit($customerId, $transactionAttribs);
  return self::returnObjectOrThrowException('Braintree_Transaction', $result);
}