Plans, subscriptions
* Plans controller * Subscription controller * Clean admin controller * Ember Plans route * Index page * New Plans * Translations
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module DiscoursePatrons
|
||||
class PlansController < ::Admin::AdminController
|
||||
def index
|
||||
head 204
|
||||
end
|
||||
|
||||
def show
|
||||
head 204
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -3,7 +3,11 @@
|
||||
module DiscoursePatrons
|
||||
class SubscriptionsController < ::Admin::AdminController
|
||||
def index
|
||||
head 200
|
||||
::Stripe.api_key = SiteSetting.discourse_patrons_secret_key
|
||||
|
||||
subscriptions = ::Stripe::Subscription.list
|
||||
|
||||
subscriptions.to_json
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,10 +8,6 @@ module DiscoursePatrons
|
||||
render_serialized(payments, PaymentSerializer)
|
||||
end
|
||||
|
||||
def subscriptions
|
||||
head 200
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def payments_order
|
||||
|
||||
Reference in New Issue
Block a user