-
Notifications
You must be signed in to change notification settings - Fork 5
/
compropago.php
40 lines (34 loc) · 1.14 KB
/
compropago.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: ComproPago
Plugin URI: https://www.compropago.com/documentacion/plugins
Description: Con ComproPago puedes recibir pagos en OXXO, 7Eleven y muchas tiendas más en México.
Version: 5.0.0.2
Author: <a href="https://compropago.com" target="_blank">ComproPago</a>
Licence: Apache-2
*/
/**
* @author Eduardo Aguilar <[email protected]>
* @author Alfredo Gómez <[email protected]>
*/
require_once __DIR__ . "/vendor/autoload.php";
require_once __DIR__ . '/controllers/ConfigController.php';
include_once __DIR__ . '/includes/compropago-functions.php';
include_once __DIR__ . '/includes/config-functions.php';
include_once __DIR__ . '/includes/init-functions.php';
include_once __DIR__ . '/includes/gateways/receipt.php';
include_once __DIR__ . '/includes/gateways/compropago-webhook.php';
/**
* Activación de la nueva página de configuración
*/
add_action( 'admin_menu', 'cp_add_admin_page' );
/**
* Registro de rutina de activación
*/
register_activation_hook( __FILE__, function() {
return;
});
/**
* Main function registration for payment gateways
*/
add_action('plugins_loaded', 'compropago_init', 0);