@qredex/svelte 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -38,6 +38,14 @@ npm install @qredex/svelte
38
38
 
39
39
  Call `useQredexAgent()`, then forward merchant cart state with `agent.handleCartChange(...)`, read the PIT with `agent.getPurchaseIntentToken()`, and clear attribution with `agent.handleCartEmpty()`. Only call `agent.handlePaymentSuccess()` if your platform has no cart-empty step after checkout.
40
40
 
41
+ ## Merchant Integration Checklist
42
+
43
+ - Initialize the wrapper in the cart surface you already own
44
+ - Report every real merchant cart transition with `agent.handleCartChange(...)`
45
+ - Read PIT during checkout or order assembly
46
+ - Send `order + PIT` to your backend or direct ingestion path
47
+ - Clear attribution with `agent.handleCartEmpty()` or `agent.handlePaymentSuccess()`
48
+
41
49
  ## Recommended Integration
42
50
 
43
51
  Use `useQredexAgent()` inside the existing cart surface you already own. The wrapper stays headless.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qredex/svelte",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Svelte wrapper for Qredex Agent",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -22,7 +22,7 @@
22
22
  "build": "tsc -p tsconfig.json"
23
23
  },
24
24
  "dependencies": {
25
- "@qredex/agent": "^1.1.0"
25
+ "@qredex/agent": "^1.1.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@qredex/agent": "file:../.."