Module: Billy

Defined in:
lib/billy.rb,
lib/billy/engine.rb,
lib/billy/errors.rb,
lib/billy/paddle.rb,
lib/billy/discord.rb,
lib/billy/version.rb,
lib/billy/currency.rb,
lib/billy/webhooks.rb,
lib/billy/attributes.rb,
app/models/billy/plan.rb,
app/models/billy/charge.rb,
lib/billy/lemon_squeezy.rb,
app/models/billy/account.rb,
app/models/billy/webhook.rb,
app/jobs/billy/discord_job.rb,
lib/billy/webhooks/delegator.rb,
app/models/billy/subscription.rb,
lib/billy/paddle/subscription.rb,
app/jobs/billy/application_job.rb,
lib/billy/webhooks/process_job.rb,
app/models/billy/payment_method.rb,
app/models/billy/application_record.rb,
app/helpers/billy/application_helper.rb,
app/mailers/billy/application_mailer.rb,
lib/billy/lemon_squeezy/subscription.rb,
app/controllers/billy/application_controller.rb,
lib/billy/paddle/webhooks/signature_verifier.rb,
lib/billy/paddle/webhooks/subscription_created.rb,
lib/billy/paddle/webhooks/subscription_updated.rb,
app/controllers/billy/webhooks/paddle_controller.rb,
lib/billy/paddle/webhooks/subscription_cancelled.rb,
lib/billy/lemon_squeezy/webhooks/signature_verifier.rb,
lib/billy/lemon_squeezy/webhooks/subscription_created.rb,
lib/billy/lemon_squeezy/webhooks/subscription_updated.rb,
app/controllers/billy/webhooks/lemon_squeezy_controller.rb,
lib/billy/paddle/webhooks/subscription_payment_refunded.rb,
lib/billy/paddle/webhooks/subscription_payment_succeeded.rb,
lib/billy/lemon_squeezy/webhooks/subscription_payment_success.rb

Defined Under Namespace

Modules: ApplicationHelper, Attributes, Discord, Errors, LemonSqueezy, Paddle, Webhooks Classes: Account, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Charge, Currency, DiscordJob, Engine, PaymentMethod, Plan, Subscription, Webhook

Constant Summary collapse

VERSION =
"1.5.1"
@@app_name =
ENV["APP_NAME"]
@@app_url =
ENV["APP_URL"]
@@discord_path =
ENV["DISCORD_PATH"]
@@billing_class =
ENV["BILLING_CLASS"] || "col-8 offset-2"
@@paddle_vendor_id =
ENV["PADDLE_VENDOR_ID"]
@@paddle_vendor_auth_code =
ENV["PADDLE_VENDOR_AUTH_CODE"]
@@paddle_environment =
ENV["PADDLE_ENVIRONMENT"] || "sandbox"
@@paddle_public_key_file =
ENV["PADDLE_PUBLIC_KEY_FILE"]
@@lemon_squeezy_site =
ENV["LEMON_SQUEEZY_SITE"]
@@lemon_squeezy_signing =
ENV["LEMON_SQUEEZY_SIGNING"]
@@lemon_squeezy_access_token =
ENV["LEMON_SQUEEZY_ACCESS_TOKEN"]

Class Method Summary collapse

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Billy)

    the object that the method was called on



51
52
53
# File 'lib/billy.rb', line 51

def self.setup
  yield self
end