{% if dataObj.custom_style is not empty %}
    <style>
        {{ dataObj.custom_style }}
    </style>

{% endif %}

<script nonce="{{ dataObj.nonce }}">
    let dataObj = JSON.parse("{{ dataObj|json_encode()|escape('js') }}")
</script>


{% block javascript %}
<script nonce="{{ dataObj.nonce }}" src="{{ constant('HYPERPAY_PLUGIN_DIR') }}/src/assets/js/{{ scriptSrc }}"></script>
{% endblock %}

<form class="paymentWidgets" action="{{ dataObj.postBackURL }}" data-brands="{{ dataObj.payment_brands }}"></form>

{% block javascript_footer %}
    <script src="{{ dataObj.scriptURL }}{{ dataObj.checkoutId }}" integrity="{{ dataObj.integrity }}" crossorigin="anonymous" ></script>
{% endblock %}

