Skip to main content

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.

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

// Add event listeners here

iframe.load();