Class: Pay::Braintree::Webhooks::SubscriptionCanceled

Inherits:
Object
  • Object
show all
Defined in:
lib/pay/braintree/webhooks/subscription_canceled.rb

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



7
8
9
10
11
12
# File 'lib/pay/braintree/webhooks/subscription_canceled.rb', line 7

def call(event)
  subscription = event.subscription
  return if subscription.nil?

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