{% if payment_methods is not empty %}
    {% for code, pm in payment_methods %}
        {% set checked = pm.checked %}
        {% set title = pm.title %}
        {% set image = images[code]['image'] %}

        <div class="payment_method {{ code }}">
            <div class="radio-input radio">
                <label for="{{ code }}"><input name="payment_method" onchange="set_payment_method($(this));" value="{{ code }}" id="{{ code }}" {{ checked ? 'checked="checked"' : '' }} type="radio"><span class="title">{{ image is not empty ? '<img class="payment_method_image" src="'~image~'">' : '' }} {{ title }}</span></label>
            </div>
        </div>
    {% endfor %}

    {% if payment_methods is not empty %}
	    <script type="text/javascript">
			_complete_step('payment');
		</script>
	{% endif %}
{% else %}

	<div class="poc_alert poc_alert-warning">{{ poc_icon_error }} {{ error_no_payment }}</div>

	<script type="text/javascript">
		_uncomplete_step('payment');
	</script>
{% endif %}