Files
CrimsonandGitHub 06aae5801a fix(debug): hide dummypay from configs response when not in debug mode (#316)
* fix(debug): hide dummypay connector from configs list unless in debug mode

* Set debug flag to true in integratio test so we can see Dummypay configuration
2025-02-06 15:00:14 +01:00

21 lines
388 B
Go

package services
import (
"github.com/formancehq/payments/internal/connectors/engine"
"github.com/formancehq/payments/internal/storage"
)
type Service struct {
storage storage.Storage
engine engine.Engine
debug bool
}
func New(storage storage.Storage, engine engine.Engine, debug bool) *Service {
return &Service{
storage: storage,
engine: engine,
debug: debug,
}
}