{% set paymentMethods = getPaymentMethods() %} {% for paymentMethod in paymentMethods %} {% endfor %}