package utils import ( "encoding/base64" "fmt" "strings" ) func ConvertYoomoneySercetsToAuth(authType, storeID, secretKey string) string { credentials := fmt.Sprintf("%s:%s", storeID, secretKey) encoded := base64.StdEncoding.EncodeToString([]byte(credentials)) trimedAuthType := strings.TrimSpace(authType) return fmt.Sprintf("%s %s", trimedAuthType, encoded) }