diff --git a/routes/webhooks.php b/routes/webhooks.php index 2274ea0b3..e6a6a0af9 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -284,7 +284,7 @@ Route::post('/payments/stripe/events', function () { $customerId = data_get($data, 'customer'); $subscription = Subscription::where('stripe_customer_id', $customerId)->first(); if (!$subscription) { - Sleep::for(5)->minutes(); + Sleep::for(5)->seconds(); $subscription = Subscription::where('stripe_customer_id', $customerId)->firstOrFail(); } $planId = data_get($data, 'lines.data.0.plan.id');