initializeTokenizationService creates and configures the tokenization service
(config *config.Configuration)
| 89 | |
| 90 | // initializeTokenizationService creates and configures the tokenization service |
| 91 | func initializeTokenizationService(config *config.Configuration) *tokenization.TokenizationService { |
| 92 | if config.TokenizationSecret == "" { |
| 93 | return tokenization.NewTokenizationService(nil) |
| 94 | } |
| 95 | |
| 96 | key := []byte(config.TokenizationSecret) |
| 97 | return tokenization.NewTokenizationService(key) |
| 98 | } |
| 99 | |
| 100 | // initializeHTTPClient creates and configures the HTTP client for webhook requests |
| 101 | func initializeHTTPClient() *http.Client { |
no test coverage detected