Class: Vpago::PaywayV2::PaymentRequestUpdater

Inherits:
Vpago::PaymentRequestUpdater show all
Defined in:
lib/vpago/payway_v2/payment_request_updater.rb

Instance Attribute Summary

Attributes inherited from Vpago::PaymentRequestUpdater

#error_message, #payment

Instance Method Summary collapse

Methods inherited from Vpago::PaymentRequestUpdater

#ignore_on_failed?, #initialize, #success?

Constructor Details

This class inherits a constructor from Vpago::PaymentRequestUpdater

Instance Method Details

#callObject



4
5
6
7
8
9
10
11
12
# File 'lib/vpago/payway_v2/payment_request_updater.rb', line 4

def call
  return if @payment.order.paid?

  if items_eligible?
    process_payment_status
  else
    mark_items_as_ineligible
  end
end