gab-social/app/controllers/settings/billing/transactions_controller.rb
2019-07-02 03:10:25 -04:00

18 lines
441 B
Ruby

class Settings::Billing::TransactionsController < Settings::BaseController
include Authorization
layout 'admin'
before_action :authenticate_user!
def index
transaction = Transaction.new
transaction.account_id = current_account.id
transaction.amount = 5000
transaction.payment_type = :pro_3_months
transaction.provider_type = :btcpay
#transaction.save
@transactions = Transaction.where(account: current_account)
end
end