module StripeConcern extend ActiveSupport::Concern # Check if Stripe is properly configured def stripe_configured? Rails.application.config.stripe[:secret_key].present? end # Stripe is now initialized at application startup, so this method is no longer needed # but kept for backward compatibility def initialize_stripe return false unless stripe_configured? # Stripe is already initialized at application startup Rails.logger.debug "Stripe already initialized at application startup" true end end