diff --git a/routes/webhooks.php b/routes/webhooks.php index 8364e903f..026b2ebc3 100644 --- a/routes/webhooks.php +++ b/routes/webhooks.php @@ -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,