From e82ab3291a9520e05e8f54c3b9b6dffcf59f5546 Mon Sep 17 00:00:00 2001 From: Cloudpayments Date: Mon, 20 Dec 2021 12:31:45 +0300 Subject: [PATCH] fix (invalid token) --- .../inc/class-cloud-payments-api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudpayments-gateway-for-woocommerce/inc/class-cloud-payments-api.php b/cloudpayments-gateway-for-woocommerce/inc/class-cloud-payments-api.php index 7f2bd12..b14e799 100644 --- a/cloudpayments-gateway-for-woocommerce/inc/class-cloud-payments-api.php +++ b/cloudpayments-gateway-for-woocommerce/inc/class-cloud-payments-api.php @@ -15,8 +15,8 @@ public function __construct($enabledDMS, $statusChancel, $statusPay, $apiPass, $ public function processRequest() { - $action = sanitize_mime_type($_GET['action']); - $request = sanitize_mime_type($_POST); + $action = $_GET['action']; + $request = $_POST; switch ($action) { case 'check': @@ -253,4 +253,4 @@ private function isCorrectOrderID($order, $request) return round($paymentid, 2) == round($oid, 2); //верно? } -} \ No newline at end of file +}