Skip to content

lmicovic/payment-transfer-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payment Transfer System

Table of Contents

Overview

A simple and secure Spring Boot based payment transfer service that allows users to transfer funds between accounts within a digital banking platform. This service includes robust error handling and transaction logging to ensure data integrity and traceability.

Features

  • Secure Transfers: Enables users to move funds from one internal account to another.

  • Validation: Ensures the source account has sufficient funds and prevents illogical transactions (e.g., same-source and destination).

  • Transaction Recording: All transfers are logged for compliance, reporting, and audit purposes.

  • Error Handling: Graceful and consistent error messages.

Technology used

Importand Endpoints

  • Transfer funds:

Endpoint: POST /transfer Sample Request:

{
  "sourceAccountId": 1,
  "destinationAccountId": 2,
  "amount": 20
}

Typical Responses:

  • 200 OK: Transaction successful
  • 404 Not Found: Account does not exist
  • 400 Bad Request: Invalid input (e.g. negative amount)
  • 406 Not Acceptable: Insufficient funds

Project Structure

src/
├── configuration/          # Global configs, interceptors, and filters
├── controller/             # REST controllers
├── service/                # Business logic
├── repository/             # Spring Data repositories
└── model/                  # Entity definitions

How to run

Run the Application:

git clone https://github.com/your-username/payment-transfer-system.git
cd payment-transfer-system
mvn spring-boot:run

Application will start at URL: http://localhost:8080

About

A simple and secure Spring Boot based payment transfer service that allows users to transfer funds between accounts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages