Skip to content

Commit 4379cb4

Browse files
committed
fix conditional
1 parent 2de1697 commit 4379cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Listeners/StripeWebhookReceivedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private function createUserIfNotExists(string $stripeCustomerId): void
3434

3535
$customer = Customer::retrieve($stripeCustomerId);
3636

37-
if (! $customer->email) {
37+
if (! $customer) {
3838
throw new Exception(
3939
'A user needed to be created for customer.subscription.created but was unable to retrieve the customer from Stripe.'
4040
);

0 commit comments

Comments
 (0)