Braintree\CustomerGateway::credit PHP Method

credit() public method

credit a customer for the passed transaction
public credit ( integer $customerId, array $transactionAttribs ) : Braintree\Result\Successful | Error
$customerId integer
$transactionAttribs array
return Braintree\Result\Successful | Braintree\Result\Error
    public function credit($customerId, $transactionAttribs)
    {
        $this->_validateId($customerId);
        return Transaction::credit(array_merge($transactionAttribs, ['customerId' => $customerId]));
    }