impress/config/initializers/stripe.rb

28 lines
709 B
Ruby
Raw Permalink Normal View History

# TODO: Upgrade Stripe to be usable again, or remove references altogether
2014-09-09 19:06:38 -07:00
Rails.configuration.stripe = {
:publishable_key => "REMOVED:STRIPE_PUBLISHABLE_KEY",
:secret_key => "REMOVED:STRIPE_SECRET_KEY"
2014-09-09 19:06:38 -07:00
}
# 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