You are here

commerce-payment-total-summary.html.twig in Commerce Core 8.2

Default payments summary template.

Available variables:

  • order_entity: The order entity object.

File

modules/payment/templates/commerce-payment-total-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default payments summary template.
  5. *
  6. * Available variables:
  7. * - order_entity: The order entity object.
  8. *
  9. * @ingroup themeable
  10. */
  11. #}
  12. {{ attach_library('commerce_payment/payment_summary') }}
  13. <div>
  14. <div class="payment-summary-line payment-summary-line-total-paid">
  15. <span class="payment-summary-line-label">{{ 'Total paid'|t }} </span><span class="payment-summary-line-value">{{ order_entity.getTotalPaid|commerce_price_format }}</span>
  16. </div>
  17. <div class="payment-summary-line payment-summary-line-balance">
  18. <span class="payment-summary-line-label">{{ 'Order balance'|t }} </span><span class="payment-summary-line-value">{{ order_entity.getBalance|commerce_price_format }}</span>
  19. </div>
  20. </div>