A backend application built using Java, Spring Boot, and PostgreSQL that simulates a real-time payment gateway system.
- ✅ Create a new payment request
- 🔁 Update payment status (
INITIATED,SUCCESS,FAILED) - 🔍 Retrieve payment details by ID
- 📋 View all transactions
- 🌐 RESTful APIs tested with Postman
| Layer | Technology |
|---|---|
| Backend | Java 17, Spring Boot |
| Database | PostgreSQL |
| ORM | JPA / Hibernate |
| API Testing | Postman |
| Build Tool | Maven |
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/payments |
Create new payment |
GET |
/api/payments/{id} |
Get payment by ID |
PUT |
/api/payments/{id}/status?status=SUCCESS |
Update payment status |
GET |
/api/payments |
List all payments |
{
"payerName": "Chetan",
"amount": 500.0
}🧰 How to Run
- Clone the repo:
git clone https://github.com/your-username/payment-gateway-simulation.git
cd payment-gateway-simulation-
Configure application.properties with your PostgreSQL DB.
-
Run the Spring Boot app:
mvn spring-boot:run- Open Postman and test endpoints at:
http://localhost:8080/api/payments🙋♂️ Author Chetan Sonawane 🔗 https://www.linkedin.com/in/chetan-sonawane-449a1a242/ 📫 sonawanechetan847@gmail.com