-
Notifications
You must be signed in to change notification settings - Fork 7
/
woocommerce-gateway-monei.php
52 lines (46 loc) · 1.52 KB
/
woocommerce-gateway-monei.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
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* MONEI Payments for WooCommerce
*
* @package MONEI Payments
* @author MONEI
* @copyright 2020-2020 MONEI
* @license GPL-2.0+
*
* Plugin Name: MONEI Payments for WooCommerce
* Plugin URI: https://wordpress.org/plugins/monei/
* Description: Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your store.
* Version: 5.9.0
* Author: MONEI
* Author URI: https://www.monei.com/
* Tested up to: 6.6
* WC requires at least: 3.0
* WC tested up to: 9.3
* Requires PHP: 7.2
* Text Domain: monei
* Domain Path: /languages/
* Copyright: (C) 2021 MONEI.
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Requires Plugins: woocommerce
*/
// If this file is called directly, abort.
if ( !defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
define( 'MONEI_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'MONEI_PLUGIN_FILE', __FILE__ );
/**
* Add compatibility with WooCommerce HPOS and cart checkout blocks
*/
add_action( 'before_woocommerce_init', function () {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', __FILE__, true );
}
} );
require_once 'class-woocommerce-gateway-monei.php';
function WC_Monei() {
return Woocommerce_Gateway_Monei::instance();
}
WC_Monei();