I am trying to fetch last 2 months transaction lists which has more than 2000 records from stripe API.
I used following code which only fetch 3 days records.
$balance = $this->stripelib->getBalanceTransaction()->all(
array(
'limit' => 100,
'created' => array(
'gte' => strtotime('-2 month'),
'lte' => strtotime('1 day')
)
)
);
foreach ($balance->data as $bl){}
$this->addStripeRecord($balance->data);
while ($balance->has_more){
$balance = $this->stripelib->getBalanceTransaction()->all(
array(
"limit" => 100,
"created" => array(
"gte" => strtotime('-2 month'),
'lte' => strtotime('1 day')
),
"starting_after" => $bl->id)
);
foreach ($balance->data as $bl){}
please help me to solve this issue