@praxium/sdk 0.4.83 → 0.4.85
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 +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,6 +73,7 @@ const result = await client.submitContactForm({
|
|
|
73
73
|
phone: '+31612345678',
|
|
74
74
|
subject: 'Appointment request',
|
|
75
75
|
message: 'I would like to book an appointment.',
|
|
76
|
+
acceptTerms: true, // required — must reflect the visitor's explicit consent
|
|
76
77
|
})
|
|
77
78
|
// → { success: true, emailStatus: 'sent' }
|
|
78
79
|
```
|
|
@@ -86,7 +87,7 @@ Your website needs two environment variables to connect to the Praxium platform,
|
|
|
86
87
|
| Variable | Purpose | Example |
|
|
87
88
|
|----------|---------|---------|
|
|
88
89
|
| `PRAXIUM_API_URL` | Your tenant's admin portal URL. The SDK sends API requests to this host. | `https://mypractice.admin.praxium.nl` |
|
|
89
|
-
| `PRAXIUM_API_KEY` | HMAC API key for authentication. Generated in the admin portal under API Profiles. The tenant slug
|
|
90
|
+
| `PRAXIUM_API_KEY` | HMAC API key for authentication. Generated in the admin portal under API Profiles. The tenant slug AND the API profile slug are both embedded in the key — no need to configure them separately. | `praxium_v1_mypractice_public-team_17..._abc...` |
|
|
90
91
|
|
|
91
92
|
**Optional (only if using ISR revalidation webhooks):**
|
|
92
93
|
|
|
@@ -97,7 +98,7 @@ Your website needs two environment variables to connect to the Praxium platform,
|
|
|
97
98
|
```bash
|
|
98
99
|
# .env.local
|
|
99
100
|
PRAXIUM_API_URL="https://mypractice.admin.praxium.nl"
|
|
100
|
-
PRAXIUM_API_KEY="
|
|
101
|
+
PRAXIUM_API_KEY="praxium_v1_mypractice_public-team_1234567890_abcdef..."
|
|
101
102
|
PRAXIUM_WEBHOOK_SECRET="your-webhook-secret-from-admin-portal" # optional
|
|
102
103
|
```
|
|
103
104
|
|