Git Product home page Git Product logo

buyfileservice's Introduction

buy-file-service

About

Microservice allows to purchase products like ebooks, do the payment and generate download url.

Written in php, simple Domain, Port and Adaptrs architecture, delivered by Silex framework.

Installation

  1. Checkout repository.
  2. Run composer intstall.
  3. Execute sql files included /docs/sql on MySQL database.
  4. Point your public_html to the /web/app.php file.
  5. Copy sample config file /app/config/params.php.diff to /app/config/params.php.
    1. Configure database connection
    2. Payment gateway settings
    3. Define products (explained below)

Configuring products

  1. Copy sample file /app/config/params.php.diff to /app/config/params.php
  2. Define new product in product.repository.data section using template. Array key is a productId.
    1. Upload the file under /files directory and point to the file in filestream.path on yor product configuration.
    2. Create a folder /templates/product/productId based on sample replacing productId and customize mail contents.

Configuring payment gatway

PayU

Customize gateway setting in /app/config/params.php under payment.gateway.payu settings key.

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.