Module: Moneytree

Defined in:
lib/moneytree.rb,
lib/moneytree/order.rb,
lib/moneytree/engine.rb,
lib/moneytree/account.rb,
lib/moneytree/version.rb,
app/models/moneytree/card.rb,
app/models/moneytree/refund.rb,
app/models/moneytree/payment.rb,
app/models/moneytree/transaction.rb,
app/jobs/moneytree/application_job.rb,
lib/moneytree/transaction_response.rb,
lib/moneytree/payment_provider/base.rb,
app/models/moneytree/payment_gateway.rb,
lib/moneytree/payment_provider/square.rb,
lib/moneytree/payment_provider/stripe.rb,
app/models/moneytree/application_record.rb,
app/mailers/moneytree/application_mailer.rb,
app/controllers/moneytree/application_controller.rb,
app/controllers/moneytree/oauth/square_controller.rb,
app/controllers/moneytree/oauth/stripe_controller.rb,
app/controllers/moneytree/webhooks/square_controller.rb,
app/controllers/moneytree/webhooks/stripe_controller.rb

Defined Under Namespace

Modules: Account, Oauth, Order, PaymentProvider, Webhooks Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Card, Engine, Error, Payment, PaymentGateway, Refund, Transaction, TransactionResponse

Constant Summary collapse

PSPS =
%i[stripe].freeze
VERSION =
'0.1.11'.freeze
@@enabled_psps =
PSPS
@@current_account =
:current_account
@@oauth_redirect =
'/'
@@refund_application_fee =
false

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Moneytree)

    the object that the method was called on



30
31
32
# File 'lib/moneytree.rb', line 30

def self.setup
  yield self
end