feat: Checkout worflow using Stripe working.
This commit is contained in:
@@ -12,9 +12,7 @@ Rails.application.routes.draw do
|
||||
# Defines the root path route ("/")
|
||||
root "pages#home"
|
||||
|
||||
|
||||
# === Devise ===
|
||||
|
||||
# Routes for devise authentication Gem
|
||||
# Bind devise to user
|
||||
devise_for :users, path: "auth", path_names: {
|
||||
@@ -45,20 +43,13 @@ Rails.application.routes.draw do
|
||||
post "events/:slug.:id/tickets/create", to: "tickets#create", as: "ticket_create"
|
||||
get "events/:slug.:id/tickets/checkout", to: "tickets#checkout", as: "ticket_checkout"
|
||||
|
||||
# Step 2: Checkout
|
||||
# post "events/:slug.:id/checkout", to: "events#checkout", as: "event_checkout"
|
||||
# Step 3: Collect names
|
||||
# get "events/:slug.:id/names", to: "events#collect_names", as: "event_collect_names"
|
||||
# Step 4: Process names
|
||||
# post "events/:slug.:id/names", to: "events#process_names", as: "event_process_names"
|
||||
|
||||
# Payment success
|
||||
get "payments/success", to: "events#payment_success", as: "payment_success"
|
||||
# Payment routes
|
||||
get "payments/success", to: "tickets#payment_success", as: "payment_success"
|
||||
get "payments/cancel", to: "tickets#payment_cancel", as: "payment_cancel"
|
||||
|
||||
# === Tickets ===
|
||||
get "tickets/:ticket_id/download", to: "events#download_ticket", as: "download_ticket"
|
||||
|
||||
|
||||
# API routes versioning
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
@@ -68,11 +59,7 @@ Rails.application.routes.draw do
|
||||
post :store_cart
|
||||
end
|
||||
end
|
||||
# resources :bundles, only: [ :index, :show, :create, :update, :destroy ]
|
||||
|
||||
|
||||
# Additional API endpoints can be added here as needed
|
||||
# Example: search, filtering, user-specific endpoints
|
||||
# resources :ticket_types, only: [ :index, :show, :create, :update, :destroy ]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user