Files
aperonight/bin/test_stripe_config.rb
kbe 48547f3aad feat: Implement complete ticket purchasing flow with new TicketsController │
│
- Create new TicketsController with actions for name collection, creation, and checkout                                                                                                                                                                   │
- Add dedicated ticket views (new.html.erb, checkout.html.erb, show.html.erb)                                                                                                                                                                             │
- Update ticket_selection_controller.js to handle form submission via AJAX                                                                                                                                                                                │
- Add store_cart endpoint in EventsController for session-based cart management                                                                                                                                                                           │
- Update routes to support new ticket flow: /tickets/new, /create, /checkout                                                                                                                                                                              │
- Fix attribute name consistency across views (title→name, starts_at→start_time)                                                                                                                                                                          │
- Add Stripe checkout integration with proper error handling                                                                                                                                                                                              │
- Remove deprecated collect_names flow in favor of streamlined approach                                                                                                                                                                                   │
                                                                                                                                                                                                                                                          │
The flow is now: Event selection → AJAX cart storage → Name collection → Checkout → Payment
2025-08-30 20:01:59 +02:00

15 lines
756 B
Ruby
Executable File

#!/usr/bin/env ruby
# Test Stripe configuration
puts "Testing Stripe configuration..."
puts "STRIPE_PUBLISHABLE_KEY: #{ENV['STRIPE_PUBLISHABLE_KEY']}"
puts "STRIPE_SECRET_KEY: #{ENV['STRIPE_SECRET_KEY']}"
puts "STRIPE_WEBHOOK_SECRET: #{ENV['STRIPE_WEBHOOK_SECRET']}"
# Check if Rails application can access the config
puts "\nRails config check:"
puts "Rails.application.config.stripe[:publishable_key]: #{Rails.application.config.stripe[:publishable_key]}"
puts "Rails.application.config.stripe[:secret_key]: #{Rails.application.config.stripe[:secret_key]}"
puts "Rails.application.config.stripe[:signing_secret]: #{Rails.application.config.stripe[:signing_secret]}"
puts "\nStripe configured?: #{Rails.application.config.stripe[:secret_key].present?}"