mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 14:55:15 +08:00
16 lines
390 B
Ruby
Vendored
16 lines
390 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module DiscourseSubscriptions
|
|
module Stripe
|
|
extend ActiveSupport::Concern
|
|
|
|
def set_api_key
|
|
::Stripe.api_key = SiteSetting.discourse_subscriptions_secret_key
|
|
end
|
|
|
|
def is_stripe_configured?
|
|
SiteSetting.discourse_subscriptions_public_key.present? &&
|
|
SiteSetting.discourse_subscriptions_secret_key.present?
|
|
end
|
|
end
|
|
end
|