daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Sep 29th, 2015 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public function getAllConnectedAccounts(){
  2.  
  3.                 $data = array();
  4.                 $params = array('limit'=>100);
  5.  
  6.                 do{
  7.  
  8.                         if(count($data) > 0){
  9.                                 $params = array('starting_after'=>end($data)->id,'limit'=>100);
  10.                         }
  11.  
  12.                         $accounts = \Stripe\Account::all($params);
  13.  
  14.                         $data = array_merge($data,$accounts->data);
  15.  
  16.                 }while($accounts->has_more);
  17.  
  18.                 return $data;
  19.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top