<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$settings_efw = ewfk_get_settings_esir();

define("EWFK_API_URL", (!is_null($settings_efw)) ? esc_url_raw($settings_efw->api_url) : "https://europe-central2-esir-44ade.cloudfunctions.net/v1/");
define("EWFK_API_KEY", (!is_null($settings_efw)) ? $settings_efw->api_key : "");
define("EWFK_API_EMAIL", (!is_null($settings_efw)) ? $settings_efw->email : "");
define("EWFK_API_PASS", (!is_null($settings_efw)) ? $settings_efw->api_pass : "");
define("EWFK_API_PAC", (!is_null($settings_efw)) ? $settings_efw->api_pac : "");
define("EWFK_CASHIER", (!is_null($settings_efw)) ? $settings_efw->json->cashier : "");
define("EWFK_PAGE_FAILED", (!is_null($settings_efw)) ? $settings_efw->json->page_failed : "");
define("EWFK_NOTIF_EMAIL", (!is_null($settings_efw)) ? $settings_efw->json->notif_email : "");

