#!/usr/bin/env ruby # Create a mock controller to test the StripeConcern class TestController include StripeConcern def self.name "TestController" end end # Test the StripeConcern methods controller = TestController.new puts "Testing StripeConcern..." puts "stripe_configured? method exists: #{controller.respond_to?(:stripe_configured?)}" puts "stripe_configured? result: #{controller.stripe_configured?}" # Check the Rails configuration directly puts "Rails.application.config.stripe: #{Rails.application.config.stripe}" puts "Secret key present?: #{Rails.application.config.stripe[:secret_key].present?}"