src/Paystack.php
public function listSubAccounts($per_page,$page){

        $this->setRequestOptions();
        return $this->setHttpResponse("/subaccount/?perPage=".(int) $per_page."&page=".(int) $page,"GET")->getResponse();

    }
public function listSubAccounts($per_page,$page){

        $this->setRequestOptions();
        return $this->setHttpResponse("/subaccount/?perPage=".(int) $per_page."&page=".(int) $page,"GET")->getResponse();

    }
public function listSubAccounts ( $ per_page , $ page ) { $ this -> setRequestOptions ( ) ; return $ this -> setHttpResponse ( "/subaccount/?perPage=" . ( int ) $ per_page . "&page=" . ( int ) $ page , "GET" ) -> getResponse ( ) ; }
Lists all the subaccounts associated with the account
@param $per_page - Specifies how many records to retrieve per page , $page - SPecifies exactly what page to retrieve
@return array
Lists all the subaccounts associated with the account