Class: Pay::Braintree::Webhooks::SubscriptionTrialEnded

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

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



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

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

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