app/models/payment_orders/every_pay.rb
# Perform necessary checks and mark the invoice as paid
Perform necessary checks and mark the invoice as paid
Perform necessary checks and mark the invoice as paid
def mark_invoice_as_paid
      return unless settled_payment? && valid_response?
      paid!
      time = Time.strptime(response['timestamp'], '%s')
      invoice.mark_as_paid_at(time)
    end
def mark_invoice_as_paid return unless settled_payment? && valid_response? paid! time = Time . strptime ( response [ 'timestamp' ] , '%s' ) invoice . mark_as_paid_at ( time ) end
Perform necessary checks and mark the invoice as paid
Perform necessary checks and mark the invoice as paid