Spaces:
Running
Running
| /** | |
| * API Configuration | |
| * | |
| * Configuration settings for the Payment API | |
| */ | |
| // API Keys for authentication | |
| // Add your API keys here. Leave empty to disable API key authentication. | |
| // Example: ['key1' => 'My App', 'key2' => 'External System'] | |
| define('API_KEYS', [ | |
| // 'your-secret-api-key-here' => 'System Name', | |
| // Add more API keys as needed | |
| ]); | |
| // Enable/Disable API key authentication | |
| // Set to false for testing, true for production | |
| define('API_AUTH_ENABLED', false); | |
| // API logging | |
| define('API_LOG_ENABLED', true); | |
| define('API_LOG_FILE', __DIR__ . '/../logs/api.log'); | |
| // CORS settings (if needed for external systems) | |
| define('API_CORS_ENABLED', false); | |
| define('API_CORS_ORIGIN', '*'); // Use specific domain in production | |
| // Rate limiting (future implementation) | |
| define('API_RATE_LIMIT_ENABLED', false); | |
| define('API_RATE_LIMIT_REQUESTS', 100); // requests per minute | |