fix
This commit is contained in:
parent
9ef3218bb5
commit
38688b7065
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user