public static function order_received($order_id = 0, $order_key = "")
 {
     $SUFIJO = "[ORDER_RECEIVED]";
     log_me("Ingresando a la recepción de la orden con {$order_id} y {$order_key}", $SUFIJO);
     wc_print_notices();
     $order = new WC_Order($order_id);
     // Empty awaiting payment session
     unset(WC()->session->order_awaiting_payment);
     include_once plugin_dir_path(__FILE__) . 'checkout/thankyou.php';
     echo "<p style='color: red;'>";
     echo '<b>' . WC_Gateway_Webpayplus::webpay_get_option('politicas-devoluciones') . '</b>';
     echo '</p>';
 }
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
?>
<div class="woocommerce"><?php 
global $woocommerce;
if ($order) {
    ?>

        <?php 
    if (in_array($order->status, array('failed'))) {
        ?>

            <?php 
        WC_Gateway_Webpayplus::webpay_pagina_error($order_id);
        ?>

            <p><?php 
        if (is_user_logged_in()) {
            _e('Please attempt your purchase again or go to your account page.', 'woocommerce');
        } else {
            _e('Please attempt your purchase again.', 'woocommerce');
        }
        ?>
</p>

            <p>
                <a href="<?php 
        echo esc_url($order->get_checkout_payment_url());
        ?>
                <th>Tipo de Transacción</th>
                <th>Venta</th>

            </tr>
            <tr>
                <th>Nombre del Comercio</th>
                <th><?php 
    echo WC_Gateway_Webpayplus::webpay_get_option('trade_name');
    ?>
</th>

            </tr>
            <tr>
                <th>URL Comercio</th>
                <th><?php 
    echo WC_Gateway_Webpayplus::webpay_get_option('url_commerce');
    ?>
</th>

            </tr>
            <tr>
                <th>Cliente</th>
                <th><?php 
    echo $order->billing_first_name . " " . $order->billing_last_name;
    ?>
</th>

            </tr>

            <tr>
                <th>Código de Autorización</th>