openreceive 0.4.31 → 0.4.32

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/openreceive/version.rb +1 -1
  4. data/skills/integrate-openreceive/references/astro.md +16 -5
  5. data/skills/integrate-openreceive/references/bolt.md +3 -3
  6. data/skills/integrate-openreceive/references/btcpay.md +1 -1
  7. data/skills/integrate-openreceive/references/django.md +16 -5
  8. data/skills/integrate-openreceive/references/edd.md +4 -4
  9. data/skills/integrate-openreceive/references/fastapi.md +15 -4
  10. data/skills/integrate-openreceive/references/fastify.md +18 -5
  11. data/skills/integrate-openreceive/references/flask.md +16 -5
  12. data/skills/integrate-openreceive/references/fossbilling.md +14 -11
  13. data/skills/integrate-openreceive/references/laravel.md +16 -5
  14. data/skills/integrate-openreceive/references/lovable.md +2 -2
  15. data/skills/integrate-openreceive/references/medusa.md +1 -1
  16. data/skills/integrate-openreceive/references/mobile.md +1 -1
  17. data/skills/integrate-openreceive/references/nestjs.md +18 -5
  18. data/skills/integrate-openreceive/references/next.md +18 -5
  19. data/skills/integrate-openreceive/references/node.md +23 -5
  20. data/skills/integrate-openreceive/references/nuxt.md +16 -5
  21. data/skills/integrate-openreceive/references/odoo.md +11 -11
  22. data/skills/integrate-openreceive/references/paymenter.md +5 -5
  23. data/skills/integrate-openreceive/references/php.md +15 -4
  24. data/skills/integrate-openreceive/references/prestashop.md +6 -6
  25. data/skills/integrate-openreceive/references/rails.md +16 -5
  26. data/skills/integrate-openreceive/references/react-router.md +16 -5
  27. data/skills/integrate-openreceive/references/sveltekit.md +15 -4
  28. data/skills/integrate-openreceive/references/tanstack-start.md +16 -5
  29. data/skills/integrate-openreceive/references/vendure.md +1 -1
  30. data/skills/integrate-openreceive/references/woocommerce.md +5 -5
  31. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e14b1d9f9ff049eeb46e718b76e4f22ed33c762e18a395191d5a3644f9099d06
4
- data.tar.gz: 86668b11e568545b70037fe04d7bd0a48e10f6e8bf4c0cc611dcceddd1c716a3
3
+ metadata.gz: 3889e79c57d77dd7f90037de3b98eb97ddad7002f32fb19ed076f358031769fe
4
+ data.tar.gz: 90d6b8b3a80e35d939f73c9cb3491b46632664ac2b83e2958a0438c990900918
5
5
  SHA512:
6
- metadata.gz: 408b766d25f9ab3f488cacb2a3f144804d93e1ad3c596275f5542e80399eac04203399c4e4b5d410b8f76d3c823d4857a3e39e6f74bbefd281366af634e44efb
7
- data.tar.gz: e68e45763fa2e972e199ea036496a6c7d865e572763398b0fab0cd1e06c97e3c4016fb759606575354a88b0a70ed18f62c245bbae1e29a8cc406ba20ebbce71f
6
+ metadata.gz: 73bc2e4d14d31ecb79397659d0bb396b51c5a199e6e3e0952987c1f727151cbdabe390ef1773ced907f8ef4c4bd88bab883a23908e1389db9795a63e4e46da8f
7
+ data.tar.gz: 12e6315678fa08b4954d39891cb04bc1f83fb5904ea02256f22937538101c504df1358f37e2fee19a5aa9575bdd39e0a9409c6b9e31dab024e60688836ce95a8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.32 - 2026-11-07
4
+
5
+ Release with the complete 0.4.32 package family. No Ruby runtime changes
6
+ from 0.4.31.
7
+
3
8
  ## 0.4.31 - 2026-10-20
4
9
 
