text
// Node.js/Express example
app.600;">post(039;/initiate-3ds039;, async (req, res) => {
const enrollmentResponse = await fetch(039;https://api-sbx.globalgetnet.com/dpm/security-gwproxy/v2/enrolments-initial039;, {
// ... request configuration
});
const data = await enrollmentResponse.json();
if (data.status === 039;Pending Challenge039;) {
// Send the HTML template directly to the browser
res.send(data.redirect_html_template);
}
});
text
// Node.js/Express example
app.600;">post(039;/initiate-3ds039;, async (req, res) => {
const enrollmentResponse = await fetch(039;https://api-sbx.globalgetnet.com/dpm/security-gwproxy/v2/enrolments-initial039;, {
// ... request configuration
});
const data = await enrollmentResponse.json();
if (data.status === 039;Pending Challenge039;) {
// Send the HTML template directly to the browser
res.send(data.redirect_html_template);
}
});
text
html
<div id="transition-ui">
<p>Please wait while we redirect you to your bank for secure authentication...</p>
</div>
<form id="acs-direct-form" method="600;">POST" action="https://acs-issuer.com/challenge">
<input type="hidden" name="creq" value="eyJ0aHJlZURTU2VydmVyVFJBSUQiOiI..." />
<input type="hidden" name="threeDSSessionData" value="NmQyZTQzODAtZDhhMy00Y2Ni..." />
</form>
<script>
// Delay submission slightly to allow the transition UI to be seen
setTimeout(() => {
document.getElementById(039;acs-direct-form039;).submit();
}, 1000);
</script>
text
html
<div id="transition-ui">
<p>Please wait while we redirect you to your bank for secure authentication...</p>
</div>
<form id="acs-direct-form" method="600;">POST" action="https://acs-issuer.com/challenge">
<input type="hidden" name="creq" value="eyJ0aHJlZURTU2VydmVyVFJBSUQiOiI..." />
<input type="hidden" name="threeDSSessionData" value="NmQyZTQzODAtZDhhMy00Y2Ni..." />
</form>
<script>
// Delay submission slightly to allow the transition UI to be seen
setTimeout(() => {
document.getElementById(039;acs-direct-form039;).submit();
}, 1000);
</script>