thainguyencoffee / bookstore-full-stack

Full stack project using Spring framework with Vue
2 stars 0 forks source link

checkout #2 add payment method, (resolved vnpay method) #10

Closed thainguyencoffee closed 3 months ago

thainguyencoffee commented 3 months ago

com.bookstore.backend.orders.Order: add paymentMethod attr with vnpay option -> order created with initial status is WAITING_FOR_PAYMENT with other options -> order created with initial status is WAITING_FOR_ACCEPTANCE

com.bookstore.backend.orders.OrderController update payCallbackHandler: when vnpay complete then send repsonse 302(redirect) to angular at payment-callback-detail route

angular model: add some dto

com.bookstore.backend.core.config.SecurityConfig: /api/orders permit all to placed order without login

com.bookstore.gateway.config.SecurityConfig: /shopping-carts/, /payment-callback-detail/ (resolve case reload browser gateway_host:gateway_port/** return 404)