@paydock/client-sdk 1.116.6-beta → 1.116.8-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -16
- package/bundles/index.cjs +1 -1
- package/bundles/index.mjs +1 -1
- package/bundles/widget.umd.js +1 -1
- package/bundles/widget.umd.min.js +1 -1
- package/docs/fraud-prevention-examples.md +32 -17
- package/package.json +1 -1
- package/slate.md +31 -16
package/README.md
CHANGED
|
@@ -8051,14 +8051,15 @@ Additional setup is required in case your website uses Content Security Policies
|
|
|
8051
8051
|
<base href="/">
|
|
8052
8052
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8053
8053
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
8054
|
-
<script src="
|
|
8054
|
+
<script src="https://widget.paydock.com/sdk/latest/widget.umd.js" ></script>
|
|
8055
8055
|
</head>
|
|
8056
8056
|
|
|
8057
8057
|
<body>
|
|
8058
8058
|
<main>
|
|
8059
8059
|
<h1>Real time user behaviour anaylsis - Forter example</h1>
|
|
8060
8060
|
<div class="forter-test">
|
|
8061
|
-
<h2>Forter Integration
|
|
8061
|
+
<h2>Forter Integration</h2>
|
|
8062
|
+
|
|
8062
8063
|
<div class="status-card">
|
|
8063
8064
|
<p>
|
|
8064
8065
|
<strong>Integration Status:</strong>
|
|
@@ -8109,11 +8110,11 @@ Additional setup is required in case your website uses Content Security Policies
|
|
|
8109
8110
|
|
|
8110
8111
|
document.addEventListener(FRAUD_PREVENTION_EVENTS.NAMESPACE, (event) => {
|
|
8111
8112
|
switch (event.detail.type) {
|
|
8112
|
-
case FRAUD_PREVENTION_EVENTS.TYPES.
|
|
8113
|
+
case FRAUD_PREVENTION_EVENTS.TYPES.FINTERPRINT_TOKEN_READY: {
|
|
8113
8114
|
token = event.detail.payload.token;
|
|
8114
8115
|
break;
|
|
8115
8116
|
}
|
|
8116
|
-
case FRAUD_PREVENTION_EVENTS.TYPES.
|
|
8117
|
+
case FRAUD_PREVENTION_EVENTS.TYPES.FINGERPRINT_TOKEN_ERROR: {
|
|
8117
8118
|
errorCode = event.detail.payload.code;
|
|
8118
8119
|
break;
|
|
8119
8120
|
}
|
|
@@ -8127,19 +8128,33 @@ Additional setup is required in case your website uses Content Security Policies
|
|
|
8127
8128
|
render();
|
|
8128
8129
|
});
|
|
8129
8130
|
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
csp: false, // Set to csp to true if your website uses Content-Security-Policies
|
|
8135
|
-
});
|
|
8131
|
+
const fraudPreventionServiceConfig = {
|
|
8132
|
+
environmentId: 'sandbox',
|
|
8133
|
+
mode: 'test'
|
|
8134
|
+
}
|
|
8136
8135
|
|
|
8137
|
-
//
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8136
|
+
// Set "csp" to true if your website uses Content Security Policies
|
|
8137
|
+
const csp = false;
|
|
8138
|
+
|
|
8139
|
+
new FraudPreventionService(fraudPreventionServiceConfig)
|
|
8140
|
+
.withForter({
|
|
8141
|
+
siteId: 'example_site_id_or_subsite_id',
|
|
8142
|
+
csp,
|
|
8143
|
+
});
|
|
8144
|
+
|
|
8145
|
+
// new FraudPreventionService(fraudPreventionServiceConfig)
|
|
8146
|
+
// .withAccessTokenStrategy("eyJhb_access_token_example_...")
|
|
8147
|
+
// .withForter({
|
|
8148
|
+
// providerId: environment.forter.serviceId,
|
|
8149
|
+
// csp,
|
|
8150
|
+
// });
|
|
8151
|
+
|
|
8152
|
+
// new FraudPreventionService(fraudPreventionServiceConfig)
|
|
8153
|
+
// .withPublicKeyStrategy("pk_example_...")
|
|
8154
|
+
// .withForter({
|
|
8155
|
+
// providerId: environment.forter.serviceId,
|
|
8156
|
+
// csp,
|
|
8157
|
+
// });
|
|
8143
8158
|
</script>
|
|
8144
8159
|
</body>
|
|
8145
8160
|
|
package/bundles/index.cjs
CHANGED
package/bundles/index.mjs
CHANGED
package/bundles/widget.umd.js
CHANGED