This commit is contained in:
Andras Bacsai 2023-11-06 13:30:37 +01:00
parent 73f3a09157
commit 143e4e0d23

View File

@ -284,7 +284,7 @@
$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');