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