Files
sure/app/controllers/settings/payments_controller.rb

16 lines
353 B
Ruby

class Settings::PaymentsController < ApplicationController
layout "settings"
guard_feature unless: -> { Current.family.can_manage_subscription? }
def show
@family = Current.family
@one_time_contribution_url = stripe&.payment_link_url
end
private
def stripe
@stripe ||= Provider::Registry.get_provider(:stripe)
end
end