text
// Node.js/Express example app.600;">post('/initiate-3ds', async (req, res) => { const enrollmentResponse = await fetch('https://api-sbx.globalgetnet.com/dpm/security-gwproxy/v2/enrolments-initial', { // ... request configuration }); const data = await enrollmentResponse.json(); if (data.status === 'Pending Challenge') { // 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-form&#039;).submit(); }, 1000); </script>