itsnikhil / paytm-django

paytm payment gateway example https://www.youtube.com/watch?v=EhWAZ4Sy3HE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paytm-Python-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/itsnikhil/paytm-django.git
  • Now create a virtual environment
virtualenv paytm
  • Now activate the virtual environment
(Linux/ MacOS)
source paytm/bin/activate

(Windows)
paytm\Scripts\activate
  • Now enter into the project folder
cd payments/
  • 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>"

*Staging Credentials

PAYTM_MERCHANT_KEY = "<YOUR-PAYTM-STAGING-MERCHANT-KEY>"
PAYTM_MERCHANT_ID = "<YOUR-PAYTM-STAGING-MERCHANT-ID>"

*Make Migrations

python manage.py makemigrations

*Migrate paytm app for transactions details

python manage.py migrate

*Create Super user

python manage.py createsuperuser
python manage.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 https://www.youtube.com/watch?v=EhWAZ4Sy3HE


Languages

Language:Python 78.0%Language:HTML 22.0%