mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* 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
21 lines
388 B
Go
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,
|
|
}
|
|
}
|