Class: Pay::PaddleClassic::Webhooks::SubscriptionCreated

Inherits:
Object
  • Object
show all
Defined in:
lib/pay/paddle_classic/webhooks/subscription_created.rb

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



5
6
7
# File 'lib/pay/paddle_classic/webhooks/subscription_created.rb', line 5

def call(event)
  Pay::PaddleClassic::Subscription.sync(event.subscription_id, object: event)
end