VGS Collect.js script loading module
npm install @vgs/collect-js
Script loading module for VGS Collect.js
Explore the docs »
Report Bug
·
Request Feature

* Overview
* Installation
* How to use
* Documentation
* Examples
* Built With
* Contact
VGS Collect.js is a JavaScript library that allows you to securely collect data via any form. Instantly create custom forms that adhere to PCI, HIPAA, GDPR, or CCPA security requirements. VGS intercepts sensitive data before it hits your servers and replaces it with aliased versions while securing the original data in our vault. The form fields behave like traditional forms while preventing access to the unsecured data by injecting secure iframe components.
This module intended to simplify VGS Collect.js script loading process. To stay PCI Compliant it's a mandatory to load js from our js.verygoodvault.com domain as a consequence you need to find the best way to include our script, this small utility will solve the problem for you. You can still use the conventional way and just stick a reference to the script in the HEAD section of your page but you may lose some beneficial advantages the package provides:
- Error handling
- Fallback CDN managing
- Reduced latency of cross-origin requests
Install the package using npm:
```
npm install @vgs/collect-js
The imported function inserts the