mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
14 lines
354 B
Go
14 lines
354 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
"encoding/json"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
func (s *Service) ConnectorsInstall(ctx context.Context, provider string, config json.RawMessage) (models.ConnectorID, error) {
|
|
connectorID, err := s.engine.InstallConnector(ctx, provider, config)
|
|
return connectorID, handleEngineErrors(err)
|
|
}
|