From f3840833358a0acd884402a0c17f9277ed521d76 Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Wed, 13 Nov 2024 14:06:41 -0300 Subject: [PATCH] feat: use default status error message in api mismatch exception --- plugin/src/OneclickTransbankSdk.php | 2 +- plugin/src/WebpayplusTransbankSdk.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/OneclickTransbankSdk.php b/plugin/src/OneclickTransbankSdk.php index 5322f3a..2654707 100644 --- a/plugin/src/OneclickTransbankSdk.php +++ b/plugin/src/OneclickTransbankSdk.php @@ -129,7 +129,7 @@ public function status($orderId, $buyOrder) } if (ErrorUtil::isApiMismatchError($e)) { - $errorMessage = ErrorUtil::API_MISMATCH_ERROR_MESSAGE; + $errorMessage = ErrorUtil::DEFAULT_STATUS_ERROR_MESSAGE; } $this->errorExecutionTbkApi( diff --git a/plugin/src/WebpayplusTransbankSdk.php b/plugin/src/WebpayplusTransbankSdk.php index 2a10a53..708f40c 100644 --- a/plugin/src/WebpayplusTransbankSdk.php +++ b/plugin/src/WebpayplusTransbankSdk.php @@ -105,7 +105,7 @@ public function status($orderId, $token) } if (ErrorUtil::isApiMismatchError($e)) { - $errorMessage = ErrorUtil::API_MISMATCH_ERROR_MESSAGE; + $errorMessage = ErrorUtil::DEFAULT_STATUS_ERROR_MESSAGE; } $this->errorExecutionTbkApi(