-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.php
40 lines (34 loc) · 1.17 KB
/
index.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 to add BitPay payments to EDD.
*
* @package BitPayEddLib
* Plugin Name: BitPay Checkout for Easy Digital Downloads
* Plugin URI: http://www.bitpay.com
* Description: Create Invoices and process through BitPay. Configure in your <a href ="edit.php?post_type=download&page=edd-settings&tab=gateways">Easy Digital Downloads->Payment Gateways</a>.
* Version: 2.0.0
* Author: BitPay
* Author URI: mailto:[email protected]?subject=BitPay Checkout for Easy Digital Downloads
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
$files_to_load = array(
'class-bitpaycheckouttransactions.php',
'class-bitpayclientfactory.php',
'class-bitpayeddabandonorder.php',
'class-bitpayeddaddsettings.php',
'class-bitpayeddprintenqueuescripts.php',
'class-bitpayeddprocesspayment.php',
'class-bitpayendpoint.php',
'class-bitpayinvoicefactory.php',
'class-bitpayipnprocess.php',
'class-bitpaypluginsetup.php',
);
foreach ( $files_to_load as $file ) {
include_once 'BitPayEddLib/' . $file;
}
use BitPayEddLib\BitPayPluginSetup;
$bit_pay_plugin_setup = new BitPayPluginSetup();
$bit_pay_plugin_setup->execute();