← Questions
Checkout price engine with pluggable discounts
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Build the price engine for an e-commerce checkout. A cart holds line items (product id, unit price, quantity) and the customer has a tier, standard or premium. Apply discounts of several kinds (a percentage off, a fixed amount off, and buy X get Y) and return the final total. Design it so new discount types plug in without changing the engine.
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
