public function hasSufficientFunds($amount, $vendor, $transfer = false)
    {
        $balance = round($this->hipay->getBalance($vendor), static::SCALE);

        if ($balance < round($amount, static::SCALE)) {
            if ($transfer) {
                throw new WrongWalletBalance('technical', 'transfer', $amount, $balance);
            }

            throw new WrongWalletBalance($vendor->getHipayId(), 'withdraw', $amount, $balance);
        }
    }
public function hasSufficientFunds($amount, $vendor, $transfer = false)
    {
        $balance = round($this->hipay->getBalance($vendor), static::SCALE);

        if ($balance < round($amount, static::SCALE)) {
            if ($transfer) {
                throw new WrongWalletBalance('technical', 'transfer', $amount, $balance);
            }

            throw new WrongWalletBalance($vendor->getHipayId(), 'withdraw', $amount, $balance);
        }
    }
public function hasSufficientFunds ( $ amount , $ vendor , $ transfer = false ) { $ balance = round ( $ this -> hipay -> getBalance ( $ vendor ) , static :: SCALE ) ; if ( $ balance < round ( $ amount , static :: SCALE ) ) { if ( $ transfer ) { throw new WrongWalletBalance ( 'technical' , 'transfer' , $ amount , $ balance ) ; } throw new WrongWalletBalance ( $ vendor -> getHipayId ( ) , 'withdraw' , $ amount , $ balance ) ; } }
Check if technical account has sufficient funds.

@param $amount
@param $vendor
@param bool $transfer
@throws WrongWalletBalance
Check if technical account has sufficient funds .