diff --git a/src/StripePaymentManager.php b/src/StripePaymentManager.php index daf24c5..5d069d9 100644 --- a/src/StripePaymentManager.php +++ b/src/StripePaymentManager.php @@ -77,7 +77,7 @@ private function createStripeUser(StripeUser $stripeUser) { try { /** @var StripeUser */ - $user = $this->table->findBy('stripe_id', $stripeUser->getStripeId()); + $user = $this->table->findBy('stripe_id', $stripeUser->getStripeId() ?? ""); $stripeUser->setStripeId($user->getStripeId()); } catch (NoRecordException $e) { $this->stripe->createCustomer($stripeUser);