#bilalahmer
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
No, you have to use pagination and get each batch one by one.
Just for calirfication like
customers = Stripe::Customer.list({limit: 3})
will get only 3 customers and the below code will only do something with only the above **3 customers ** ?
`customers.auto_paging_each do |customer|
Do something with customer
end`
or will it pull all customers in batches of 3 until we gets all the customers ?
This will interate over all customers, but limit decides how often does it makes HTTP requests.
Yeah just wanted to confirm in the end it will iterate over all the customers regardless of the limit right ?
Yes
Thankyou 🙂
Happy to help!