Skip to content

Commit c5dfddd

Browse files
fix: remove purl references and update stale secret_key docs (#87)
* fix: remove purl references and update stale secret_key docs - Remove purl.tempo.xyz prerequisite and CLI usage from api-server example - Replace with pympp client command - Fix stale docs claiming secret_key is auto-generated and persisted to .env (v0.4.0 requires explicit MPP_SECRET_KEY or secret_key param) * chore: add changelog --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent dc3136a commit c5dfddd

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.changelog/keen-slugs-slide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
pympp: patch
3+
---
4+
5+
Updated `examples/api-server/README.md` to replace references to the external `purl` tool with the `pympp` client (`python -m mpp.fetch`) and corrected the `secret_key` documentation to reflect that it is read from the `MPP_SECRET_KEY` env var rather than auto-generated.

examples/api-server/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ A FastAPI server with payment-protected endpoints using the Machine Payments Pro
1212

1313
- Python 3.10+
1414
- [uv](https://docs.astral.sh/uv/) (recommended) or pip
15-
- [purl](https://purl.tempo.xyz/) for testing paid endpoints
1615

1716
## Installation
1817

@@ -47,10 +46,10 @@ curl http://localhost:8000/free
4746
# {"message":"This content is free!"}
4847
```
4948

50-
**Paid endpoint** (use purl to handle payment automatically):
49+
**Paid endpoint** (use the pympp client to handle payment automatically):
5150

5251
```bash
53-
purl http://localhost:8000/paid
52+
python -m mpp.fetch http://localhost:8000/paid
5453
# {"message":"This is paid content!","payer":"0x...","tx":"0x..."}
5554
```
5655

@@ -77,7 +76,7 @@ server = Mpp.create(
7776

7877
`Mpp.create()` sets up the payment handler with smart defaults:
7978
- **realm** auto-detected from environment (`MPP_REALM`, `VERCEL_URL`, etc.)
80-
- **secret_key** auto-generated and persisted to `.env`
79+
- **secret_key** read from `MPP_SECRET_KEY` env var (or passed explicitly)
8180
- **currency** and **recipient** configured once on the method
8281

8382
### Charging

0 commit comments

Comments
 (0)