<?php

namespace Sipago\WooCommerce\SipagoCheckout\Helpers;

/**
 * Class HealthCheckFactory.
 */
class HealthCheckSipagoFactory
{
    /**
     * @return HealthCheckSipagoFactory
     */
    public static function create()
    {
        $configProvider = new ConfigProvider();
        $config = [
            'MODO'          => $configProvider->getConfig('sipago_pay_environment'),
  
            'CLIENT_ID'       => $configProvider->getConfig('geopago_rest_client_id'),
            'CLIENT_SECRECT'       => $configProvider->getConfig('geopago_rest_client_secret'),

            'ECOMMERCE'     => 'woocommerce',
        ];

        return new HealthSipagoCheck($config);
    }
}
