<?php
if (! defined('ABSPATH')) {
    exit;
}

$order_status = wc_get_order($order)->get_status();

// Define message based on order status
switch ($order_status) {
    case 'awaiting-analysis':
        $message = __('Your credit card payment is under analysis. We will notify you as soon as it is confirmed.', 'wc-koin-official');
        break;
    case 'failed':
        $message = __('Your credit card payment failed. Please try again', 'wc-koin-official');
        break;
    default:
        $message = __('Card payment successful!', 'wc-koin-official');
        break;
}
?>

<div class="order-thankyou-page order-thankyou-page-credit">
    <img src="<?php echo esc_url($logo) ?>" alt="Koin Logo">
    <div>
        <p><?php echo esc_html($message); ?></p>
    </div>
</div>
