Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Change checkout-success to checkout-status
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingadonis committed Dec 6, 2023
1 parent b5d5252 commit 6b795c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
session.setAttribute("cart_cookie", cartCookie);

if (payment == Payment.COD) {
response.sendRedirect("checkout-success");
response.sendRedirect("checkout-status");
} else {
handleVNPayCheckout(request, response, (int) totalPrice);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import javax.servlet.annotation.*;
import javax.servlet.http.*;

@WebServlet(name = "CheckoutSuccessServlet", urlPatterns = {"/checkout-success"})
public class CheckoutSuccessServlet extends HttpServlet {
@WebServlet(name = "CheckoutStatusServlet", urlPatterns = {"/checkout-status"})
public class CheckoutStatusServlet extends HttpServlet {

@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<br>
<br>
<div class="d-flex justify-content-center">
<a href="purchase-history" class="btn btn-outline-dark">Đến lịch sử mua hàng</a>
<a href="purchase-history?tab=all" class="btn btn-outline-dark">Đến lịch sử mua hàng</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 6b795c9

Please sign in to comment.