Skip to content

fluidpay/fluidpay-guardian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e71cd09 · May 24, 2022

History

69 Commits
Apr 23, 2022
Apr 6, 2022
May 24, 2022
Apr 6, 2022
Apr 6, 2022
Apr 7, 2022
Apr 6, 2022
Apr 6, 2022
Apr 6, 2022
Apr 23, 2022
Apr 6, 2022
Apr 6, 2022
May 23, 2022
May 24, 2022
May 24, 2022
Apr 23, 2022
Apr 23, 2022

Repository files navigation

Guardian

release

Guardian is a user data collector tool, created for payment fraud protection.

Usage

With CDN:

Add the following code snippet into your html file's head.

<script src="https://unpkg.com/@gwservices/guardian@latest/dist/guardian.umd.js"></script>
<script>
    new Guardian('https://my_gateway_url', 'public_api_key').process();
</script>

With import:

import Guardian from '@gwservices/guardian';

let guard = new Guardian('https://my_gateway_url', 'public_api_key').process();

// Optional
Guardian.getData().then((data) => {
    console.log(data);
});

(Optional) Get the collected data

You can do it before submitting your form and attach the result to your request.

<script>
    Guardian.getData().then((data) => {
        console.log(data);
    });
</script>