We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de1697 commit 4379cb4Copy full SHA for 4379cb4
app/Listeners/StripeWebhookReceivedListener.php
@@ -34,7 +34,7 @@ private function createUserIfNotExists(string $stripeCustomerId): void
34
35
$customer = Customer::retrieve($stripeCustomerId);
36
37
- if (! $customer->email) {
+ if (! $customer) {
38
throw new Exception(
39
'A user needed to be created for customer.subscription.created but was unable to retrieve the customer from Stripe.'
40
);
0 commit comments