@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 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="../../../bundles/widget.umd.js"></script>
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 Test</h2>
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.FINGERPRINT_TOKEN_READY: {
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.FINGERPRINT_TOKEN_READY: {
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
- // Bring your own site ID
8131
- new FraudPreventionService().withForter({
8132
- siteId: 'YOUR_SITE_ID_OR_SUBSITE_ID',
8133
- mode: 'test',
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
- // Use paydock integrated registration
8138
- new FraudPreventionService().withAuthorization('pk_example_...').withForter({
8139
- providerId: 'YOUR_PAYDOCK_FORTER_SERVICE_ID',
8140
- mode: 'test',
8141
- csp: false, // Set to csp to true if your website uses Content-Security-Policies
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
@@ -1758,7 +1758,7 @@ SDK.headerKeys = Object.freeze({
1758
1758
  version: 'x-sdk-version',
1759
1759
  type: 'x-sdk-type'
1760
1760
  });
1761
- SDK._version = 'v1.116.6-beta';
1761
+ SDK._version = 'v1.116.8-beta';
1762
1762
 
1763
1763
  var ACCESS_HEADER_NAME = {
1764
1764
  accessToken: 'x-access-token',
package/bundles/index.mjs CHANGED
@@ -1756,7 +1756,7 @@ SDK.headerKeys = Object.freeze({
1756
1756
  version: 'x-sdk-version',
1757
1757
  type: 'x-sdk-type'
1758
1758
  });
1759
- SDK._version = 'v1.116.6-beta';
1759
+ SDK._version = 'v1.116.8-beta';
1760
1760
 
1761
1761
  var ACCESS_HEADER_NAME = {
1762
1762
  accessToken: 'x-access-token',
@@ -1760,7 +1760,7 @@
1760
1760
  version: 'x-sdk-version',
1761
1761
  type: 'x-sdk-type'
1762
1762
  });
1763
- SDK._version = 'v1.116.6-beta';
1763
+ SDK._version = 'v1.116.8-beta';
1764
1764
 
1765
1765
  var ACCESS_HEADER_NAME = {
1766
1766
  accessToken: 'x-access-token',