module Pay

A subscription is canceled.

A subscription successfully moves to the next billing cycle. This will also occur when either a new transaction is created mid-cycle due to proration on an upgrade or a billing cycle is skipped due to the presence of a negative balance that covers the cost of the subscription.

A subscription successfully moves to the next billing cycle. This will also occur when either a new transaction is created mid-cycle due to proration on an upgrade or a billing cycle is skipped due to the presence of a negative balance that covers the cost of the subscription.

A subscription reaches the specified number of billing cycles and expires.

A subscription's trial period ends.

A subscription's first authorized transaction is created, or a successful transaction moves a subscription from the Past Due status to the Active status. Subscriptions with trial periods will not trigger this notification when they move from the trial period into the first billing cycle.

A subscription has moved from the Active status to the Past Due status. This will only be triggered when the initial transaction in a billing cycle is declined. Once the status moves to past due, it will not be triggered again in that billing cycle.

Constants

VERSION

Public Class Methods

receipts_supported?() click to toggle source
# File lib/pay.rb, line 58
def self.receipts_supported?
  charge_model.respond_to?(:receipt) &&
    application_name.present? &&
    business_name &&
    business_address &&
    support_email
end
setup() { |self| ... } click to toggle source
# File lib/pay.rb, line 54
def self.setup
  yield self
end