File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
SubscriptionBillableTrait Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ protected function handleInvoicePaymentSucceeded(array $payload)
95
95
protected function handleCustomerSubscriptionDeleted (array $ payload )
96
96
{
97
97
if ($ subscription = $ this ->getSubscription ($ payload ['data ' ]['object ' ]['id ' ])) {
98
- $ subscription ->subscription ()->refresh ();
98
+ if ($ subscription ->billingIsActive ()) {
99
+ $ subscription ->subscription ()->refresh ();
100
+ }
99
101
}
100
102
101
103
return new Response ('Webhook Handled ' , 200 );
Original file line number Diff line number Diff line change @@ -353,10 +353,6 @@ public function decrement($count = 1)
353
353
*/
354
354
public function refresh ()
355
355
{
356
- if ($ this ->model ->billing_free ) {
357
- return $ this ;
358
- }
359
-
360
356
$ info = array ();
361
357
if ($ this ->subscription ) {
362
358
try {
You can’t perform that action at this time.
0 commit comments