'required|numeric|min:0', ]); try { $plan = Plan::findOrFail($validated['plan_id']); createPlanOrder([ 'user_id' => auth()->id(), 'plan_id' => $plan->id, 'billing_cycle' => $validated['billing_cycle'], 'payment_method' => 'bank', 'coupon_code' => $validated['coupon_code'] ?? null, 'payment_id' => 'BANK_' . strtoupper(uniqid()), 'status' => 'pending', ]); return back()->with('success', __('Payment request submitted. Your plan will be activated after payment verification.')); } catch (\Exception $e) { return handlePaymentError($e, 'bank'); } } }