I have a gsp
, i want to call the API of a 3rd party but i need to add headers on it but i haven't found the syntax suitable for it.
Following is the code:
<div class="container">
<h1>Redirecting to Payment Gateway...</h1>
<form action="${data.url}" method="POST" id="paymentForm">
<g:each var="field" in="${data.data}">
<input type="hidden" name="${field.key}" value="${field.value}"/>
</g:each>
<form>
</div>