-
Notifications
You must be signed in to change notification settings - Fork 12
/
vindi.php
40 lines (33 loc) · 1019 Bytes
/
vindi.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Plugin Name: Vindi WooCommerce 2
* Plugin URI: https://github.com/vindi/vindi-woocommerce
* Description: Adiciona o gateway de pagamento da Vindi para o WooCommerce.
* Author: Vindi
* Author URI: https://www.vindi.com.br
* Version: 1.3.5
* Requires at least: 4.4
* Tested up to: 6.4
* Text Domain: vindi-payment-gateway
*
* Domain Path: ./src/languages/
*
* @package Vindi
*
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
// Adding the development variables
if(file_exists(plugin_dir_path(__FILE__) . '.env.php')) {
include plugin_dir_path(__FILE__) . '.env.php';
}
// Adding the variables
require plugin_dir_path(__FILE__) . '/src/utils/DefinitionVariables.php';
// Adding dependency validator
require_once plugin_dir_path(__FILE__) . '/src/validators/Dependencies.php';
require_once VINDI_PATH . 'src/VindiWoocommerce.php';
if (!defined('VINDI_TESTS')) {
// In tests we run the instance manually.
// $GLOBALS['vindi'] = WcVindiPayment::get_instance();
}