Class: SpreeCmCommissioner::PaymentIncompleteNotificationJob

Inherits:
ApplicationUniqueJob show all
Defined in:
app/jobs/spree_cm_commissioner/payment_incomplete_notification_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'app/jobs/spree_cm_commissioner/payment_incomplete_notification_job.rb', line 5

def perform(options = {})
  order = Spree::Order.find_by(id: options[:order_id])
  return unless order

  SpreeCmCommissioner::PaymentIncompleteNotificationSender.call(notificable: order)
end