Changeset View
Changeset View
Standalone View
Standalone View
looper/urls.py
| from django.urls import path | from django.urls import path | ||||
| from .views import checkout, settings, preferred_currency | from .views import checkout, settings, preferred_currency | ||||
| app_name = 'looper' | app_name = 'looper' | ||||
| urlpatterns = [ | urlpatterns = [ | ||||
| path('checkout/<int:plan_id>', | path( | ||||
| checkout.ChooseDefaultPlanVariationView.as_view(), name='checkout_new'), | 'checkout/<int:plan_id>', | ||||
| path('checkout/<int:plan_id>/choose/<int:current_plan_variation_id>', | checkout.ChooseDefaultPlanVariationView.as_view(), | ||||
| checkout.ChoosePlanVariationView.as_view(), name='checkout_choose_plan_variation'), | name='checkout_new', | ||||
| path('checkout/<int:plan_id>/variation/<int:plan_variation_id>', | ), | ||||
| checkout.CheckoutView.as_view(), name='checkout'), | path( | ||||
| path('checkout/pay/<int:order_id>', | 'checkout/<int:plan_id>/choose/<int:current_plan_variation_id>', | ||||
| checkout.CheckoutExistingOrderView.as_view(), name='checkout_existing_order'), | checkout.ChoosePlanVariationView.as_view(), | ||||
| name='checkout_choose_plan_variation', | |||||
| ), | |||||
| path( | |||||
| 'checkout/<int:plan_id>/variation/<int:plan_variation_id>', | |||||
| checkout.CheckoutView.as_view(), | |||||
| name='checkout', | |||||
| ), | |||||
| path( | |||||
| 'checkout/pay/<int:order_id>', | |||||
| checkout.CheckoutExistingOrderView.as_view(), | |||||
| name='checkout_existing_order', | |||||
| ), | |||||
| path('checkout/done/<int:transaction_id>', checkout.DoneView.as_view(), name='checkout_done'), | path('checkout/done/<int:transaction_id>', checkout.DoneView.as_view(), name='checkout_done'), | ||||
| path('checkout/<gateway_name>/<int:pk>', | path( | ||||
| 'checkout/<gateway_name>/<int:pk>', | |||||
| checkout.TransactionlessCheckoutDoneView.as_view(), | checkout.TransactionlessCheckoutDoneView.as_view(), | ||||
| name='transactionless_checkout_done'), | name='transactionless_checkout_done', | ||||
| ), | |||||
| path('settings/billing/', settings.BillingAddressView.as_view(), name='settings_billing_info'), | path('settings/billing/', settings.BillingAddressView.as_view(), name='settings_billing_info'), | ||||
| path('settings/personal/', settings.PersonalInfoView.as_view(), name='settings_personal_info'), | path('settings/personal/', settings.PersonalInfoView.as_view(), name='settings_personal_info'), | ||||
| path('settings/billing/payment-methods/', | path( | ||||
| 'settings/billing/payment-methods/', | |||||
| settings.PaymentMethodsView.as_view(), | settings.PaymentMethodsView.as_view(), | ||||
| name='payment_methods'), | name='payment_methods', | ||||
| path('settings/billing/payment-methods/change/<int:subscription_id>', | ), | ||||
| path( | |||||
| 'settings/billing/payment-methods/change/<int:subscription_id>', | |||||
| settings.PaymentMethodChangeView.as_view(), | settings.PaymentMethodChangeView.as_view(), | ||||
| name='payment_method_change'), | name='payment_method_change', | ||||
| path('settings/billing/payment-methods/replace/<int:pk>', | ), | ||||
| path( | |||||
| 'settings/billing/payment-methods/replace/<int:pk>', | |||||
| settings.PaymentMethodReplaceView.as_view(), | settings.PaymentMethodReplaceView.as_view(), | ||||
| name='payment_method_replace'), | name='payment_method_replace', | ||||
| path('settings/billing/payment-methods/delete/<int:pk>', | ), | ||||
| path( | |||||
| 'settings/billing/payment-methods/delete/<int:pk>', | |||||
| settings.PaymentMethodDeleteView.as_view(), | settings.PaymentMethodDeleteView.as_view(), | ||||
| name='payment_method_delete'), | name='payment_method_delete', | ||||
| ), | |||||
| # Note: this URL is used hardcodedly in scripts/tutti/02_currency.js | # Note: this URL is used hardcodedly in scripts/tutti/02_currency.js | ||||
| path('preferred-currency', preferred_currency.CurrencySelectorView.as_view(), | path( | ||||
| name='preferred_currency'), | 'preferred-currency', | ||||
| preferred_currency.CurrencySelectorView.as_view(), | |||||
| name='preferred_currency', | |||||
| ), | |||||
| ] | ] | ||||