module WebpayRails
  class Transaction
    attr_reader :token, :url

    def initialize(params)
      @token = params[:token]
      @url = params[:url]
      @valid_cert = params[:valid_cert]
    end

    def success?
      @token
    end
  end
end

module WebpayRails
  class Transaction
    attr_reader :token, :url

    def initialize(params)
      @token = params[:token]
      @url = params[:url]
    end

    def success?
      !@token.blank?
    end
  end
end

Remove unused variable and fix success? method on Transaction
Remove unused variable and fix success? method on Transaction
