Total formula

@if (!hasFullBreakdown()) {

Price breakdown not available for this order. Backend has not populated per-line unitPriceMinor / lineTotalMinor yet.

} @else { @for (row of lineRows(); track row.name) { }
Line Qty Unit price Discount Line total
{{ row.name }} {{ row.quantity }} {{ toDisplay(row.unitPriceMinor) }} {{ order().currency }} {{ row.discountMinor ? toDisplay(row.discountMinor) + ' ' + order().currency : '—' }} {{ toDisplay(row.lineTotalMinor) }} {{ order().currency }}
Subtotal
{{ toDisplay(subtotalMinor()) }} {{ order().currency }}
@if (totalDiscountMinor() > 0) {
Discounts
−{{ toDisplay(totalDiscountMinor()) }} {{ order().currency }}
} @if (order().deliveryMinor !== undefined) {
Delivery
{{ toDisplay(order().deliveryMinor) }} {{ order().currency }}
}
Charged total
{{ order().total }} {{ order().currency }}
@if (order().fxQuoteId) {
FX quote used
{{ order().fxQuoteId }}
}
} @if (order().routing; as routing) {

Routed to payment point {{ routing.leafNodeId }} ({{ routing.environment }}) · merchant reference {{ routing.merchantReference }}

}