Class: Pay::Abacatepay::Webhooks::SubscriptionRenewed
- Inherits:
-
Object
- Object
- Pay::Abacatepay::Webhooks::SubscriptionRenewed
- Defined in:
- lib/pay/abacatepay/webhooks/subscription_renewed.rb
Instance Method Summary collapse
Instance Method Details
#call(event_hash) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/pay/abacatepay/webhooks/subscription_renewed.rb', line 5 def call(event_hash) event = Pay::Abacatepay::Webhooks::Event.new(event_hash) result = Pay::Abacatepay::ProcessedWebhook.process!(event_type: event.type, event_id: event.id) do handle(event) end log_already_processed(event) if result == :already_processed end |