Sha256: 76af60d0aa316a3618ca24c4de9f8992e0fadd9ea9d0637a8c345c2cd34adf44

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

module Workarea
  class Payment
    class Capture
      class GiftCard
        include OperationImplementation
        include GiftCardOperation

        def complete!
          response = gateway.capture(transaction.amount.cents, tender)

          transaction.response = ActiveMerchant::Billing::Response.new(
            response.success?,
            response.message
          )
        end

        def cancel!
          # noop, nothing to cancel
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-gift_cards-4.0.3 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-4.0.2 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-4.0.1 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-4.0.0 app/models/workarea/payment/capture/gift_card.rb
workarea-gift_cards-4.0.0.beta.1 app/models/workarea/payment/capture/gift_card.rb