Sha256: 96a9bad396b9b922eddc39c6a8bbfe3eeb08143604de9eaf336221ef6665e373

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module SolidusSubscriptions
  class ProcessInstallmentJob < ApplicationJob
    queue_as { SolidusSubscriptions.configuration.processing_queue }

    def perform(installment)
      Checkout.new(installment).process
    rescue StandardError => e
      SolidusSubscriptions.configuration.processing_error_handler&.call(e, installment)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 app/jobs/solidus_subscriptions/process_installment_job.rb
solidus_subscriptions-2.0.1 app/jobs/solidus_subscriptions/process_installment_job.rb
solidus_subscriptions-2.0.0 app/jobs/solidus_subscriptions/process_installment_job.rb
solidus_subscriptions-1.1.0 app/jobs/solidus_subscriptions/process_installment_job.rb
solidus_subscriptions-1.0.1 app/jobs/solidus_subscriptions/process_installment_job.rb