Sha256: 5bfa5e79571823ac629eee924413d27eb75c08611985b88c66933a8ac509e094

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 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)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_subscriptions-1.0.0 app/jobs/solidus_subscriptions/process_installment_job.rb
solidus_subscriptions-1.0.0.rc1 app/jobs/solidus_subscriptions/process_installment_job.rb