From 6f965ba18c69a5b1672e8ce2938bcdf6e106de7c Mon Sep 17 00:00:00 2001 From: Steven Fox <62109327+steven-fox@users.noreply.github.com> Date: Fri, 9 May 2025 22:45:00 -0400 Subject: [PATCH] use cashier to resolve stripe client --- app/Listeners/StripeWebhookReceivedListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/StripeWebhookReceivedListener.php b/app/Listeners/StripeWebhookReceivedListener.php index dd0e5855..8a1b3ee1 100644 --- a/app/Listeners/StripeWebhookReceivedListener.php +++ b/app/Listeners/StripeWebhookReceivedListener.php @@ -32,7 +32,7 @@ private function createUserIfNotExists(string $stripeCustomerId): void return; } - $customer = Customer::retrieve($stripeCustomerId); + $customer = Cashier::stripe()->customers->retrieve($stripeCustomerId); if (! $customer) { throw new Exception(