+
+ 상품 금액
+
+ {formatPrice(
+ order.subtotal_amount ?? order.total_amount,
+ order.currency,
+ )}
+
+
+
+
+ 할인 금액
+ -{formatPrice(order.discount_amount ?? 0, order.currency)}
+
+
+
+ 쿠폰
+ {order.coupon_name ?? "미적용"}
+
+
+
+ 최종 결제 금액
+ {formatPrice(order.total_amount, order.currency)}
+
+
+
+
+ {orderItems.length === 0 ? (
+
+ 주문 상품 상세가 없습니다.
+
+ ) : (
+ orderItems.map((item) => {
+ const canCreateReview =
+ order.order_status === "paid" && order.payment_status === "paid";
+
+ return (
+
+
+
{item.product_name ?? item.product_id}
+
+ 수량 {item.quantity}개 · 단가{" "}
+ {formatPrice(item.unit_price, item.currency)}
+
+
+
+
+
+ {formatPrice(
+ item.line_total ??
+ item.final_item_amount ??
+ Number(item.unit_price) * Number(item.quantity),
+ item.currency,
+ )}
+
+
+ {canCreateReview && (
+
+ 리뷰 작성
+
+ )}
+
+
+ );
+ })
+ )}
+
+