Forked from here: paytm-django
- 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
- Now in terminal run the server and go to https://localhost:8000/
python manange.py runserver
- Go to
- https://localhost:8000/admin
- Log in using superuser credentials
- https://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