gab-social/app/controllers/settings/billing/transactions_controller.rb

18 lines
441 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
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