konnektive-one 1.2.2 → 1.5.0
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/dist/engine.js +1 -1
- package/package.json +4 -2
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "konnektive-one",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Konnektive / CheckoutChamp checkout engine
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "Konnektive / CheckoutChamp checkout engine — single-bundle (jQuery + sweetalert2). Load dist/engine.js with a data-config attribute pointing at your OPconfig.js.",
|
|
5
5
|
"main": "dist/engine.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
"glob": "^7.2.0",
|
|
61
61
|
"http-server": "^14.1.0",
|
|
62
62
|
"jest": "^30.4.2",
|
|
63
|
+
"jest-environment-jsdom": "^30.5.2",
|
|
64
|
+
"jquery-1.12": "npm:jquery@^1.12.4",
|
|
63
65
|
"npm-watch": "^0.11.0",
|
|
64
66
|
"rimraf": "^3.0.2",
|
|
65
67
|
"webpack": "^5.72.0",
|
package/readme.md
CHANGED
|
@@ -49,10 +49,8 @@ PaymentEngine.init({
|
|
|
49
49
|
servicePhone: '1-800-000-0000',
|
|
50
50
|
|
|
51
51
|
// ZIP autofill + country filtering
|
|
52
|
-
zipProvider: '', // '' = basic USPS lookup, 'google' = Google Places
|
|
53
52
|
zipCityPlaceholder: 'City',
|
|
54
53
|
zipFeedback: false,
|
|
55
|
-
zipExtendedDropdown: false,
|
|
56
54
|
countries: 'US', // 'all' | 'US' | 'US,CA'
|
|
57
55
|
countriesExcept: '',
|
|
58
56
|
|
|
@@ -81,6 +79,8 @@ your page scripts. `shippingID` is the Konnektive shipping profile.
|
|
|
81
79
|
| `piiFields` | the `cShip*` / `cEmail` / `cPhone2` set | Fields withheld from the URL. A **denylist**: anything not listed passes through, so unknown affiliate/tracking params survive. Setting it **replaces** the default list — restate the defaults you still want. |
|
|
82
80
|
| `quickLeadOnBlur` | `false` | Two-page funnels only: keep a partial lead fresh on every shipping-field blur. One-page checkouts (`data-onePageCheckout="true"`) already do this. Opt-in because it issues a `/leads/import` per blur. |
|
|
83
81
|
| `pageExtension` | `'.html'` | Extension the engine puts on in-funnel links (`bonus2`, `thankyou`). **Set `''` on hosts that serve extensionless routes** (Cloudflare Workers Assets, Netlify, Vercel), or every navigation eats a redirect. |
|
|
82
|
+
| `checkoutGatewayURL` | `''` (off) | Bot protection. When set, click → lead → order → gift/upsell go to this checkout-gateway (JSON body, `X-Session-Id`, `X-Idempotency-Key` on orders) instead of `konnektiveAPIURL`. **The gateway must allow the funnel's host first**, or every checkout fails. Presell, order queries and refunds still use `konnektiveAPIURL`. |
|
|
83
|
+
| `turnstileEnabled` / `turnstileSiteKey` | `false` / `''` | Cloudflare Turnstile token on gateway orders. Only used with `checkoutGatewayURL`. The gateway's per-session mode (`on` blocks the order without a token, `watch` tries for 5 s then sends anyway, `off`) overrides `turnstileEnabled` when it sends one. `turnstileEnabled: true` without a site key blocks every order unless the ts-bypass cookie is active. |
|
|
84
84
|
| `passThruParams` | `clickid, msclkid, refd, trk` | Params forwarded past checkout to bonus/thankyou. Also **replaces** wholesale — restate the defaults. |
|
|
85
85
|
|
|
86
86
|
## 3. Config-dependent page scripts
|