A Spring Boot-based backend service for managing payments.
- Core payment processing logic
- Unit testing setup
- Maven build configuration
- POST
/payment/accept- Accepts payment for a user.
- Payload:
{ "accountHolderName": "Vinit Rana", "amountCredited": 500.0, "modeOfPayment": "UPI" }
- GET
/payment/balance/{name}- Returns the balance for a specific user.
- Java 21
- Spring Boot 3.4.2
- Maven
- Java 21 or higher
- Maven 3.6+
To build the project:
./mvnw clean installTo run the application:
./mvnw spring-boot:runsrc/main/java: Core application logicsrc/main/resources: Application configuration and propertiessrc/test/java: Unit and integration tests