Skip to content

Commit

Permalink
fix: message when no transaction found
Browse files Browse the repository at this point in the history
  • Loading branch information
mastudillot committed Nov 29, 2024
1 parent 3430ab2 commit 8107659
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/src/Controllers/TransactionStatusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8107659

Please sign in to comment.