A lightweight Spring Boot API to simulate payment flows (card transactions). Designed for learning backend systems, REST APIs, and Docker.
- Simulates card-based payment transaction flow
- Validates card number, expiry, amount
- Generates transaction IDs
- REST API: POST /api/payment
- GET transaction by ID
- Includes in-memory transaction store
- Swagger integration (optional)
- Dockerized setup
- CI/CD via GitHub Actions (optional)
- Java 17
- Spring Boot
- Maven
- REST API
- Docker
Request Body:
{
"cardNumber": "4111111111111111",
"expiryDate": "12/26",
"amount": 250.00
}