# Payment Module

Handles orders, payment methods, and checkout processing.

## Entities

- **Order**: order_number, session_id, status, subtotal, delivery_fee, service_fee, total, vat_amount, payment_method, payment_status
- **OrderItem**: order_id, product_id, product_name, price, unit, quantity, subtotal
- **PaymentMethod**: name, slug, icon_url, description, is_active, sort_order

## API Endpoints

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/api/checkout/payment-methods` | List payment methods |
| POST | `/api/orders` | Create order |
| GET | `/api/orders/{id}` | Get order details |
| POST | `/api/orders/{id}/pay` | Process payment |

## Payment Methods (Seed Data)

- Credit Card (Visa/Mastercard)
- PayPal
- Apple Pay
- SEPA Direct Debit

## Layers

- **Models**: `Order`, `OrderItem`, `PaymentMethod`
- **Repositories**: `OrderRepository`, `PaymentMethodRepository`
- **Interfaces**: `OrderRepositoryInterface`, `PaymentMethodRepositoryInterface`
- **Service**: `Modules\Payment\Services\PaymentService`
- **Controller**: `Modules\Payment\Http\Controllers\PaymentController`
