@quantaroute/checkout 1.7.4 → 1.8.1
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/CHANGELOG.md +20 -0
- package/README.md +112 -951
- package/dist/embed/quantaroute-checkout.css +1 -0
- package/dist/embed/quantaroute-checkout.js +28 -0
- package/dist/lib/quantaroute-checkout.es.js +2 -2
- package/dist/lib/quantaroute-checkout.umd.js +2 -2
- package/package.json +13 -13
- package/src/components/CheckoutWidget.native.tsx +7 -1
- package/src/components/CheckoutWidget.tsx +4 -3
- package/src/components/MapPinSelector.native.tsx +8 -3
- package/src/core/map-runtime.ts +4 -0
- package/src/embed/handoff.ts +131 -0
- package/src/embed/index.tsx +380 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@ Release dates are from git history where available; earlier versions are estimat
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.8.1] — 2026-11-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Native map**: the native widget never passed a maps key, so `maps.quantaroute.com` refused the style (403). It now passes `mapsKey` (defaulting to `apiKey`), and the native search gets `apiKey` too. Without a key, the native map falls back to Carto Positron.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- The hosted checkout functions URL is now the default, so `supabaseFunctionBaseUrl` / `data-functions-url` / `functionsUrl` are optional, and on web `mapsKey` defaults to `apiKey`. A setup needs only `merchantId` and the public `dp_` key.
|
|
19
|
+
- README rewritten for developers: platform support (native is address capture only; sign-in is web only), keys, server-side verification, funnel events.
|
|
20
|
+
- The npm package no longer ships test files, and the broken `repository` / `bugs` links are removed.
|
|
21
|
+
|
|
22
|
+
## [1.8.0] — 2026-11-16
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- **Script-tag embed** for any website (WooCommerce, Wix, custom stacks), no React or framework needed: `dist/embed/quantaroute-checkout.js` + `.css`, served from jsDelivr/unpkg. Configure with `data-*` attributes or `QuantaRouteCheckout.init({...})`. Intercepts the merchant's own Checkout button, opens the checkout as a modal, then redirects (`redirectUrl` with `{sessionId}`, `{digipin}`, … placeholders) or calls `onComplete`. The merchant's own payment gateway takes payment; the embed never touches it. Emits `quantaroute:open|close|complete|event` window events. Also exposed as `@quantaroute/checkout/embed`.
|
|
27
|
+
- **`checkout-admin?action=session&session_id=…`**: lets a merchant's server read back the verified address, buyer and session status with the secret admin key, instead of trusting browser values. Documented in `openapi.yaml`.
|
|
28
|
+
- `npm run build:embed` and `npm test` (unit tests for the embed's URL and config helpers).
|
|
29
|
+
|
|
10
30
|
## [1.7.4](https://github.com/quantaroute/checkout/compare/v1.7.3...v1.7.4) — 2026-11-14
|
|
11
31
|
|
|
12
32
|
### Added
|