Skip to content

alaniemieckota/PaymentGateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payment Gateway

This is a demo approach to implement PaymentGateway

Build & Run

Prerequisites

When .net core 6 is installed you can execute:

  1. open terminal and navigate where PaymentGateway.sln file is located
  2. to build:
dotnet build
  1. to run test
dotnet test
  1. to start service
dotnet run --project PaymentGateway/PaymentGateway.csproj

open in browser: http://localhost:5089/swagger/index.html so you can manually interact with the API

Assumptions

  • Storage is in memory (for real purposes I would go for Postgresql)
  • Only part of the code is covered with tests, as this is only for demo purposes
  • Request/Response logs are collected by .net core middleware acitaved by .AddHttpLogging
  • Validations happens thanks to FluentValidation
  • Logic is delegated from controllers to handlers which are invoked by MediatR
  • Authentication is done by dummy approch to recognize a token from header (which can be extended in any direction)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published