remove create_trial in BillingSubscriptionsController
This commit is contained in:
parent
e3cc67423f
commit
d0c9e12ed0
2 changed files with 0 additions and 10 deletions
|
@ -6,15 +6,6 @@ class BillingSubscriptionsController < ApplicationController
|
|||
|
||||
before_action :authenticate_nonprofit_admin!
|
||||
|
||||
def create_trial
|
||||
render JsonResp.new(params) do |_params|
|
||||
requires(:nonprofit_id).as_int
|
||||
requires(:stripe_plan_id).as_string
|
||||
end.when_valid do |params|
|
||||
InsertBillingSubscriptions.trial(params[:nonprofit_id], params[:stripe_plan_id])
|
||||
end
|
||||
end
|
||||
|
||||
def create
|
||||
@nonprofit ||= Nonprofit.find(params[:nonprofit_id])
|
||||
@subscription = BillingSubscription.create_with_stripe(@nonprofit, params[:billing_subscription])
|
||||
|
|
|
@ -150,7 +150,6 @@ Rails.application.routes.draw do
|
|||
|
||||
resource(:billing_subscription, only: [:create]) do
|
||||
post(:cancel)
|
||||
post(:create_trial, on: :member)
|
||||
get(:cancellation)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue