Skip to content

cmaliwal/paytm-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paytm-Django (For python 3)

Paytm-Payment Gateway Example On Python-Django

  • First clone the project, open your terminal and enter the command
git clone https://github.com/cmaliwal/paytm-django.git
  • Now create a virtual environment
virtualenv -p python3.6 paytm
  • Now activate the virtual environment
source paytm/bin/activate
  • Now enter into the project folder
cd paytm-django/
  • Now install the requirements
pip install -r requirements.txt
  • Now go to payments ->settings.py and enter your credentials
PAYTM_MERCHANT_KEY=  "<YOUR-PAYTM-MERCHANT-KEY>"
PAYTM_MERCHANT_ID = "<YOUR-PAYTM-MERCHANT-ID>"
PAYTM_CALLBACK_URL = "http://127.0.0.1:8000/paytm/response/"

*Staging Credentials

PAYTM_MERCHANT_KEY = "bKMfNxPPf_QdZppa"
PAYTM_MERCHANT_ID = "DIY12386817555501617"
PAYTM_WEBSITE = 'WEBSTAGING'

*Make Migrations

python manage.py makemigrations

*Migrate paytm app for transactions details

python manage.py migrate paytm

*Create Super user

python manage.py createsuperuser
python manange.py runserver

*Go to

1) http://localhost:8000/admin
    - Log in using superuser credentials
2) http://localhost:8000/paytm

This should redirect you to Paytm Page.
Test Credentials to use for login:
Mobile Number – 7777777777
Password – Paytm12345
OTP – 489871

Stuff used to make this:

About

Paytm-Payment Gateway Example On Python-Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published