Class: Workarea::Payment::Capture::GiftCard

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

Instance Method Summary collapse

Instance Method Details

#cancel!Object



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

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

#complete!Object



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

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