Skip to content

andreynaldoni/simple-payment-php

Repository files navigation

Simple Web Payment Transaction in PHP

Table of contents:

What you have to have in your system:

What we recommend you to have in your system:

Project structure (tree):

  |php-payment/
  |--business/
  |  |--categoriaNeg.php
  |  |--clienteNeg.php
  |  |--ingredienteNeg.php
  |  |--ingredienteprodutoNeg.php
  |  |--pagSeguroNeg.php
  |  |--pedidoNeg.php
  |  |--produtoNeg.php
  |  |--produtopedidoNeg.php
  |
  |--controllers/
  |  |--cliente-controller.php
  |  |--error-controller.php
  |  |--home-controller.php
  |  |--ingrediente-controller.php
  |  |--pagseguro-controller.php
  |  |--pedido-controller.php
  |  |--produto-controller.php
  |
  |--dao/
  |  |--categoriaDAO.php
  |  |--clienteDAO.php
  |  |--ingredienteDAO.php
  |  |--ingredienteprodutoDAO.php
  |  |--pedidoDAO.php
  |  |--produtoDAO.php
  |  |--produtopedidoDAO.php
  |
  |--documents/
  |  |--prototype/
  |    |--css/
  |      |--bootstrap's.css files
  |    |--fonts/
  |      |--glyphicons icons files
  |    |--img/
  |      |--all images.jpg files
  |    |--js/
  |      |--jquery & bootstrap .js files
  |    |--confirmacao.html
  |    |--index.html
  |    |--pagamento.html
  |    |--pedido.html
  |  |--sql/
  |    |--limpeza.sql
  |    |--simplepayment.sql
  |  |--UML/
  |    |--WebMonster - Tabelas.sql
  |    |--CD - simplepayment.asta
  |    |--CD simplepayment.pdf
  |    |--cd simplepayment.png
  |    |--model simplepayment.mwb
  |    |--model simplepayment.png
  |    |--UC Produto Pedido Cliente e Pagamento.asta
  |    |--UC Simple Payment.pdf
  |
  |--models/
  |  |--categoria.php
  |  |--cliente.php
  |  |--clientepedido.php
  |  |--ingrediente.php
  |  |--ingredienteproduto.php
  |  |--pagseguro.php
  |  |--pedido.php
  |  |--produto.php
  |  |--produtopedido.php
  |
  |--public/
  |  |--css/
  |     |--bootstrap css files.css
  |  |--fonts/
  |     |--glyphicons icons files
  |  |--img/
  |     |--all images.jpg files
  |  |--js/
  |     |--bootstrap & jquery.js files
  |
  |  |--views/
  |     |--cliente/
  |        |--cadastrar.php
  |        |--index.php
  |     |--errors/
  |        |--404.php
  |     |--home/
  |        |--admin.php
  |        |--index.php
  |        |--login.php
  |        |--logout.php
  |     |--ingrediente/
  |        |--index.php
  |     |--pagseguro/
  |        |--index.php
  |     |--pedido/
  |        |--checkout.php
  |        |--index.php
  |     |--produto/
  |        |--produto.php
  |     |--footer.php
  |     |--header.php
  |     |--menu.pgp
  |
  |--.htaccess
  |--app.php
  |--config.php
  |--connection.php
  |--database.php
  |--index.php
  |--LICENSE
  |--README.MD

How to setup your environment

Navigate to htdocs folder, type this code below in your console/terminal/command prompt:

git clone https://github.com/andreynaldoni/simple-payment-php.git

Start XAMPP Service

Type in your browser http://localhost/simple-payment-php/ then Enter

What if you want to test it online?

Click here ➡️ https://php-payment.herokuapp.com/

Note:

  • This application was made as a college project with learning purpose.
  • In order to make it work, you have to register at UOL's pagseguro payment service, and put your SANDBOX (Dedicated area test) credentials at the project.

About

A simple system and API for online payment, integrated with UOL's pagseguro API, developed to a college work.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages