
<?php

// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// Safely handle session data with proper validation and sanitization
$unify_paypal_decline_message = '';
if (isset($_SESSION['paypal_decline_msg']) && !empty($_SESSION['paypal_decline_msg'])) {
    $unify_paypal_decline_message = sanitize_text_field(wp_unslash($_SESSION['paypal_decline_msg']));
}
?>
<?php if (!empty($unify_paypal_decline_message)) : ?>
<div class='woocommerce-info'><?php echo esc_html($unify_paypal_decline_message); ?></div>
<?php endif; ?>

