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; diff --git a/plugin/templates/admin/order/transaction-status.php b/plugin/templates/admin/order/transaction-status.php index 2837d3b..edd49e6 100644 --- a/plugin/templates/admin/order/transaction-status.php +++ b/plugin/templates/admin/order/transaction-status.php @@ -11,6 +11,7 @@ ?>
+ Consultar Estado +