diff --git a/myproject/myapp/payments.py b/myproject/myapp/payments.py index be44f082d93723baa85659d5b491dcc098ff7316..65a36827e99d129aa7b961a9fb97e9d848aa40df 100644 --- a/myproject/myapp/payments.py +++ b/myproject/myapp/payments.py @@ -103,4 +103,4 @@ def payment_cancelled(request): return render(request, 'payment_cancelled.html') def payment_success(request): - return render(request,'payment_success.html') \ No newline at end of file + return render(request,'payment_success.html') diff --git a/myproject/myapp/urls.py b/myproject/myapp/urls.py index c34f38a253dccf80cf7b267441d107efbdb5c395..f7c169ca586946c0e567e5743886c6cf0d40c6c3 100644 --- a/myproject/myapp/urls.py +++ b/myproject/myapp/urls.py @@ -37,6 +37,7 @@ urlpatterns = [ path('logout/', LogoutView.as_view(), name='logout'), path('register/', RegisterView.as_view(), name='register'), path('user_logout/', auth_views.LogoutView.as_view(next_page='index'), name='user_logout'), + # Payment path('payment/create/', create_payment, name='create_payment'), path('payment/execute/', execute_payment, name='execute_payment'), path('payment/cancel/', payment_cancelled, name='payment_cancelled'),