Class: PaymentCheckerWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Job
Defined in:
app/workers/payment_checker_worker.rb

Overview

Sidekiq worker: payment checker.

Runs every 8 hours to keep credit-card and PayPal payment state in
sync with the upstream gateways (cancel, capture-on-success, expire,
reauthorize). Overcharged-invoice detection and the per-event email
alerts that used to fire from this worker now ship via the nightly
Payment::DailyIssuesDigestWorker so accounting receives one
consolidated digest instead of a stream of one-offs.

Instance Method Summary collapse

Instance Method Details

#performObject



16
17
18
# File 'app/workers/payment_checker_worker.rb', line 16

def perform
  Order.in_progress.each(&:check_payments_status)
end