OrderTotalsCard

Domain

Order summary card showing subtotal, discount, tax, service fee, shipping, and an emphasized total. Zero-value lines are hidden automatically.

No extras

Preview
Subtotal$89.99
Total$89.99
Code
<OrderTotalsCard currency="USD" totals={{ subtotal: 89.99, total: 89.99 }} />

With discount, tax & shipping

Preview
Subtotal$149.99
Discount$20.00
Tax$11.99
Service Fee$2.99
Shipping$9.99
Total$153.96
Code
<OrderTotalsCard currency="USD" totals={{ subtotal: 149.99, discountTotal: 20, taxTotal: 11.99, shippingTotal: 9.99, total: 153.96 }} />
Sourcemodules/domains/common/money/OrderTotalsCard.tsx