"No such subscription: 'sub_Ic51hhLuYFOFNN' ".
I am trying to cancel a stripe subscription using Laravel cashier. Upon
calling the cancelNow()
function Stripe throws an exception. Every time I send a different Stripe plan but Stripe throws the same exception:
No such subscription: 'sub_Ic51hhLuYFOFNN'
if ($user->subscription('main',$subscription->stripe_plan)->cancelNow()) {
session()->flash('error', 'Unsubscribed package succesfully.');
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…