├── pay2me ├── __init__.py ├── wsgi.py ├── urls.py └── settings.py ├── payments ├── __init__.py ├── migrations │ ├── __init__.py │ └── 0001_initial.py ├── admin.py ├── tests.py ├── apps.py ├── urls.py ├── templates │ └── payments │ │ ├── pay.html │ │ ├── callback.html │ │ └── redirect.html ├── models.py ├── views.py └── paytm.py ├── .gitignore ├── templates └── registration │ └── login.html └── manage.py /pay2me/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payments/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payments/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /payments/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /payments/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | env/ 2 | venv/ 3 | .vscode/ 4 | .idea/ 5 | *.sqlite3 6 | __pycache__/ 7 | *.pyc 8 | 9 | -------------------------------------------------------------------------------- /payments/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class PaymentsConfig(AppConfig): 5 | name = 'payments' 6 | -------------------------------------------------------------------------------- /payments/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from .views import initiate_payment, callback 3 | 4 | urlpatterns = [ 5 | path('pay/', initiate_payment, name='pay'), 6 | path('callback/', callback, name='callback'), 7 | ] 8 | -------------------------------------------------------------------------------- /templates/registration/login.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |