Payments
HardCOD and online payments through the mock gateway (behaves like PayMongo).
Already done — do not rebuild
- Mock gateway server
GatewayClient- COD and online
createPayment()with redirect to the gateway - Webhook route
Must 1–4 Graded
1Success and failed return pages
2Webhook signature check
3
handleWebhook() updates payment once, fires event4Tests with
Http::fake()Stretch Bonus
- "Pay again" for pending orders
- Switch to real PayMongo test mode