Skip to content

Commit

Permalink
feat: use default status error message in api mismatch exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed Nov 13, 2024
1 parent f6be020 commit f384083
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/src/OneclickTransbankSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/WebpayplusTransbankSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f384083

Please sign in to comment.