Skip to content

Commit

Permalink
Add prefix to checkout URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoonui authored and crypto-rizzo committed Nov 12, 2023
1 parent 1cea4a9 commit bed5ddd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions backend/apps/checkout/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,40 @@
views.CheckoutPageOneRedirect.as_view(),
name="checkout_one_redirect",
),

# Main checkout flow
path(
"<slug:team_slug>/<slug:event_slug>/",
"e/<slug:team_slug>/<slug:event_slug>/",
views.CheckoutPageOne.as_view(),
name="checkout_one",
),
re_path(
r"(?P<team_slug>[-\w]+)/(?P<event_slug>[-\w]+)/(?P<checkout_type>free|fiat|crypto|nft)/",
r"e/(?P<team_slug>[-\w]+)/(?P<event_slug>[-\w]+)/(?P<checkout_type>free|fiat|crypto|nft)/",
views.CheckoutPageOne.as_view(),
name="checkout_one",
),
path(
"<slug:team_slug>/<slug:event_slug>/checkout/<uuid:checkout_session_public_id>/",
"e/<slug:team_slug>/<slug:event_slug>/checkout/<uuid:checkout_session_public_id>/",
views.CheckoutPageTwo.as_view(),
name="checkout_two",
),
path(
"<slug:team_slug>/<slug:event_slug>/checkout-fiat/<uuid:checkout_session_public_id>/",
"e/<slug:team_slug>/<slug:event_slug>/checkout-fiat/<uuid:checkout_session_public_id>/",
views.CheckoutFiat.as_view(),
name="checkout_fiat",
),
path(
"<slug:team_slug>/<slug:event_slug>/stripe-cancel/<uuid:checkout_session_public_id>/<str:token>/",
"e/<slug:team_slug>/<slug:event_slug>/stripe-cancel/<uuid:checkout_session_public_id>/<str:token>/",
views.StripeCheckoutCancel.as_view(),
name="stripe_checkout_cancel",
),
path(
"<slug:team_slug>/<slug:event_slug>/stripe-success/<uuid:checkout_session_public_id>/<str:token>/",
"e/<slug:team_slug>/<slug:event_slug>/stripe-success/<uuid:checkout_session_public_id>/<str:token>/",
views.StripeCheckoutSuccess.as_view(),
name="stripe_checkout_success",
),
path(
"<slug:team_slug>/<slug:event_slug>/success/<uuid:checkout_session_public_id>/",
"e/<slug:team_slug>/<slug:event_slug>/success/<uuid:checkout_session_public_id>/",
views.CheckoutPageSuccess.as_view(),
name="checkout_success",
),
Expand Down

0 comments on commit bed5ddd

Please sign in to comment.