Putting It All Together

Now that you've built your configuration object, the last step is to render the iFrame on your form. Reference the Test TokenEx iFrame JS Library located at https://test-htp.tokenex.com/Iframe/Iframe-v3.min.js and invoke the TokenEx.Iframe() method to generate a new iframe object. This method accepts two parameters: the ID of the container in which you want to render the iframe and the iFrame Configuration Object you created.

var iframe = new TokenEx.Iframe("tokenExIframeDiv", iframeConfig);

// Add event listeners here