Skip to content

komalsoni4/payment-simulation-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ณ Payment Simulation API (Spring Boot)

A lightweight Spring Boot API to simulate payment flows (card transactions). Designed for learning backend systems, REST APIs, and Docker.


๐Ÿš€ Features

  • 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)

๐Ÿ›  Tech Stack

  • Java 17
  • Spring Boot
  • Maven
  • REST API
  • Docker

๐Ÿ“ฆ API Endpoints

POST /api/payment

Request Body:

{
  "cardNumber": "4111111111111111",
  "expiryDate": "12/26",
  "amount": 250.00
}

About

This is self project for learning CI/CD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published