Class: Vpago::PaymentProcessorJob

Inherits:
ApplicationUniqueJob show all
Defined in:
app/jobs/vpago/payment_processor_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(options) ⇒ Object



6
7
8
9
# File 'app/jobs/vpago/payment_processor_job.rb', line 6

def perform(options)
  payment = Spree::Payment.find_by(number: options[:payment_number])
  Vpago::PaymentProcessor.new(payment: payment).call
end