Class: SpreeAdyen::Webhooks::ProcessCancellationEventJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/spree_adyen/webhooks/process_cancellation_event_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(payload) ⇒ Object



4
5
6
7
# File 'app/jobs/spree_adyen/webhooks/process_cancellation_event_job.rb', line 4

def perform(payload)
  event = SpreeAdyen::Webhooks::Event.new(event_data: payload)
  SpreeAdyen::Webhooks::EventProcessors::CancellationEventProcessor.new(event).call
end