<?php
// PayPal Gateway Configuration

// Set to true for sandbox (testing), false for production
define('PAYPAL_SANDBOX', true);

// PayPal URLs
if (PAYPAL_SANDBOX) {
    define('PAYPAL_URL', 'https://www.sandbox.paypal.com/cgi-bin/webscr');
    define('PAYPAL_API_URL', 'https://api-3t.sandbox.paypal.com/nvp');
} else {
    define('PAYPAL_URL', 'https://www.paypal.com/cgi-bin/webscr');
    define('PAYPAL_API_URL', 'https://api-3t.paypal.com/nvp');
}

// Your PayPal Sandbox account email (for testing)
// Replace with your actual sandbox business account email
define('PAYPAL_SANDBOX_EMAIL', 'sb-test@business.example.com');

// Your PayPal Production account email (for live transactions)
// Replace with your actual PayPal business email
define('PAYPAL_PRODUCTION_EMAIL', 'your-business@email.com');

// Get the appropriate email based on mode
define('PAYPAL_BUSINESS_EMAIL', PAYPAL_SANDBOX ? PAYPAL_SANDBOX_EMAIL : PAYPAL_PRODUCTION_EMAIL);
?>
