Class: Vpago::PaymentCapturerJob

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

Instance Method Summary collapse

Instance Method Details

#perform(payment_id) ⇒ Object



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

def perform(payment_id)
  payment = Spree::Payment.find(payment_id)
  payment.capture! if payment.pending?
end