{% if payments is defined and payments is not empty %}
{% set payment = payments|first %}
{{ payment.method }}
{% endif %}
Summary
{% set totalPrice = 0 %}
{% if payments is defined and payments is not empty %}
{% for payment in payments %}
{% for pivot in payment.paymentables|filter(pivot => pivot.is_credit == '0') %}