Files
easystream/modules/m_frontend/m_donations/config.rainforest.php
T
Krystie 092a8bc7ce refactor: organize codebase and remove redundant files
- Removed all backup/duplicate files
- Removed test files from root
- Consolidated documentation to /docs/
- Moved scripts to /scripts/
- Renamed f_* directories (removed prefix)
- Organized icons and assets
- Removed unused vendor directories
- Cleaned up redundant config files
2026-03-30 16:34: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
]
]
];
?>