Skip to content

Chetansonawane7/payment-gateway-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💳 Payment Gateway Simulation

A backend application built using Java, Spring Boot, and PostgreSQL that simulates a real-time payment gateway system.


🚀 Features

  • ✅ Create a new payment request
  • 🔁 Update payment status (INITIATED, SUCCESS, FAILED)
  • 🔍 Retrieve payment details by ID
  • 📋 View all transactions
  • 🌐 RESTful APIs tested with Postman

🛠 Tech Stack

Layer Technology
Backend Java 17, Spring Boot
Database PostgreSQL
ORM JPA / Hibernate
API Testing Postman
Build Tool Maven

📦 API Endpoints

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

🧪 Sample JSON Payload

➕ Create Payment

{
  "payerName": "Chetan",
  "amount": 500.0
}

🧰 How to Run

  1. Clone the repo:
git clone https://github.com/your-username/payment-gateway-simulation.git
cd payment-gateway-simulation
  1. Configure application.properties with your PostgreSQL DB.

  2. Run the Spring Boot app:

mvn spring-boot:run
  1. 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

About

A backend Java Spring Boot project that simulates real-time payment processing with full CRUD operations, status updates, and RESTful APIs. Integrated with PostgreSQL and tested using Postman, this system demonstrates a robust payment lifecycle architecture suitable for fintech backend engineering.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages