This commit is contained in:
Andras Bacsai committed 2023-11-06 13:29:44 +01:00
1 parent 6203804713
commit 73f3a09157
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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);
Sleep::for(5)->minutes();
$subscription = Subscription::where('stripe_customer_id', $customerId)->firstOrFail();
}
$planId = data_get($data, 'lines.data.0.plan.id');