Class: Workarea::Payment::Capture::StoreCredit

Inherits:
Object
  • Object
show all
Includes:
OperationImplementation
Defined in:
app/models/workarea/payment/capture/store_credit.rb

Instance Method Summary collapse

Methods included from OperationImplementation

#initialize, #validate_reference!

Instance Method Details

#cancel!Object



15
16
17
18
19
20
21
# File 'app/models/workarea/payment/capture/store_credit.rb', line 15

def cancel!
  # noop, nothing to cancel
  transaction.response = ActiveMerchant::Billing::Response.new(
    true,
    I18n.t('workarea.payment.store_credit_capture')
  )
end

#complete!Object



7
8
9
10
11
12
13
# File 'app/models/workarea/payment/capture/store_credit.rb', line 7

def complete!
  # noop, authorization does the capture
  transaction.response = ActiveMerchant::Billing::Response.new(
    true,
    I18n.t('workarea.payment.store_credit_capture')
  )
end