This commit is contained in:
Andras Bacsai 2023-08-24 17:52:43 +02:00
parent 9ef3218bb5
commit 38688b7065

View File

@ -254,7 +254,7 @@
}
break;
case 'invoice.paid':
$subscriptionId = data_get($data, 'items.data.0.subscription');
$subscriptionId = data_get($data, 'lines.data.0.subscription');
$subscription = Subscription::where('stripe_subscription_id', $subscriptionId)->firstOrFail();
$subscription->update([
'stripe_invoice_paid' => true,