From 8107659ec8bc576004651a09b78b577ebeefa013 Mon Sep 17 00:00:00 2001 From: Mauricio Astudillo Toledo Date: Fri, 29 Nov 2024 11:04:51 -0300 Subject: [PATCH] fix: message when no transaction found --- plugin/src/Controllers/TransactionStatusController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/src/Controllers/TransactionStatusController.php b/plugin/src/Controllers/TransactionStatusController.php index 3064685..3a63831 100644 --- a/plugin/src/Controllers/TransactionStatusController.php +++ b/plugin/src/Controllers/TransactionStatusController.php @@ -62,6 +62,7 @@ public function getStatus(): void $transaction = Transaction::getApprovedByOrderId($orderId); if (!$transaction) { + $response['body']['message'] = self::NO_TRANSACTION_ERROR_MESSAGE; $response['body'] = self::NO_TRANSACTION_ERROR_MESSAGE; wp_send_json($response['body'], self::HTTP_UNPROCESSABLE_ENTITY); return;