Bird
Raised Fist0

A developer designed an e-commerce order system but forgot to handle payment failures properly. What is the likely problem in this design?

medium📝 Analysis Q14 of Q15
LLD - Design — Online Shopping Cart
A developer designed an e-commerce order system but forgot to handle payment failures properly. What is the likely problem in this design?
AOrders may be marked complete even if payment failed
BProduct images will not load
CUser passwords will be stored in plain text
DSearch results will be slow
Step-by-Step Solution
Solution:
  1. Step 1: Understand the impact of missing payment failure handling

    If payment failures are not handled, the system might wrongly confirm orders without payment.
  2. Step 2: Connect the problem to order status

    This causes incorrect order states, leading to customer dissatisfaction and financial loss.
  3. Final Answer:

    Orders may be marked complete even if payment failed -> Option A
  4. Quick Check:

    Missing payment checks = wrong order status [OK]
Quick Trick: Check if all failure cases are handled in design [OK]
Common Mistakes:
MISTAKES
  • Confusing payment issues with image loading
  • Mixing security issues with payment handling
  • Assuming unrelated performance problems

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes