Fixes for stripe importing customers

This commit is contained in:
David Bomba 2022-11-27 17:39:10 +11:00
parent 85c40de5de
commit 26bb11d6e3

View File

@ -67,10 +67,13 @@ class ImportCustomers
} }
//handle //handle
if(is_array($customers->data) && end($customers->data) && array_key_exists('id', end($customers->data))) // 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']; $starting_after = end($customers->data)['id'];
else
break;
} while ($customers->has_more); } while ($customers->has_more);
} }