Microservice built with Laravel 12 to manage the complete payment lifecycle.
- Create payments
- Update payment status
- Payment status history audit trail
- Paginated payment listing
- Filter by status
- JSON API Resources
- Automated tests
- GitHub Actions CI
- Enum-based status safety
- Domain Actions pattern
This project follows a domain-oriented layered architecture:
- Models → persistence layer
- Actions → use cases / business rules
- Enums → status safety
- Resources → API response contracts
- Requests → validation layer
- Feature Tests → endpoint coverage
- CI Workflow → regression protection
POST /api/paymentsPATCH /api/payments/{id}/statusGET /api/paymentsGET /api/payments?status=paidGET /api/payments/{id}composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
php artisan servephp artisan testGitHub Actions runs the full test suite on every push and pull request.
- PHP 8.3
- Laravel 12
- MySQL
- SQLite (CI tests)
- PHPUnit
- GitHub Actions
- Webhook processing
- Payment retry flow
- Dead letter queue
- Async events
- Docker setup
- OpenAPI / Swagger docs