forked from krokedil/paysoncheckout-for-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaysoncheckout-for-woocommerce.php
53 lines (45 loc) · 1.95 KB
/
paysoncheckout-for-woocommerce.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
/**
* Plugin Name: PaysonCheckout 2.0 for WooCommerce
* Plugin URI: http://krokedil.com/
* Description: Provides a PaysonCheckout 2.0 payment gateway for WooCommerce.
* Version: 1.4.0
* Author: Krokedil
* Author URI: http://krokedil.com/
* Developer: Krokedil
* Developer URI: http://krokedil.com/
* Text Domain: woocommerce-gateway-paysoncheckout
* Domain Path: /languages
*
* WC requires at least: 3.0
* WC tested up to: 3.4.6
*
* Copyright: © 2016-2018 Krokedil.
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Localisation.
*/
load_plugin_textdomain( 'woocommerce-gateway-paysoncheckout', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
// Define plugin constants.
define( 'PAYSONCHECKOUT_VERSION', '1.4.0' );
define( 'PAYSONCHECKOUT_URL', untrailingslashit( plugins_url( '/', __FILE__ ) ) );
define( 'PAYSONCHECKOUT_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
// Include files.
include_once( 'includes/class-wc-paysoncheckout.php' );
include_once( 'includes/gateways/class-wc-paysoncheckout-gateway.php' );
include_once( 'includes/class-wc-paysoncheckout-wc-order.php' );
include_once( 'includes/class-wc-paysoncheckout-ajax.php' );
include_once( 'includes/class-wc-paysoncheckout-response-handler.php' );
include_once( 'includes/class-wc-paysoncheckout-capture.php' );
include_once( 'includes/class-wc-paysoncheckout-cancel-reservation.php' );
include_once( 'includes/class-wc-paysoncheckout-admin-notices.php' );
include_once( 'krokedil-wc-compatability.php' );
include_once( 'includes/class-wc-paysoncheckout-gdpr.php' );
include_once( 'includes/class-wc-paysoncheckout-templates.php' );
include_once( 'includes/class-wc-paysoncheckout-functions.php' );
include_once( PAYSONCHECKOUT_PATH . '/includes/lib/paysonapi.php' );