@qredex/angular 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.
- package/README.md +8 -0
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,6 +38,14 @@ npm install @qredex/angular
|
|
|
38
38
|
|
|
39
39
|
Call `provideQredexAgent()` once at bootstrap, get the runtime with `injectQredexAgent()`, 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
|
+
- Register `provideQredexAgent()` once at bootstrap
|
|
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
|
Register `provideQredexAgent()` once, then call `injectQredexAgent()` inside the existing cart surface you already control.
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare const QREDEX_AGENT: InjectionToken<{
|
|
|
25
25
|
hasPurchaseIntentToken: typeof import("@qredex/agent").hasPurchaseIntentToken;
|
|
26
26
|
getState: typeof import("@qredex/agent").getState;
|
|
27
27
|
lockIntent: typeof import("@qredex/agent").lockIntent;
|
|
28
|
-
clearIntent: ()
|
|
28
|
+
clearIntent: typeof import("@qredex/agent").clearIntent;
|
|
29
29
|
handleCartChange: typeof import("@qredex/agent").handleCartChange;
|
|
30
30
|
handleCartAdd: typeof import("@qredex/agent").handleCartAdd;
|
|
31
31
|
handleCartEmpty: typeof import("@qredex/agent").handleCartEmpty;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qredex/angular",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Angular 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.
|
|
25
|
+
"@qredex/agent": "^1.1.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@qredex/agent": "file:../.."
|