Including Elements.js

In order to satisfy PCI compliance, you must include the Elements.js script on your site—it should always be loaded directly from, rather than included in a bundle or hosted yourself.

<script src=""></script>

We also provide an npm package that makes it easier to load and use Elements.js as a module. All the module does is acting as a downloader to dynamically load directly from our CDN.

import Elements from '@elementspay/elements-web-lib';


You should choose either one of the above ways to include Elements.js