mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
remove useless method
This commit is contained in:
parent
b46ee9177c
commit
fa64fd7a2e
@ -142,18 +142,6 @@ class Subscription < ActiveRecord::Base
|
||||
end
|
||||
|
||||
private
|
||||
def update_payment
|
||||
if stp_subscription_id.present?
|
||||
stp_subscription = stripe_subscription
|
||||
stp_subscription.plan = plan.stp_plan_id
|
||||
stp_subscription.prorate = false
|
||||
stp_subscription.save
|
||||
else
|
||||
# TODO: implement stripe payment if member update subscription
|
||||
# must have a card
|
||||
end
|
||||
end
|
||||
|
||||
def notify_member_subscribed_plan
|
||||
NotificationCenter.call type: 'notify_member_subscribed_plan',
|
||||
receiver: user,
|
||||
|
Loading…
x
Reference in New Issue
Block a user