diff --git a/app/Http/Controllers/User/OrderController.php b/app/Http/Controllers/User/OrderController.php index e38099b8..94625726 100755 --- a/app/Http/Controllers/User/OrderController.php +++ b/app/Http/Controllers/User/OrderController.php @@ -90,7 +90,7 @@ class OrderController extends Controller if (!$user->plan_id) { abort(500, __('Subscription has expired or no active subscription, unable to purchase Data Reset Package')); } else { - if ($user->plan_id !== $request->input('plan_id')) { + if ($user->plan_id !== $plan->id) { abort(500, __('This subscription reset package does not apply to your subscription')); } }