- payment : added httpErrorException - payment : error handling wip - profil page restriction gives access to admin and editor
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* it means someone outside wp is accessing the file, in this case kill it.
|
|
*/
|
|
if (!defined('ABSPATH')) {
|
|
die('You can not access this file!');
|
|
}
|
|
|
|
|
|
|
|
include_once(PLGNTLS_class::get_path() . '/php/utils/http_errors.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/route_api_utils.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/user_can_pay.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/update_user_payment.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/shortcode.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/route_api_orders.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/route_api_orders_capture.php');
|
|
include_once(PLGNTLS_class::get_path() . '/php/paypal/routes.php');
|
|
|
|
|
|
|
|
|
|
/*
|
|
function check_paypal_request()
|
|
{
|
|
error_log("----");
|
|
if (is_page('test_paypal_payment'))
|
|
error_log("on test_paypal_payment");
|
|
else if (is_page('test_paypal_ok'))
|
|
error_log("on test_paypal_ok");
|
|
else if (is_page('test_paypal_infos'))
|
|
error_log("on test_paypal_infos");
|
|
else
|
|
return;
|
|
error_log("_GET");
|
|
error_log(json_encode($_GET));
|
|
error_log("_POST");
|
|
error_log(json_encode($_POST));
|
|
// error_log("_COOKIE");
|
|
// error_log(json_encode($_COOKIE));
|
|
}
|
|
add_action('template_redirect', 'check_paypal_request');
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|