GithubHelp home page GithubHelp logo

transactionfinder's Introduction

transactionFinder

This Repo is Rest Api For payment Transactions you can search by

  • amount Max and Min
  • provider
  • statusCode
  • currency

Installation

clone this application from [email protected]:m-abdou/transactionFinder.git

cd to transactionFinder directory

** test Cases run those commands php bin/phpunit

or can use docker

cd to transactionFinder/docker

make build make install make up

http://127.0.0.1:7070/api/payment/transaction

Documentation

we provide one end point get request with url /api/hotels

  • /api/payment/transaction -> get all transactions
  • /api/payment/transaction?provider=example get all transactions with provider
  • /api/payment/transaction?amountMin=5&amountMax=10 get transactions in this range
  • /api/payment/transaction?currency=AUD get transactions by currency
  • /api/payment/transaction?statusCode=AUD get transactions by statusCode

we can combine search criteria with multi factor

  • /api/payment/transaction?amountMin=5&amountMax=10&provider=name

Brif

This application based on php 7.1 and symfony 4.3

created by design patterns middleware concept and factory with solid principle and service oriented

  • manger responsible for execute middlewares
  • Validator layer one of middlewares responsible for checking validation and error handling
  • loader layer two of middlewares responsible for fetch all transactions data
  • Operator third middlerwares responsible for run search criteria and get result

we can scala by adding new payment transaction by

  • add new model with specific schema in model directory
  • add new service to serve new payment
  • allow factory and loader to access new payment

performance

we can enhance performance by using caching layer in loader service and save it in redis and create crone job to check new transactions

code quality

write more test cases to make sure every single unit tested and have a good coverage

transactionfinder's People

Contributors

m-abdou avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.