Creating the iFrame

Setting up the iFrame consists of three steps:

  1. Generating an Authentication Key
  2. Creating an iFrame Configuration Object
  3. Loading the iFrame into the DOM using the TokenEx Iframe JS Library. To test out the iFrame, the following script must be included into your page from this URL: https://test-htp.tokenex.com/Iframe/iframe-v3.min.js

❗️

HEADS UP!

You must include the link to this file from TokenEx servers and not self-host this file.

<script src="https://test-htp.tokenex.com/iframe/iframe-v3.min.js"></script>
<script src="https://htp.tokenex.com/iframe/iframe-v3.min.js"></script>
<script src="https://eu1-htp.tokenex.com/iframe/iframe-v3.min.js"></script>

🚧

CORS

TokenEx supports Cross-Origin Resource Sharing (CORS) and Subresource Integrity (SRI).

If using an SRI, it is highly recommended that it is used with a version specific iFrame JavaScript file. Otherwise any development updates made to the Iframe will cause the SRI to no longer be valid.

Latest Versions

Iframe-v3.71.min.js

<script src="https://test-htp.tokenex.com/Iframe/iframe-v3.71.min.js" 
integrity="sha384-eePjvZ5S0b9RUZx7RkGNcH8blvSQdw09HkWDyhPrMyfJDD/4lWjRRJ0HCSKI0gqr" 
crossorigin="anonymous"></script>
<script src="https://htp.tokenex.com/Iframe/Iframe-v3.41.min.js" 
integrity="sha384-dJY8nUeyNGP4iXGrTCsZMIFQub7oULC94WxlotldgWAEmWGeF8tNArSwl873YF6G" 
crossorigin="anonymous"></script>
<script src="https://eu1-htp.tokenex.com/Iframe/Iframe-v3.41.min.js" 
integrity="sha384-BrkiQfjFbB6rMEO71ltI4l/lGAt5p/+o7TSx7Y0hkwc4Xb+CZnYjy6X4AJEZw0Eg" 
crossorigin="anonymous"></script>

For previous versions and releases, visit our release notes page.