'https://sandbox.przelewy24.pl', 'production' => 'https://secure.przelewy24.pl' ]; define('P24_BASE_URL', $p24_base_urls[P24_ENV]); // Your Application URLs // These should be full URLs accessible by P24 servers. $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $host = $_SERVER['HTTP_HOST']; define('P24_URL_RETURN', getenv('P24_URL_RETURN') ?: $protocol . $host . '/p24_return.php'); define('P24_URL_STATUS', getenv('P24_URL_STATUS') ?: $protocol . $host . '/p24_status.php');