From 39e54340177eb5fa08b957c7bea42aca6be8c566 Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Wed, 29 May 2024 16:24:36 -0400 Subject: [PATCH] fix: use custom variable instead $_POST --- .../WC_Gateway_Transbank_Oneclick_Mall_REST.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php b/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php index 6271962..ba01826 100644 --- a/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php +++ b/plugin/src/PaymentGateways/WC_Gateway_Transbank_Oneclick_Mall_REST.php @@ -124,12 +124,13 @@ public function __construct() public function process_payment($order_id) { try { + $request = $_POST; $order = new WC_Order($order_id); $this->checkOrderCanBePaid($order); $this->checkUserIsLoggedIn(); - return $this->handleRequest($_POST, $order); + return $this->handleRequest($request, $order); } catch (Throwable $exception) { $errorHookName = 'wc_gateway_transbank_process_payment_error_' . $this->id; $errorMessage = ErrorHelper::getErrorMessageBasedOnTransbankSdkException($exception);