Here you can find examples of use cases for the VGS Collect JS library.
The VGS Collect library is a javascript library that allows you to integrate secure fields with non-secure fields in your page. The secure fields behave like traditional input fields while preventing access to the unsecured data.
Once the fields are initialized the library communicates the state of the fields through a JavaScript callback. The state object includes information about the validity, focused value and if the user has entered information in the field.
You can find more useful information about VGS Collect API in our docs.
Name | Used data | Code example | Live demo |
---|---|---|---|
Credit card |
|
Code | Demo |
Login data |
|
Code | Demo |
PII data |
|
Code | Demo |
Shipping info |
|
Code | Demo |
Multiplexing |
|
Code | Contact us |
Name | Preview | Code example | Live demo |
---|---|---|---|
Capture BIN number | Code | Demo | |
Compare field values | Code | Demo | |
Conditional rendering | Code | Demo | |
Extended card brands | Code | Demo | |
Input masking | Code | Demo | |
Submit on Enter | Code | Demo |
Name | Preview | Code example | Live demo |
---|---|---|---|
Floating labels | Code | Demo | |
Single line payment form | Code | Demo |