Skip to content
Snippets Groups Projects
Commit 966f2d45 authored by b2-wilton's avatar b2-wilton
Browse files

Merge branch 'main' into 'brodybranch'

# Conflicts:
#   myproject/myapp/payments.py
#   myproject/myapp/urls.py
parents 11d0e94f 6d6097c1
No related branches found
No related tags found
1 merge request!27Minor fixes from merge problems
...@@ -46,7 +46,6 @@ def create_payment(request): ...@@ -46,7 +46,6 @@ def create_payment(request):
}] }]
}) })
# Successfully communicated with API # Successfully communicated with API
if payment.create(): if payment.create():
print("Payment created successfully!") print("Payment created successfully!")
......
from django.urls import path from django.urls import path
from .views import InstrumentDetectionView, index, users, maintenance, handler404, handler500, terms_conditions, privacy_policy, handling_music_file, pricing, generate_pdf, admin_table from .views import InstrumentDetectionView, index, users, maintenance, handler404, handler500, terms_conditions, privacy_policy, handling_music_file, pricing, generate_pdf, admin_table
from .payments import create_payment, execute_payment, payment_cancelled, payment_success from .payments import create_payment, execute_payment, payment_cancelled, payment_success
from django.contrib.auth import views as auth_views from django.contrib.auth import views as auth_views
...@@ -29,6 +27,10 @@ urlpatterns = [ ...@@ -29,6 +27,10 @@ urlpatterns = [
path('password_change/', auth_views.PasswordChangeView.as_view(template_name='password_change_form.html'), name='password_change'), path('password_change/', auth_views.PasswordChangeView.as_view(template_name='password_change_form.html'), name='password_change'),
path('password_change/done/', auth_views.PasswordChangeDoneView.as_view(template_name='password_change_done.html'), name='password_change_done'), path('password_change/done/', auth_views.PasswordChangeDoneView.as_view(template_name='password_change_done.html'), name='password_change_done'),
# path('user_logout/', auth_views.LogoutView.as_view(next_page='index'), name='user_logout'), # path('user_logout/', auth_views.LogoutView.as_view(next_page='index'), name='user_logout'),
path('payment/create/', create_payment, name='create_payment'),
path('payment/execute/', execute_payment, name='execute_payment'),
path('payment/cancel/', payment_cancelled, name='payment_cancelled'),
path('payment_success/', payment_success, name='success'),
# Authentication # Authentication
path('login/', CustomLoginView.as_view(), name='login'), path('login/', CustomLoginView.as_view(), name='login'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment