Sha256: 41675aca8b6f456908d69796a3f7f76e6ce12b6b0d7c7c4914d72283373e08b8

Contents?: true

Size: 392 Bytes

Versions: 11

Compression:

Stored size: 392 Bytes

Contents

class EmptyAcquirer
  def initialize(*args)
  end

  class Transaction
    def initialize(payment)
      @payment = payment
    end

    def id
      "0"
    end

    def authorize
      true
    end

    def reverse
      true
    end

    def confirm
      true
    end

    def error
      nil
    end
  end

  def transaction(payment, &block)
    yield Transaction.new(payment)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
smartkiosk-server-0.13.1 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.13 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.12.1 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.12 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.11 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.10 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.9 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.8 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.7 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.6 app/acquirers/empty_acquirer.rb
smartkiosk-server-0.11.5 app/acquirers/empty_acquirer.rb