#Aimer
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you can use the auto-pagination https://stripe.com/docs/api/pagination/auto feature of our SDKs
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
$stripe = new \Stripe\StripeClient("sk_test_51FCCeXIWzZYVbxDQW0GWB9uWoDK7zIj88vY65qN8QYDbcfXz2j8BzkFqvGp2VJUqC2sJw17Hyw9lxPcWggRWWglo00YsXf22JT");
$customers = $stripe->customers->all([
'limit' => 3,
]);
foreach ($customers->autoPagingIterator() as $customer) {
// Do something with $customer
}
for this code
it fetch 3 records?
no it fetches all the customers
whats the limit stands for
but it will make an API call to Stripe for each 3