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

<script src="https://js.elements.io/v1/elements.js"></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