impress/config/initializers/stripe.rb
Matchu 7f8f7e624d Remove references to the Stripe gem
Rather than figure out how to upgrade the Stripe gem to be compatible with future Rails, I'd rather just delete the references, since it's currently unused.

I'm not so bold as to go in and fully trash all our donation code; I just want to ensure we're not sending people down broken codepaths, and that if they reach them, the error messages are clear enough.
2023-07-21 18:54:15 -07:00

27 lines
709 B
Ruby

# TODO: Upgrade Stripe to be usable again, or remove references altogether
Rails.configuration.stripe = {
:publishable_key => "REMOVED:STRIPE_PUBLISHABLE_KEY",
:secret_key => "REMOVED:STRIPE_SECRET_KEY"
}
# Stripe.api_key = Rails.configuration.stripe[:secret_key]
# Some stub methods for our Stripe calls, to give clearer error messages (but
# those code paths shouldn't be accessible by normal users rn anyway).
module Stripe
class Customer
def self.create(*args)
raise NotImplementedError, "TODO: Reinstall Stripe"
end
end
class Card
def self.create(*args)
raise NotImplementedError, "TODO: Reinstall Stripe"
end
end
class CardError < Exception
end
end