1
0
mirror of synced 2026-08-05 14:47:03 +00:00

Plans, subscriptions

* Plans controller
* Subscription controller
* Clean admin controller
* Ember Plans route
* Index page
* New Plans
* Translations
This commit is contained in:
Rimian Perkins
2019-09-24 16:04:42 +10:00
parent dfef3c49cf
commit 0d82bcf37e
14 changed files with 47 additions and 21 deletions
+13
View File
@@ -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
-4
View File
@@ -8,10 +8,6 @@ module DiscoursePatrons
render_serialized(payments, PaymentSerializer)
end
def subscriptions
head 200
end
private
def payments_order