fix: stripe invoice paid webhook

fix: prepare customer initiated tier change
fix: separate view for subscriptions
This commit is contained in:
Andras Bacsai committed 2024-02-23 11:21:14 +01:00
1 parent ce09ef8848
commit b59e47dcf9
11 files changed
+108 -59

No files matched your search

-2
View File
@@ -816,9 +816,7 @@ Route::post('/payments/stripe/events', function () {
Sleep::for(5)->seconds();
$subscription = Subscription::where('stripe_customer_id', $customerId)->firstOrFail();
}
$subscription->update([
'stripe_plan_id' => $planId,
'stripe_invoice_paid' => true,
]);
break;