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;