我正在嘗試從條帶 API 中獲取過去 2 個月的事務列表,其中包含 2000 多條記錄。我使用了以下代碼,它只獲取 3 天的記錄。 $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){}請幫我解決這個問題
如何從 Stripe Api 獲取和存儲最近兩個月的余額交易
慕工程0101907
2021-08-28 09:05:36