#!/usr/bin/env ruby # Debug script to check environment variables and Rails config puts "=== Environment Variables ===" puts "STRIPE_PUBLISHABLE_KEY: #{ENV['STRIPE_PUBLISHABLE_KEY'] ? 'SET' : 'NOT SET'}" puts "STRIPE_SECRET_KEY: #{ENV['STRIPE_SECRET_KEY'] ? 'SET' : 'NOT SET'}" puts "STRIPE_WEBHOOK_SECRET: #{ENV['STRIPE_WEBHOOK_SECRET'] ? 'SET' : 'NOT SET'}" puts # Load Rails environment require_relative '../config/environment' puts "=== Rails Configuration ===" puts "Rails.application.config.stripe: #{Rails.application.config.stripe.inspect}" puts "Secret key present: #{Rails.application.config.stripe[:secret_key].present?}" puts "Publishable key present: #{Rails.application.config.stripe[:publishable_key].present?}"