diff --git a/src/controllers/CustomersController.php b/src/controllers/CustomersController.php index be403e0..f7094e2 100644 --- a/src/controllers/CustomersController.php +++ b/src/controllers/CustomersController.php @@ -58,14 +58,12 @@ public function actionIndex(?int $userId = null): Response 'criteria' => ['userId' => $user->id], ], ]); - $customers = Plugin::getInstance()->getCustomers()->getCustomersByEmail($user->email); $response->contentTemplate('stripe/customers/_customer', [ - 'customers' => $customers, + 'customers' => $user->getStripeCustomers()->all(), 'subscriptions' => $subscriptions, 'invoices' => $invoicesService->getTableData($invoices), 'paymentMethods' => $paymentMethodsService->getTableData($paymentMethods), - //'tableDataEndpoint' => UrlHelper::actionUrl('stripe/invoices/table-data', ['userId' => $user->id]), ]); return $response;