Sha256: 2d316d7e1b255c1f019752ba714cfad673912fb5aa65ae459c5d5764437ffdf1

Contents?: true

Size: 547 Bytes

Versions: 33

Compression:

Stored size: 547 Bytes

Contents

# 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.

module Pay
  module Braintree
    module Webhooks
      class SubscriptionWentPastDue
        def call(event)
          subscription = event.subscription
          return if subscription.nil?

          Pay::Braintree::Subscription.sync(subscription.id)
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
pay-8.3.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.2.2 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.2.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.2.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.1.3 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.1.2 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.1.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.1.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-8.0.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-7.3.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-7.2.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-7.1.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-7.1.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-7.0.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-6.8.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-6.8.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-6.7.2 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-6.7.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-6.7.0 lib/pay/braintree/webhooks/subscription_went_past_due.rb
pay-6.6.1 lib/pay/braintree/webhooks/subscription_went_past_due.rb