5
10
  Release with the complete 0.4.31 package family. The gem's summary names
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenReceive
4
- VERSION = "0.4.31"
4
+ VERSION = "0.4.32"
5
5
  end
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (Astro)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 35 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 36 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/astro/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/astro/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to an Astro site — the one you are already working in, on
23
23
  `@astrojs/node`. OpenReceive ships no Astro package: the integration is one
@@ -64,8 +64,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
64
64
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
65
65
  it sets without printing them. Check with that, here and after each write,
66
66
  not by reading the file, and never print the values. A code that is already
67
- set is not asked for again; if both are set, skip to step 5 (making the
68
- server load the file), then the quickstart.
67
+ set is not asked for again; if both are set, make sure `.gitignore` covers
68
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
69
+ (making the server load the file), then the quickstart.
69
70
 
70
71
  On a hosted builder (v0, Vercel, Replit, Lovable), the user may say instead
71
72
  that both codes are already set as the project's environment variables or
@@ -221,7 +222,8 @@ itself, and they hold for every integration.
221
222
  environment (`printenv`, `env`, `docker compose config`), even filtered to
222
223
  names.
223
224
  - The host owns the price. `amountFor` reads it from your own data; reject
224
- payer-supplied amounts.
225
+ payer-supplied amounts. A donation is no exception: its amount is saved
226
+ by your own route first (Donations, below).
225
227
  - `authorize` runs on every request, and the `resource` it receives is a CLAIM
226
228
  the payer made, not proof. Read a framework session; never trust a body field.
227
229
  - `onPaid` must be idempotent. Its database fulfillment commits once per `reference` — your order id, one
@@ -315,6 +317,15 @@ products, and you do not join them.
315
317
  live catalog lookup that could re-price a cart already placed. Return
316
318
  `{ currency, value }` as a decimal STRING, plus a `description` of what they
317
319
  are buying.
320
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
321
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
322
+ posts it to your own handler, which checks it and saves it on a new donation
323
+ row, made like an order. That row's id is the `reference`, and `amountFor`
324
+ reads the amount from the row, as it does for an order. Check it in that
325
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
326
+ at most two decimal places. Refuse an amount outside them with a message;
327
+ never round it. Small amounts may be Lightning-only for some coins: the
328
+ checkout says which coins an amount is too small for.
318
329
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
319
330
  same ownership check this app already uses on the order show / pay page —
320
331
  `context.cookies`, `context.locals.user`, whatever it is. `native` is the
@@ -17,7 +17,7 @@ If your fetch tool gave you a summary, fetch that URL again for the full text.
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start Step 1 only once NWC_URI is saved, and LSC_URI_PRIMARY is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to this Bolt app: a Vite React app on Bolt Cloud, with Bolt
23
23
  Database or a connected Supabase project as its database, and Supabase Edge
@@ -123,8 +123,8 @@ explicitly declined.
123
123
 
124
124
  ## Step 1 — the packages
125
125
 
126
- Add `@openreceive/react` at 0.4.31 or newer to the app's
127
- `package.json`. The function imports `npm:@openreceive/http@^0.4.31`
126
+ Add `@openreceive/react` at 0.4.32 or newer to the app's
127
+ `package.json`. The function imports `npm:@openreceive/http@^0.4.32`
128
128
  and `npm:@supabase/supabase-js@2` directly; add nothing else. (The recipe
129
129
  below writes `^0.4.27`, the oldest release with the `cors` option; both
130
130
  resolve to the newest 0.4.x.) No `pg`, no
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/btcpay/full.md
17
17
  - Never tick the spend-capable override to make a save succeed.
18
18
  - Do not suggest rotating or revoking a code because it was pasted here.
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Connect a BTCPay Server store to a receive-only NWC wallet with the OpenReceive
23
23
  plugin, and optionally let payers pay BTCPay invoices with USDT, USDC, ETH or
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (Django)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 48 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 49 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/django/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/django/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to a Django project — the app you are already working in. You
23
23
  do not need a copy of the OpenReceive source: the Python package is on PyPI
