-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwc-robokassa.php
40 lines (35 loc) · 1.22 KB
/
wc-robokassa.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: Payment gateway - Robokassa for WooCommerce
* Description: Integration Robokassa in WooCommerce as payment gateway.
* Plugin URI: https://mofsy.ru/projects/wc-robokassa
* Version: 4.1.0
* WC requires at least: 3.0
* WC tested up to: 5.1
* Text Domain: wc-robokassa
* Domain Path: /languages
* Author: Mofsy
* Author URI: https://mofsy.ru
* Copyright: Mofsy © 2015-2021
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
* @package Mofsy/WC_Robokassa
*/
defined('ABSPATH') || exit;
if(false === class_exists('WC_Robokassa'))
{
if(false === function_exists('get_file_data'))
{
return false;
}
$plugin_data = get_file_data(__FILE__, array('Version' => 'Version'));
define('WC_ROBOKASSA_VERSION', $plugin_data['Version']);
define('WC_ROBOKASSA_URL', plugin_dir_url(__FILE__));
define('WC_ROBOKASSA_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('WC_ROBOKASSA_PLUGIN_NAME', plugin_basename(__FILE__));
include_once __DIR__ . '/includes/functions-wc-robokassa.php';
include_once __DIR__ . '/includes/class-wc-robokassa-logger.php';
include_once __DIR__ . '/includes/class-wc-robokassa.php';
add_action('plugins_loaded', 'WC_Robokassa', 5);
}