Spaces:
Running
Running
File size: 925 Bytes
e31284f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?php
/**
* 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
|