diff --git a/app/PaymentDrivers/Stripe/ImportCustomers.php b/app/PaymentDrivers/Stripe/ImportCustomers.php index a6aacdcc0fe6..5ca8ef65fbeb 100644 --- a/app/PaymentDrivers/Stripe/ImportCustomers.php +++ b/app/PaymentDrivers/Stripe/ImportCustomers.php @@ -67,10 +67,13 @@ class ImportCustomers } //handle - if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data))) - $starting_after = end($customers->data)['id']; - else - break; + // if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data))) + // $starting_after = end($customers->data)['id']; + // else + // break; + + $starting_after = end($customers->data)['id']; + } while ($customers->has_more); }