Skip to content

hashinclude72/paytm_django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paytm Payments Gateway on Django 2.1.7 (Python 3)

Paytm

Paytm payments Gateway example.

Forked from here: paytm-django

Quick Start

  • First open your terminal and clone the project
git clone https://github.com/jaswal72/paytm_django.git
  • Open Project directory
  • Now install the requirements
pip install -r requirements.txt
Django==2.1.7
pkg-resources==0.0.0
pycryptodome==3.8.0
pytz==2018.9
  • Now go to payments ->settings.py and enter your credentials
PAYTM_MERCHANT_KEY = '' # < your production KEY >
PAYTM_MERCHANT_ID = '' # < your production ID >
PAYTM_WEBSITE = 'DEFAULT'
PAYTM_URL = 'https://securegw.paytm.in/theia/processTransaction'
  • Staging Credentials
PAYTM_MERCHANT_KEY = 'GvYRwo%@Vl2Ml19y' # < your staging key >
PAYTM_MERCHANT_ID = 'BiDzIl44175596745392' # < your staging ID >
PAYTM_WEBSITE = 'WEBSTAGING'
PAYTM_URL = 'https://securegw-stage.paytm.in/theia/processTransaction'
  • Make Migrations
python manage.py makemigrations
  • Migrate paytm app for transactions details
python manage.py migrate
  • 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/
    • Click Paytm Pay button to start payment

This should redirect you to Paytm Page. Test Credentials to use for login:

Card:
Card Number : Any Visa or Master Card
Expiration Month & Year : Any Future month and Year
CVV : 123
OTP : 123123

Wallet:
Mobile Number : 7777777777
Password : Paytm12345
OTP: 489871

Net Banking:
Bank : Andhra Bank
User : test
Password : test

Paytm reference Documentation:

For any problem raise an issue or contact me at:

shubham__jaswal@hotmail.com