After clicking Paypal button on Order review Page user will be redirected to a window with payment system and on Success to order Confirmation page. Order status is chanegd to payed in DB
Additionaly added:
api route to change order status: PATCH api/orders
authorisation on OrdersPage - user can only see his orders
payment button will not show if order status is not payed
Fixes #216
How to test?
npm run dev => create order => click paypal button => Login to payment with test user (ask me)
Description
After clicking Paypal button on Order review Page user will be redirected to a window with payment system and on Success to order Confirmation page. Order status is chanegd to payed in DB
Additionaly added:
Fixes #216
How to test?
npm run dev
=> create order => click paypal button => Login to payment with test user (ask me)Checklist