Sha256: 218c347fcb7941ec50eedd8cf07ce9699373be7bb6e82c44f768461acdc1b1ed

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

module Freemium
  module Gateways
    class Test < Base
      attr_accessor :username, :password

      def transactions(options = {})
        options
      end

      def charge(*args)
        args
      end

      def store(*args)
        response = Freemium::Response.new(true)
        response.billing_key = Time.now.to_i.to_s
        response
      end

      def update(billing_key, *args)
        response = Freemium::Response.new(true)
        response.billing_key = billing_key
        response
      end

      def cancel(*args)
        args
      end

      def validate(*args)
        response = Freemium::Response.new(true)
        response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
freemium-ajb-0.0.4 lib/freemium/gateways/test.rb
freemium-0.0.2 lib/freemium/gateways/test.rb