Skip to content

Commit

Permalink
use the behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Apr 25, 2024
1 parent 2131395 commit 7ae35e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/controllers/CustomersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ae35e0

Please sign in to comment.