@@ -65,8 +65,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
65
65
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
66
66
  it sets without printing them. Check with that, here and after each write,
67
67
  not by reading the file, and never print the values. A code that is already
68
- set is not asked for again; if both are set, skip to step 5 (making the
69
- server load the file), then the quickstart.
68
+ set is not asked for again; if both are set, make sure `.gitignore` covers
69
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
70
+ (making the server load the file), then the quickstart.
70
71
 
71
72
  Otherwise your next action is a question to the user. Do not install the package,
72
73
  edit the app, write `.env.example`, or search anywhere else before asking
@@ -220,7 +221,8 @@ itself, and they hold for every integration.
220
221
  environment (`printenv`, `env`, `docker compose config`), even filtered to
221
222
  names.
222
223
  - The host owns the price. `amount_for` reads it from your own data;
223
- reject payer-supplied amounts.
224
+ reject payer-supplied amounts. A donation is no exception: its amount is saved
225
+ by your own route first (Donations, below).
224
226
  - `authorize` runs on every request, and the `resource` it receives is a
225
227
  CLAIM the payer made, not proof. Read the framework session; never trust a
226
228
  body field. `openreceive_install` writes `authorize = staticmethod(ALLOW_ALL_AUTHORIZE)`,
@@ -299,6 +301,15 @@ products, and you do not join them.
299
301
  live catalog lookup that could re-price a cart already placed. Return
300
302
  `{"currency": ..., "value": ...}` with `value` a decimal STRING, plus a
301
303
  `description` of what they are buying.
304
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
305
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
306
+ posts it to your own handler, which checks it and saves it on a new donation
307
+ row, made like an order. That row's id is the `reference`, and `amount_for`
308
+ reads the amount from the row, as it does for an order. Check it in that
309
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
310
+ at most two decimal places. Refuse an amount outside them with a message;
311
+ never round it. Small amounts may be Lightning-only for some coins: the
312
+ checkout says which coins an amount is too small for.
302
313
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
303
314
  same ownership check this app already uses on the order detail / pay view —
304
315
  `request.user`, `request.session`, a signed cookie, whatever it is. Keep
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/edd/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Setup is done only when the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Install and configure the OpenReceive payment gateway in the Easy Digital
23
23
  Downloads (EDD) store you are working in. Preserve its theme, checkout,
@@ -96,7 +96,7 @@ is saved or the user said "Bitcoin only". Never invent a placeholder code.
96
96
  Install this release from the WordPress.org plugin directory:
97
97
 
98
98
  ```sh
99
- wp plugin install openreceive --version=0.4.31 --activate
99
+ wp plugin install openreceive --version=0.4.32 --activate
100
100
  ```
101
101
 
102
102
  If that fails because WordPress.org does not have this version yet, install
@@ -104,7 +104,7 @@ the ZIP attached to the same GitHub release. Never install the GitHub
104
104
  source-code ZIP or a ZIP from an older release:
105
105
 
106
106
  ```sh
107
- wp plugin install https://github.com/OpenReceive/openreceive/releases/download/v0.4.31/openreceive-wordpress-0.4.31.zip --activate
107
+ wp plugin install https://github.com/OpenReceive/openreceive/releases/download/v0.4.32/openreceive-wordpress-0.4.32.zip --activate
108
108
  ```
109
109
 
110
110
  It needs Easy Digital Downloads active, and PHP 8.2+ with GMP and sodium in
@@ -257,7 +257,7 @@ activate it. With WP-CLI, run `wp plugin install openreceive --activate`.
257
257
 
258
258
  Each GitHub release also attaches the plugin as a ZIP, for a site that cannot
259
259
  reach WordPress.org:
