-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwoo-gateway-fedapay.php
More file actions
40 lines (33 loc) · 1.02 KB
/
woo-gateway-fedapay.php
File metadata and controls
40 lines (33 loc) · 1.02 KB
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: FedaPay Gateway for WooCommerce
* Plugin URI: https://wordpress.org/plugins/woo-gateway-fedapay/
* Description: Take credit card and mobile money payments on your store using Fedapay.
* Author: Fedapay
* Author URI: https://fedapay.com/
* Requires at least: 4.4
* Tested up to: 6.7.1
* WC requires at least: 2.6
* WC tested up to: 9.5
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: woo-gateway-fedapay
* Domain Path: /languages
* Version: 0.3.10
*
*/
if (! defined('ABSPATH') ) {
exit;
}
define( 'WC_FEDAPAY_GATEWAY_VERSION', '0.3.10' );
define( 'WC_FEDAPAY_PLUGIN_FILE_PATH', plugin_dir_path( __FILE__ ) );
function wc_fedapay_gateway() {
static $plugin;
if ( ! isset( $plugin ) ) {
require_once(plugin_dir_path(__FILE__) . 'includes/class-wc-fedapay-plugin.php');
$plugin = new WC_Fedapay_Plugin( __FILE__, WC_FEDAPAY_GATEWAY_VERSION );
$plugin->init();
}
return $plugin;
}
wc_fedapay_gateway()->init();