File "ConnectionCheck.php"

Full path: /home/dora/public_html/wp-content/plugins/transbank-webpay-plus-rest/libwebpay/ConnectionCheck.php
File size: 376 bytes
MIME-type: --
Charset: utf-8

<?php

use Transbank\WooCommerce\WebpayRest\Helpers\HealthCheckFactory;

class ConnectionCheck
{
    public static function check()
    {
        $healthCheck = HealthCheckFactory::create();

        $resp = $healthCheck->setCreateTransaction();

        header('Content-Type: application/json');
        ob_clean();
        echo json_encode($resp);
        wp_die();
    }
}