Sha256: 795cbe5ab5d9ac7352030fbd2be9ea0252ad424d9d165c9ca9d1c404cdbfbb3a

Contents?: true

Size: 596 Bytes

Versions: 6

Compression:

Stored size: 596 Bytes

Contents

module Workarea
  class Payment
    class Capture
      class GiftCard
        include OperationImplementation

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-gift_cards-3.4.11 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-3.4.10 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-3.4.9 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-3.4.8 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-3.4.7 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-3.4.6 app/models/workarea/payment/capture/gift_card.rb