pay/server.go
func NewServer(conf *Config, logger log.Logger, db *reform.DB) *Server {
	s := &Server{
		Server: srv.NewServer(conf.Config),
		logger: logger.Add("type", "pay.Server"),
		db:     db,
	}

	s.HandleFunc(payPath,
		s.RequireHTTPMethods(s.logger, s.handlePay, http.MethodPost))

	return s
}
func NewServer(conf *Config, logger log.Logger, db *reform.DB) *Server {
	s := &Server{
		Server: srv.NewServer(conf.Config),
		logger: logger.Add("type", "pay.Server"),
		db:     db,
	}

	s.HandleFunc(payPath,
		s.RequireHTTPMethods(s.logger, s.handlePay, http.MethodPost))

	return s
}
// NewServer creates a new pay server.