Files
easystream-main/f_modules/m_frontend/m_donations/config.rainforest.php
SamiAhmed7777 0b7e2d0a5b feat: Add comprehensive documentation suite and reorganize project structure
- Created complete documentation in docs/ directory
- Added PROJECT_OVERVIEW.md with feature highlights and getting started guide
- Added ARCHITECTURE.md with system design and technical details
- Added SECURITY.md with comprehensive security implementation guide
- Added DEVELOPMENT.md with development workflows and best practices
- Added DEPLOYMENT.md with production deployment instructions
- Added API.md with complete REST API documentation
- Added CONTRIBUTING.md with contribution guidelines
- Added CHANGELOG.md with version history and migration notes
- Reorganized all documentation files into docs/ directory for better organization
- Updated README.md with proper documentation links and quick navigation
- Enhanced project structure with professional documentation standards
2025-10-21 00:39:45 -07:00

74 lines
2.7 KiB
PHP

<?php
/*******************************************************************************************************************
| Rainforest Pay Configuration for EasyStream
| Integration with Rainforest Pay payment gateway
|*******************************************************************************************************************/
return [
'rainforest' => [
// API Configuration
'api_key' => getenv('RAINFOREST_API_KEY') ?: 'your_api_key_here',
'secret_key' => getenv('RAINFOREST_SECRET_KEY') ?: 'your_secret_key_here',
'merchant_id' => getenv('RAINFOREST_MERCHANT_ID') ?: 'your_merchant_id_here',
// Environment Settings
'environment' => getenv('RAINFOREST_ENVIRONMENT') ?: 'sandbox', // 'sandbox' or 'production'
'api_base_url' => [
'sandbox' => 'https://api-sandbox.rainforestpay.com/v1',
'production' => 'https://api.rainforestpay.com/v1'
],
// Currency and Limits
'currency' => 'USD',
'min_donation' => 1.00,
'max_donation' => 10000.00,
// Supported Payment Methods
'payment_methods' => [
'card' => true, // Credit/Debit Cards
'bank_transfer' => true, // Bank Transfers
'mobile_money' => true, // Mobile Money (MTN, Airtel, etc.)
'crypto' => false, // Cryptocurrency (if supported)
'wallet' => true // Digital Wallets
],
// Webhook Configuration
'webhook_url' => getenv('RAINFOREST_WEBHOOK_URL') ?: 'https://yourdomain.com/donations/webhook',
'webhook_secret' => getenv('RAINFOREST_WEBHOOK_SECRET') ?: 'your_webhook_secret_here',
// Transaction Settings
'auto_capture' => true,
'timeout' => 300, // 5 minutes
// Fee Configuration
'platform_fee_percentage' => 2.5, // Platform fee percentage
'platform_fee_fixed' => 0.30, // Fixed platform fee
// Payout Settings
'min_payout' => 10.00,
'payout_schedule' => 'weekly', // 'daily', 'weekly', 'monthly'
'payout_fee_percentage' => 1.0,
'payout_fee_fixed' => 0.25
],
// Streamer Configuration
'streamer' => [
'min_balance' => 10.00,
'payout_fee' => 2.5, // Percentage
'payout_fee_fixed' => 0.50,
'auto_payout' => false,
'payout_threshold' => 100.00
],
// Security Settings
'security' => [
'encrypt_data' => true,
'log_transactions' => true,
'fraud_detection' => true,
'rate_limiting' => [
'max_attempts' => 5,
'time_window' => 3600 // 1 hour
]
]
];
?>