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.
- Checkout repository.
- Run
composer intstall
. - Execute sql files included
/docs/sql
on MySQL database. - Point your public_html to the
/web/app.php
file. - Copy sample config file
/app/config/params.php.diff
to/app/config/params.php
.- Configure database connection
- Payment gateway settings
- Define products (explained below)
- Copy sample file
/app/config/params.php.diff
to/app/config/params.php
- Define new product in
product.repository.data
section using template. Array key is aproductId
.- Upload the file under
/files
directory and point to the file infilestream.path
on yor product configuration. - Create a folder
/templates/product/productId
based onsample
replacingproductId
and customize mail contents.
- Upload the file under
Customize gateway setting in /app/config/params.php
under payment.gateway.payu
settings key.