From 26bb11d6e3f3a0138723fd8c92c48ee535d63ae4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 27 Nov 2022 17:39:10 +1100 Subject: [PATCH] Fixes for stripe importing customers --- app/PaymentDrivers/Stripe/ImportCustomers.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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); }