It exposes API's for :
-
Get Wallet Balance
-
Deposit to wallet (with and without promotional code)
-
Withdraw from wallet
-
Get wallet Mini-statement.
-
Validate Promotional Code.
-
List all registered accounts. (Admin)
-
List all transaction history (Paginated).
For now, creation of wallet is handled through admin.
-
Python==3.7.6
-
Django==2.2.3
-
django-fsm==2.6.1
-
django-fsm-admin==1.2.4
-
djangorestframework==3.10.0
-
gunicorn==19.9.0
-
pytz==2019.1
-
sqlparse==0.3.0
Uses SqLite3 database. Can be extended easily to use any database.
pip3 install -r requirements.txt
python3 manage.py migrate
python3 manage.py runserver
Server would be available at http://127.0.0.1:8000/
python3 manage.py test
A demo is hosted on micro Amazon EC2 instance.