<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\PaymentMethod;

class PaymentMethodController extends Controller
{
    /**
     * Active payment methods.
     */
    public function index()
    {
        $methods = PaymentMethod::where('is_active', true)
            ->orderBy('sort_order', 'asc')
            ->get();

        return response()->json(['data' => $methods]);
    }
}
