diff options
Diffstat (limited to 'app/jobs/solidus_subscriptions/process_installment_job.rb')
-rw-r--r-- | app/jobs/solidus_subscriptions/process_installment_job.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/jobs/solidus_subscriptions/process_installment_job.rb b/app/jobs/solidus_subscriptions/process_installment_job.rb new file mode 100644 index 0000000..127c787 --- /dev/null +++ b/app/jobs/solidus_subscriptions/process_installment_job.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module SolidusSubscriptions + class ProcessInstallmentJob < ApplicationJob + queue_as { SolidusSubscriptions.configuration.processing_queue } + + def perform(installment) + Checkout.new(installment).process + end + end +end |