добавлен биллинг и тарифы

добавлена интеграция с юкасса
This commit is contained in:
2025-12-24 09:06:19 +03:00
parent b4ce819931
commit 5f35d7a75f
15 changed files with 745 additions and 212 deletions

View File

@@ -15,6 +15,7 @@ type Config struct {
OCR OCRConfig
Telegram TelegramConfig
Security SecurityConfig
YooKassa YooKassaConfig `mapstructure:"yookassa"`
}
type AppConfig struct {
@@ -54,6 +55,11 @@ type SecurityConfig struct {
SecretKey string `mapstructure:"secret_key"` // 32 bytes for AES-256
}
type YooKassaConfig struct {
ShopID string `mapstructure:"shop_id"`
SecretKey string `mapstructure:"secret_key"`
}
// LoadConfig загружает конфигурацию из файла и переменных окружения
func LoadConfig(path string) (*Config, error) {
viper.AddConfigPath(path)