260
- [openreceive-wordpress-0.4.31.zip](https://github.com/OpenReceive/openreceive/releases/download/v0.4.31/openreceive-wordpress-0.4.31.zip).
260
+ [openreceive-wordpress-0.4.32.zip](https://github.com/OpenReceive/openreceive/releases/download/v0.4.32/openreceive-wordpress-0.4.32.zip).
261
261
  Install it through **Plugins → Add New → Upload Plugin**. The GitHub
262
262
  source-code ZIP is not an installable plugin.
263
263
 
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/fastapi/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to a FastAPI application — the app you are already working in.
23
23
  You do not need a copy of the OpenReceive source: the engine is on PyPI
@@ -65,8 +65,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
65
65
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
66
66
  it sets without printing them. Check with that, here and after each write,
67
67
  not by reading the file, and never print the values. A code that is already
68
- set is not asked for again; if both are set, skip to step 5 (making the
69
- server load the file), then the quickstart.
68
+ set is not asked for again; if both are set, make sure `.gitignore` covers
69
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
70
+ (making the server load the file), then the quickstart.
70
71
 
71
72
  Otherwise your next action is a question to the user. Do not install packages,
72
73
  edit the app, write `.env.example`, or search anywhere else before asking
@@ -220,7 +221,8 @@ itself, and they hold for every integration.
220
221
  environment (`printenv`, `env`, `docker compose config`), even filtered to
221
222
  names.
222
223
  - The host owns the price. `amount_for` reads it from your own data; reject
223
- payer-supplied amounts.
224
+ payer-supplied amounts. A donation is no exception: its amount is saved
225
+ by your own route first (Donations, below).
224
226
  - `authorize` runs on every request, and the `resource` it receives is a CLAIM
225
227
  the payer made, not proof. Read the Starlette request's session, cookie or
226
228
  auth dependency; never trust a body field.
@@ -305,6 +307,15 @@ orders, users, or products, and you do not join them.
305
307
  live catalog lookup that could re-price a cart already placed. Return
306
308
  `{"currency", "value"}` as a decimal STRING, plus a `description` of what
307
309
  they are buying.
310
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
311
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
312
+ posts it to your own handler, which checks it and saves it on a new donation
313
+ row, made like an order. That row's id is the `reference`, and `amount_for`
314
+ reads the amount from the row, as it does for an order. Check it in that
315
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
316
+ at most two decimal places. Refuse an amount outside them with a message;
317
+ never round it. Small amounts may be Lightning-only for some coins: the
318
+ checkout says which coins an amount is too small for.
308
319
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
309
320
  same ownership check this app already uses on the order show / pay page —
310
321
  the `current_user` dependency, a session cookie, whatever it is, resolved
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (Fastify)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 41 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 42 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/fastify/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/fastify/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to a Fastify application — the app you are already working in.
23
23
  You do not need a copy of the OpenReceive source: the packages are on npm, and
@@ -62,8 +62,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
62
62
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
63
63
  it sets without printing them. Check with that, here and after each write,
64
64
  not by reading the file, and never print the values. A code that is already
65
- set is not asked for again; if both are set, skip to step 5 (making the
66
- server load the file), then the quickstart.
65
+ set is not asked for again; if both are set, make sure `.gitignore` covers
66
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
67
+ (making the server load the file), then the quickstart.
67
68
 
68
69
  Otherwise your next action is a question to the user. Do not install packages,
69
70
  edit the app, write `.env.example`, or search anywhere else before asking
@@ -208,7 +209,8 @@ itself, and they hold for every integration.
208
209
  environment (`printenv`, `env`, `docker compose config`), even filtered to
209
210
  names.
210
211
  - The host owns the price. `amountFor` reads it from your own data; reject
211
- payer-supplied amounts.
212
+ payer-supplied amounts. A donation is no exception: its amount is saved
213
+ by your own route first (Donations, below).
212
214
  - `authorize` runs on every request, and the `resource` it receives is a CLAIM
213
215
  the payer made, not proof. Read a framework session; never trust a body field.
214
216
  - `onPaid` must be idempotent. Its database fulfillment commits once per `reference` — your order id, one
@@ -285,6 +287,15 @@ products, and you do not join them.
285
287
  live catalog lookup that could re-price a cart already placed. Return
286
288
  `{ currency, value }` as a decimal STRING, plus a `description` of what they
287
289
  are buying.
290
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
291
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
292
+ posts it to your own handler, which checks it and saves it on a new donation
293
+ row, made like an order. That row's id is the `reference`, and `amountFor`
294
+ reads the amount from the row, as it does for an order. Check it in that
295
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
296
+ at most two decimal places. Refuse an amount outside them with a message;
297
+ never round it. Small amounts may be Lightning-only for some coins: the
298
+ checkout says which coins an amount is too small for.
288
299
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
289
300
  same ownership check this app already uses on the order show / pay page —
290
301
  `sessions.currentUser(native)`, a cookie, whatever it is. Pass `native` (the
@@ -495,6 +506,8 @@ there is nothing else to generate. Details:
495
506
 
496
507
  No ORM? You can pass a bare driver handle (`pg`, `node:sqlite`,
497
508
  `better-sqlite3`) as the `db` in step 4. The scaffold has no flavor for it.
509
+ `node:sqlite` needs Node 22.13 or newer: before that it sits behind
510
+ `--experimental-sqlite`.
498
511
  Instead of scaffolding, run the same DDL once yourself, using
499
512
  `paymentsSchemaSql(dialect)` from `@openreceive/http`. Your adapter already
500
513
  pulls that package in, but this import is yours, so install it too:
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (Flask)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 45 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 46 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/flask/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/flask/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to a Flask application — the app you are already working in.
23
23
  You do not need a copy of the OpenReceive source: the engine is on PyPI
@@ -67,8 +67,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
67
67
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
68
68
  it sets without printing them. Check with that, here and after each write,
69
69
  not by reading the file, and never print the values. A code that is already
70
- set is not asked for again; if both are set, skip to step 5 (making the
71
- server load the file), then the quickstart.
70
+ set is not asked for again; if both are set, make sure `.gitignore` covers
71
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
72
+ (making the server load the file), then the quickstart.
72
73
 
73
74
  Otherwise your next action is a question to the user. Do not install packages,
74
75
  edit the app, write `.env.example`, or search anywhere else before asking
@@ -224,7 +225,8 @@ itself, and they hold for every integration.
224
225
  environment (`printenv`, `env`, `docker compose config`), even filtered to
225
226
  names.
226
227
  - The host owns the price. `amount_for` reads it from your own data; reject
227
- payer-supplied amounts.
228
+ payer-supplied amounts. A donation is no exception: its amount is saved
229
+ by your own route first (Donations, below).
228
230
  - `authorize` runs on every request, and the `resource` it receives is a CLAIM
229
231
  the payer made, not proof. Read Flask's `session` or Flask-Login's
230
232
  `current_user`; never trust a body field.
@@ -312,6 +314,15 @@ orders, users, or products, and you do not join them.
312
314
  live catalog lookup that could re-price a cart already placed. Return
313
315
  `{"currency", "value"}` as a decimal STRING, plus a `description` of what
314
316
  they are buying.
317
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
318
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
319
+ posts it to your own handler, which checks it and saves it on a new donation
320
+ row, made like an order. That row's id is the `reference`, and `amount_for`
321
+ reads the amount from the row, as it does for an order. Check it in that
322
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
323
+ at most two decimal places. Refuse an amount outside them with a message;
324
+ never round it. Small amounts may be Lightning-only for some coins: the
325
+ checkout says which coins an amount is too small for.
315
326
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
316
327
  same ownership check this app already uses on the order show / pay page —
317
328
  Flask-Login's `current_user`, an id in `session`, whatever it is. It runs
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (FOSSBilling)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 24 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 25 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/fossbilling/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/fossbilling/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Setup is done only when the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Install and configure the OpenReceive payment method in the FOSSBilling
23
23
  billing panel you are working in. Preserve its theme, clients, products,
@@ -121,7 +121,7 @@ Docker image, download and unpack it inside the container, as the web user,
121
121
  then activate the module:
122
122
 
123
123
  ```sh
124
- docker compose exec -T -u www-data fossbilling sh -c 'curl -fsSLO https://github.com/OpenReceive/openreceive/releases/download/v0.4.31/openreceive-fossbilling-0.4.31.zip && unzip -oq openreceive-fossbilling-0.4.31.zip && rm openreceive-fossbilling-0.4.31.zip'
124
+ docker compose exec -T -u www-data fossbilling sh -c 'curl -fsSLO https://github.com/OpenReceive/openreceive/releases/download/v0.4.32/openreceive-fossbilling-0.4.32.zip && unzip -oq openreceive-fossbilling-0.4.32.zip && rm openreceive-fossbilling-0.4.32.zip'
125
125
  docker compose exec -T -u www-data fossbilling php modules/Openreceive/activate.php
126
126
  ```
127
127
 
@@ -276,9 +276,9 @@ routes, console commands and cron hook), and
276
276
 
277
277
  ```sh
278
278
  cd /var/www/fossbilling
279
- curl -fsSLO https://github.com/OpenReceive/openreceive/releases/download/v0.4.31/openreceive-fossbilling-0.4.31.zip
280
- unzip -oq openreceive-fossbilling-0.4.31.zip
281
- rm openreceive-fossbilling-0.4.31.zip
279
+ curl -fsSLO https://github.com/OpenReceive/openreceive/releases/download/v0.4.32/openreceive-fossbilling-0.4.32.zip
280
+ unzip -oq openreceive-fossbilling-0.4.32.zip
281
+ rm openreceive-fossbilling-0.4.32.zip
282
282
  chown -R www-data:www-data modules/Openreceive library/Payment/Adapter/OpenReceive
283
283
  sudo -u www-data php modules/Openreceive/activate.php
284
284
  ```
@@ -304,10 +304,13 @@ installable extension.
304
304
 
305
305
  Each release also attaches `openreceive-fossbilling-module-<version>.zip`:
306
306
  the module alone, with its files at the top of the ZIP rather than inside
307
- `modules/Openreceive`. That is the package FOSSBilling's extension directory
308
- installs. Its **Install** button unpacks the ZIP into `modules/Openreceive`,
309
- and activating OpenReceive under **Extensions** then writes the payment
310
- gateway, as above. Both ZIPs hold the same module.
307
+ `modules/Openreceive`. That is the package
308
+ [FOSSBilling's extension directory](https://extensions.fossbilling.org/extension/openreceive)
309
+ lists and installs. Its **Install** button unpacks the ZIP into
310
+ `modules/Openreceive`, and activating OpenReceive under **Extensions** then
311
+ writes the payment gateway, as above. Both ZIPs hold the same module. The
312
+ directory gets a new version only when a release matters to FOSSBilling
313
+ sites, so it can list an older version than the latest release.
311
314
 
312
315
  #### FOSSBilling in Docker
313
316
 
@@ -330,7 +333,7 @@ Run every command inside the container, in `/var/www/html`, as its web user
330
333
  `www-data`. Unpack the release there too:
331
334
 
332
335
  ```sh
333
- docker compose exec -T -u www-data fossbilling sh -c 'curl -fsSLO https://github.com/OpenReceive/openreceive/releases/download/v0.4.31/openreceive-fossbilling-0.4.31.zip && unzip -oq openreceive-fossbilling-0.4.31.zip && rm openreceive-fossbilling-0.4.31.zip'
336
+ docker compose exec -T -u www-data fossbilling sh -c 'curl -fsSLO https://github.com/OpenReceive/openreceive/releases/download/v0.4.32/openreceive-fossbilling-0.4.32.zip && unzip -oq openreceive-fossbilling-0.4.32.zip && rm openreceive-fossbilling-0.4.32.zip'
334
337
  docker compose exec -T -u www-data fossbilling php modules/Openreceive/activate.php
335
338
  ```
336
339
 
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (Laravel)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 46 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 47 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/laravel/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/laravel/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to a Laravel application — the app you are already working in.
23
23
  You do not need a copy of the OpenReceive source: the package is on Packagist
@@ -63,8 +63,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
63
63
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
64
64
  it sets without printing them. Check with that, here and after each write,
65
65
  not by reading the file, and never print the values. A code that is already
66
- set is not asked for again; if both are set, skip to step 5 (making the
67
- server load the file), then the quickstart.
66
+ set is not asked for again; if both are set, make sure `.gitignore` covers
67
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
68
+ (making the server load the file), then the quickstart.
68
69
 
69
70
  Otherwise your next action is a question to the user. Do not install the package,
70
71
  edit the app, write `.env.example`, or search anywhere else before asking
@@ -217,7 +218,8 @@ itself, and they hold for every integration.
217
218
  names. Doctor runs as an artisan command, so also open the checkout page:
218
219
  the web server can miss a code that doctor sees (step 5).
219
220
  - The host owns the price. `amountFor` reads it from your own data; reject
220
- payer-supplied amounts.
221
+ payer-supplied amounts. A donation is no exception: its amount is saved
222
+ by your own route first (Donations, below).
221
223
  - `authorize` runs on every request, and the `resource` it receives is a CLAIM
222
224
  the payer made, not proof. Read the Illuminate request it is handed — the
223
225
  session, `$request->user()`; never trust a body field. `openreceive:install`
@@ -291,6 +293,15 @@ not replace your orders, users, or products, and you do not join them.
291
293
  live catalog lookup that could re-price a cart already placed. Return
292
294
  `['currency' => …, 'value' => …]` with `value` a decimal STRING, plus a
293
295
  `description` of what they are buying.
296
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
297
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
298
+ posts it to your own handler, which checks it and saves it on a new donation
299
+ row, made like an order. That row's id is the `reference`, and `amountFor`
300
+ reads the amount from the row, as it does for an order. Check it in that
301
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
302
+ at most two decimal places. Refuse an amount outside them with a message;
303
+ never round it. Small amounts may be Lightning-only for some coins: the
304
+ checkout says which coins an amount is too small for.
294
305
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
295
306
  same ownership check this app already uses on the order show / pay page —
296
307
  `$request->user()`, a policy, a session key, an encrypted cookie, whatever
@@ -17,7 +17,7 @@ If your fetch tool gave you a summary, fetch that URL again for the full text.
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start Step 1 only once NWC_URI is saved, and LSC_URI_PRIMARY is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to this Lovable app: a TanStack Start app on Cloudflare
23
23
  Workers, with Lovable Cloud or a connected Supabase project as its database.
@@ -121,7 +121,7 @@ saved or explicitly declined.
121
121
 
122
122
  ## Step 1 — the packages
123
123
 
124
- Add `@openreceive/http` and `@openreceive/react` at 0.4.31 or newer.
124
+ Add `@openreceive/http` and `@openreceive/react` at 0.4.32 or newer.
125
125
  Nothing else: no `pg`, no Postgres driver, no OpenReceive scaffold. Do not
126
126
  change the Vite or Wrangler configuration.
127
127
 
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/medusa/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to the Medusa store you are working in: a Medusa server, and
23
23
  usually a storefront in its own project (Medusa's Next.js starter or another).
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/mobile/full.md
17
17
  - The app never decides paid: it asks the server. A link back to the app is navigation only.
18
18
  - Do not suggest rotating or revoking a code because it was pasted here.
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add Bitcoin checkout, with optional USDT, USDC, ETH and SOL, to a mobile app:
23
23
  React Native or Expo, Flutter, Swift or Kotlin. OpenReceive has no mobile SDK
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (NestJS)
4
4
 
5
5
  ```sh
6
- # READ THIS FIRST: this file is 43 KB and a summary drops required steps. Download it whole:
6
+ # READ THIS FIRST: this file is 44 KB and a summary drops required steps. Download it whole:
7
7
  curl -fsSL https://openreceive.org/agent-directions/nestjs/full.md
8
8
  # Skip the download only if you already have all of it: pasted, read from disk or fetched raw.
9
9
  ```
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/nestjs/full.md
17
17
  - Do not suggest rotating or revoking a code because it was pasted here.
18
18
  - Start the quickstart only once the NWC code is saved, and the LSC code is saved or the user said "Bitcoin only".
19
19
 
20
- These directions describe OpenReceive 0.4.31.
20
+ These directions describe OpenReceive 0.4.32.
21
21
 
22
22
  Add OpenReceive to a NestJS application — the app you are already working in,
23
23
  on Nest's default Express platform. You do not need a copy of the OpenReceive
@@ -62,8 +62,9 @@ Before anything else, check one file: the project's `.env`, if it exists.
62
62
  `grep -E '^(NWC_URI|LSC_URI_PRIMARY)=.' .env | cut -d= -f1` names the codes
63
63
  it sets without printing them. Check with that, here and after each write,
64
64
  not by reading the file, and never print the values. A code that is already
65
- set is not asked for again; if both are set, skip to step 5 (making the
66
- server load the file), then the quickstart.
65
+ set is not asked for again; if both are set, make sure `.gitignore` covers
66
+ `.env` (and `.dockerignore`, if the app has one), then skip to step 5
67
+ (making the server load the file), then the quickstart.
67
68
 
68
69
  On a hosted builder (v0, Vercel, Replit, Lovable), the user may say instead
69
70
  that both codes are already set as the project's environment variables or
@@ -227,7 +228,8 @@ itself, and they hold for every integration.
227
228
  environment (`printenv`, `env`, `docker compose config`), even filtered to
228
229
  names.
229
230
  - The host owns the price. `amountFor` reads it from your own data; reject
230
- payer-supplied amounts.
231
+ payer-supplied amounts. A donation is no exception: its amount is saved
232
+ by your own route first (Donations, below).
231
233
  - `authorize` runs on every request, and the `resource` it receives is a CLAIM
232
234
  the payer made, not proof. Read a framework session; never trust a body field.
233
235
  - `onPaid` must be idempotent. Its database fulfillment commits once per `reference` — your order id, one
@@ -300,6 +302,15 @@ products, and you do not join them.
300
302
  live catalog lookup that could re-price a cart already placed. Return
301
303
  `{ currency, value }` as a decimal STRING, plus a `description` of what they
302
304
  are buying.
305
+ - **Donations and pay-what-you-want are fine.** The amount is the payer's
306
+ choice, so it enters through YOUR route, never OpenReceive's: the donate form
307
+ posts it to your own handler, which checks it and saves it on a new donation
308
+ row, made like an order. That row's id is the `reference`, and `amountFor`
309
+ reads the amount from the row, as it does for an order. Check it in that
310
+ handler: a floor and a cap ($1 and $10,000 unless the owner gave others) and
311
+ at most two decimal places. Refuse an amount outside them with a message;
312
+ never round it. Small amounts may be Lightning-only for some coins: the
313
+ checkout says which coins an amount is too small for.
303
314
  - **Users own the order; OpenReceive never sees them.** `authorize` uses the
304
315
  same ownership check this app already uses on the order show / pay page —
305
316
  `auth.currentUser(native)`, `native.session`, a cookie, whatever it is.
@@ -518,6 +529,8 @@ there is nothing else to generate. Details:
518
529
 
519
530
  No ORM? You can pass a bare driver handle (`pg`, `node:sqlite`,
520
531
  `better-sqlite3`) as the `db` in step 4. The scaffold has no flavor for it.
532
+ `node:sqlite` needs Node 22.13 or newer: before that it sits behind
533
+ `--experimental-sqlite`.
521
534
  Instead of scaffolding, run the same DDL once yourself, using
522
535
  `paymentsSchemaSql(dialect)` from `@openreceive/http`. Your adapter already
523
536
  pulls that package in, but this import is yours, so install it too: