openreceive 0.4.24 → 0.4.26
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/openreceive/version.rb +1 -1
- data/skills/integrate-openreceive/SKILL.md +7 -3
- data/skills/integrate-openreceive/references/btcpay.md +1 -1
- data/skills/integrate-openreceive/references/django.md +18 -4
- data/skills/integrate-openreceive/references/fastapi.md +20 -5
- data/skills/integrate-openreceive/references/fastify.md +18 -3
- data/skills/integrate-openreceive/references/flask.md +835 -0
- data/skills/integrate-openreceive/references/laravel.md +20 -4
- data/skills/integrate-openreceive/references/lovable.md +8 -2
- data/skills/integrate-openreceive/references/nestjs.md +763 -0
- data/skills/integrate-openreceive/references/next.md +18 -3
- data/skills/integrate-openreceive/references/node.md +19 -3
- data/skills/integrate-openreceive/references/php.md +34 -8
- data/skills/integrate-openreceive/references/rails.md +17 -3
- data/skills/integrate-openreceive/references/woocommerce.md +5 -5
- metadata +3 -1
|
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
|
|
|
3
3
|
# OpenReceive agent directions (Next.js)
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
# READ THIS FIRST: this file is
|
|
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/next/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/next/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.
|
|
20
|
+
These directions describe OpenReceive 0.4.26.
|
|
21
21
|
|
|
22
22
|
Add OpenReceive to a Next.js App Router application — the app you are already
|
|
23
23
|
working in. You do not need a copy of the OpenReceive source: the packages are
|
|
@@ -128,6 +128,8 @@ you store it. Ask one question per message.
|
|
|
128
128
|
give a credential a `NEXT_PUBLIC_` prefix, which inlines it into the browser
|
|
129
129
|
bundle. When the app is started with Docker Compose, give the service
|
|
130
130
|
`env_file: .env.local`. Restart the dev server after writing the file.
|
|
131
|
+
Under Compose, recreate the container with `docker compose up -d`:
|
|
132
|
+
`docker compose restart` keeps its old environment.
|
|
131
133
|
|
|
132
134
|
Do not invent placeholder URIs. Start the quickstart only once `NWC_URI` is
|
|
133
135
|
saved and `LSC_URI_PRIMARY` is saved or explicitly declined. The first boot
|
|
@@ -240,7 +242,12 @@ itself, and they hold for every integration.
|
|
|
240
242
|
such window. On the drop-ins: `resumePaymentHash`, fed from `onState`, on
|
|
241
243
|
`<Checkout>`; the `resume-payment-hash` attribute, fed from the
|
|
242
244
|
`openreceive-state` event (`event.detail.state.payment_hash`), on
|
|
243
|
-
`<openreceive-checkout>`.
|
|
245
|
+
`<openreceive-checkout>`.
|
|
246
|
+
That visit can come hours later, and `authorize` must still know the payer:
|
|
247
|
+
a session that expired in between answers 403 and strands the deposit. On a
|
|
248
|
+
guest shop, tie the order to a long-lived signed cookie, or put a secret
|
|
249
|
+
per-order token in its URL that your page trades for that cookie.
|
|
250
|
+
https://openreceive.org/guides/swap-refunds.md
|
|
244
251
|
- Show the payer WHAT THEY ARE BUYING. Return an optional `description` beside
|
|
245
252
|
the price from `amountFor` and both drop-ins render it above the amount.
|
|
246
253
|
Without it the checkout is a QR and "$1.00" with no sign of what the dollar
|
|
@@ -296,6 +303,12 @@ products, and you do not join them.
|
|
|
296
303
|
expired invoice does not cancel the order; a later checkout may mint another
|
|
297
304
|
attempt. The library refuses a new checkout under a reference that already
|
|
298
305
|
settled (409).
|
|
306
|
+
- **A paid order's page says it is paid and shows no checkout.** Nothing is left
|
|
307
|
+
to pay, and a checkout cannot start a new payment for a paid order. Mount the
|
|
308
|
+
checkout only while the order is unpaid. When it settles on the page, update
|
|
309
|
+
the page's status line from `onSettled` on `<Checkout>`: `onPaid` has already
|
|
310
|
+
marked the order paid. Keep that checkout mounted, because it is the payer's
|
|
311
|
+
receipt.
|
|
299
312
|
- **Pass this app's `db` handle.** Do not add a Prisma/Drizzle relation from
|
|
300
313
|
Order to `openreceive_payments`, and do not implement `PaymentRepository`
|
|
301
314
|
unless no supported handle can reach this database. `reference` is not unique
|
|
@@ -381,6 +394,7 @@ enough; drop the `.md` for the same page a person would read.
|
|
|
381
394
|
- https://openreceive.org/guides/serverless.md — when the app runs serverless (Netlify, AWS Lambda, Cloud Run, Google AI Studio): pooled database URLs, timeouts, and why it needs no cron or worker
|
|
382
395
|
- https://openreceive.org/guides/node-orms.md — recipes for Prisma, Drizzle, Knex, TypeORM, Sequelize
|
|
383
396
|
- https://openreceive.org/guides/frontend-checkout.md — the drop-in's props, attributes and slots
|
|
397
|
+
- https://openreceive.org/guides/mobile-apps.md — when a mobile app takes the payment: the checkout page it opens, and what the App Store and Google Play allow
|
|
384
398
|
- https://openreceive.org/guides/checkout-ux.md — read before building any custom UI
|
|
385
399
|
- https://openreceive.org/guides/headless-checkout.md — the controller, the display models, refunds
|
|
386
400
|
- https://openreceive.org/guides/provider-registry.md — where the wallet logos and pay
|
|
@@ -397,6 +411,7 @@ enough; drop the `.md` for the same page a person would read.
|
|
|
397
411
|
- https://openreceive.org/guides/custom-checkout-route.md — advanced: replacing the shipped adapter's routes with your own
|
|
398
412
|
- https://openreceive.org/guides/react-material-ui-recipe.md — a worked custom UI on a component library
|
|
399
413
|
- https://openreceive.org/guides/tanstack-start-recipe.md — the same handler as a TanStack Start server route, if this app is TanStack Start after all
|
|
414
|
+
- https://openreceive.org/guides/sveltekit-recipe.md, https://openreceive.org/guides/nuxt-recipe.md, https://openreceive.org/guides/astro-recipe.md and https://openreceive.org/guides/react-router-recipe.md — the same handler as a SvelteKit, Nuxt, Astro or React Router route, if this app is one of those
|
|
400
415
|
- https://openreceive.org/guides.md — the index, if what you need is not above
|
|
401
416
|
|
|
402
417
|
Questions, or a problem with the library itself:
|
|
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
|
|
|
3
3
|
# OpenReceive agent directions (Node.js)
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
# READ THIS FIRST: this file is
|
|
6
|
+
# READ THIS FIRST: this file is 39 KB and a summary drops required steps. Download it whole:
|
|
7
7
|
curl -fsSL https://openreceive.org/agent-directions/node/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/node/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.
|
|
20
|
+
These directions describe OpenReceive 0.4.26.
|
|
21
21
|
|
|
22
22
|
Add OpenReceive to a Node application — the app you are already working in. You
|
|
23
23
|
do not need a copy of the OpenReceive source: the packages are on npm, and the
|
|
@@ -125,6 +125,8 @@ you store it. Ask one question per message.
|
|
|
125
125
|
`import "dotenv/config";` at the top of the server entry, as the quickstart
|
|
126
126
|
does. When the app is started with Docker Compose, give the service
|
|
127
127
|
`env_file: .env`. Restart the server after writing the file.
|
|
128
|
+
Under Compose, recreate the container with `docker compose up -d`:
|
|
129
|
+
`docker compose restart` keeps its old environment.
|
|
128
130
|
|
|
129
131
|
Do not invent placeholder URIs. Start the quickstart only once `NWC_URI` is
|
|
130
132
|
saved and `LSC_URI_PRIMARY` is saved or explicitly declined. The first boot
|
|
@@ -236,7 +238,12 @@ itself, and they hold for every integration.
|
|
|
236
238
|
such window. On the drop-ins: `resumePaymentHash`, fed from `onState`, on
|
|
237
239
|
`<Checkout>`; the `resume-payment-hash` attribute, fed from the
|
|
238
240
|
`openreceive-state` event (`event.detail.state.payment_hash`), on
|
|
239
|
-
`<openreceive-checkout>`.
|
|
241
|
+
`<openreceive-checkout>`.
|
|
242
|
+
That visit can come hours later, and `authorize` must still know the payer:
|
|
243
|
+
a session that expired in between answers 403 and strands the deposit. On a
|
|
244
|
+
guest shop, tie the order to a long-lived signed cookie, or put a secret
|
|
245
|
+
per-order token in its URL that your page trades for that cookie.
|
|
246
|
+
https://openreceive.org/guides/swap-refunds.md
|
|
240
247
|
- Show the payer WHAT THEY ARE BUYING. Return an optional `description` beside
|
|
241
248
|
the price from `amountFor` and both drop-ins render it above the amount.
|
|
242
249
|
Without it the checkout is a QR and "$1.00" with no sign of what the dollar
|
|
@@ -286,6 +293,13 @@ products, and you do not join them.
|
|
|
286
293
|
expired invoice does not cancel the order; a later checkout may mint another
|
|
287
294
|
attempt. The library refuses a new checkout under a reference that already
|
|
288
295
|
settled (409).
|
|
296
|
+
- **A paid order's page says it is paid and shows no checkout.** Nothing is left
|
|
297
|
+
to pay, and a checkout cannot start a new payment for a paid order. Mount the
|
|
298
|
+
checkout only while the order is unpaid. When it settles on the page, update
|
|
299
|
+
the page's status line from `onSettled` on `<Checkout>`, or the
|
|
300
|
+
`openreceive-settled` event on `<openreceive-checkout>`: `onPaid` has already
|
|
301
|
+
marked the order paid. Keep that checkout mounted, because it is the payer's
|
|
302
|
+
receipt.
|
|
289
303
|
- **Pass this app's `db` handle.** Do not add a Prisma/Drizzle relation from
|
|
290
304
|
Order to `openreceive_payments`, and do not implement `PaymentRepository`
|
|
291
305
|
unless no supported handle can reach this database. `reference` is not unique
|
|
@@ -371,6 +385,7 @@ enough; drop the `.md` for the same page a person would read.
|
|
|
371
385
|
- https://openreceive.org/guides/serverless.md — when the app runs serverless (Netlify, AWS Lambda, Cloud Run, Google AI Studio): pooled database URLs, timeouts, and why it needs no cron or worker
|
|
372
386
|
- https://openreceive.org/guides/node-orms.md — recipes for Prisma, Drizzle, Knex, TypeORM, Sequelize
|
|
373
387
|
- https://openreceive.org/guides/frontend-checkout.md — the drop-in's props, attributes and slots
|
|
388
|
+
- https://openreceive.org/guides/mobile-apps.md — when a mobile app takes the payment: the checkout page it opens, and what the App Store and Google Play allow
|
|
374
389
|
- https://openreceive.org/guides/checkout-ux.md — read before building any custom UI
|
|
375
390
|
- https://openreceive.org/guides/headless-checkout.md — the controller, the display models, refunds
|
|
376
391
|
- https://openreceive.org/guides/provider-registry.md — where the wallet logos and pay
|
|
@@ -386,6 +401,7 @@ enough; drop the `.md` for the same page a person would read.
|
|
|
386
401
|
- https://openreceive.org/guides/api-reference.md — every route, option and error code
|
|
387
402
|
- https://openreceive.org/guides/custom-checkout-route.md — advanced: replacing the shipped adapter's routes with your own
|
|
388
403
|
- https://openreceive.org/guides/react-material-ui-recipe.md — a worked custom UI on a component library
|
|
404
|
+
- https://openreceive.org/guides/sveltekit-recipe.md, https://openreceive.org/guides/nuxt-recipe.md, https://openreceive.org/guides/astro-recipe.md and https://openreceive.org/guides/react-router-recipe.md — the same handler as a SvelteKit, Nuxt, Astro or React Router route, if this app is one of those
|
|
389
405
|
- https://openreceive.org/guides.md — the index, if what you need is not above
|
|
390
406
|
|
|
391
407
|
Questions, or a problem with the library itself:
|
|
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
|
|
|
3
3
|
# OpenReceive agent directions (PHP)
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
# READ THIS FIRST: this file is
|
|
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/php/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/php/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.
|
|
20
|
+
These directions describe OpenReceive 0.4.26.
|
|
21
21
|
|
|
22
22
|
Add OpenReceive to a PHP application — the app you are already working in. You
|
|
23
23
|
do not need a copy of the OpenReceive source: the engine is on Packagist
|
|
@@ -124,6 +124,8 @@ you store it. Ask one question per message.
|
|
|
124
124
|
front controller before `Service::fromEnvironment()`. When the app is started
|
|
125
125
|
with Docker Compose, give the service `env_file: .env`. Restart PHP-FPM or
|
|
126
126
|
the server after writing the file.
|
|
127
|
+
Under Compose, recreate the container with `docker compose up -d`:
|
|
128
|
+
`docker compose restart` keeps its old environment.
|
|
127
129
|
|
|
128
130
|
Do not invent placeholder URIs. Start the quickstart only once `NWC_URI` is
|
|
129
131
|
saved and `LSC_URI_PRIMARY` is saved or explicitly declined. The first boot
|
|
@@ -246,6 +248,10 @@ itself, and they hold for every integration.
|
|
|
246
248
|
`payment_hash` and reopen the attempt with `POST /swaps/status`, which has no
|
|
247
249
|
such window. On the element: the `resume-payment-hash` attribute, fed from
|
|
248
250
|
the `openreceive-state` event (`event.detail.state.payment_hash`).
|
|
251
|
+
That visit can come hours later, and `authorize` must still know the payer:
|
|
252
|
+
a session that expired in between answers 403 and strands the deposit. On a
|
|
253
|
+
guest shop, tie the order to a long-lived signed cookie, or put a secret
|
|
254
|
+
per-order token in its URL that your page trades for that cookie.
|
|
249
255
|
https://openreceive.org/guides/swap-refunds.md
|
|
250
256
|
- Show the payer WHAT THEY ARE BUYING. Return an optional `description` beside
|
|
251
257
|
the price from `amountFor` and the drop-in renders it above the amount.
|
|
@@ -263,10 +269,11 @@ itself, and they hold for every integration.
|
|
|
263
269
|
array keys, and the browser packages' TypeScript APIs are camelCase.
|
|
264
270
|
- Money is integers or decimal strings — never binary floats. `amountFor`
|
|
265
271
|
returns `'value' => '12.00'`, a string; never `12.00`.
|
|
266
|
-
- PHP starts every request from nothing. The engine is built for that
|
|
267
|
-
settlement gate is a row in `openreceive_meta`,
|
|
268
|
-
|
|
269
|
-
|
|
272
|
+
- PHP starts every request from nothing. The engine is built for that: the
|
|
273
|
+
settlement gate is a row in `openreceive_meta`, and under a web server
|
|
274
|
+
`Service::fromEnvironment()` keeps the wallet's info and the market data in
|
|
275
|
+
a private temp directory. So do not add a cache, a static, or an APCu entry
|
|
276
|
+
to "remember" the wallet or a reconcile timer between requests.
|
|
270
277
|
|
|
271
278
|
## Your tables, not ours
|
|
272
279
|
|
|
@@ -298,6 +305,12 @@ not replace your orders, users, or products, and you do not join them.
|
|
|
298
305
|
expired invoice does not cancel the order; a later checkout may mint another
|
|
299
306
|
attempt. The engine refuses a new checkout under a reference that already
|
|
300
307
|
settled (409).
|
|
308
|
+
- **A paid order's page says it is paid and shows no checkout.** Nothing is left
|
|
309
|
+
to pay, and a checkout cannot start a new payment for a paid order. Mount the
|
|
310
|
+
checkout only while the order is unpaid. When it settles on the page, update
|
|
311
|
+
the page's status line from the `openreceive-settled` event on
|
|
312
|
+
`<openreceive-checkout>`: `onPaid` has already marked the order paid. Keep
|
|
313
|
+
that checkout mounted, because it is the payer's receipt.
|
|
301
314
|
- **Pass this app's PDO.** `new SqlPaymentRepository(new PdoConnection($pdo))`
|
|
302
315
|
over the connection the app already opens; do not implement
|
|
303
316
|
`PaymentRepository` unless no PDO can reach this database. `reference` is not
|
|
@@ -380,6 +393,7 @@ enough; drop the `.md` for the same page a person would read.
|
|
|
380
393
|
- https://openreceive.org/guides/environment-variables.md — every variable, and what is deliberately not one
|
|
381
394
|
- https://openreceive.org/guides/storage.md — the payment tables and the attempt state machine
|
|
382
395
|
- https://openreceive.org/guides/frontend-checkout.md — the drop-in's attributes and slots, and the standalone build
|
|
396
|
+
- https://openreceive.org/guides/mobile-apps.md — when a mobile app takes the payment: the checkout page it opens, and what the App Store and Google Play allow
|
|
383
397
|
- https://openreceive.org/guides/checkout-ux.md — read before building any custom UI
|
|
384
398
|
- https://openreceive.org/guides/headless-checkout.md — the controller, the display models, refunds
|
|
385
399
|
- https://openreceive.org/guides/provider-registry.md — where the wallet logos and pay
|
|
@@ -586,8 +600,20 @@ if (str_starts_with($path, '/openreceive')) {
|
|
|
586
600
|
|
|
587
601
|
`Service::fromEnvironment()` builds the wallet client from `NWC_URI` and runs
|
|
588
602
|
the receive-only preflight. A missing, invalid or spend-capable code throws
|
|
589
|
-
before any route is served.
|
|
590
|
-
|
|
603
|
+
before any route is served.
|
|
604
|
+
|
|
605
|
+
PHP starts every request from nothing. Without a cache, every checkout route
|
|
606
|
+
would ask the wallet for its info event again and fetch the BTC price and the
|
|
607
|
+
swap provider's currencies and rates again, which costs seconds per click.
|
|
608
|
+
Under a web server, `fromEnvironment()` keeps them in a directory under the
|
|
609
|
+
system temp dir that only the PHP user can open
|
|
610
|
+
(`OpenReceive\Support\FileSharedCache`). The wallet's info is kept for 10
|
|
611
|
+
minutes. A new code gets a new directory, so it is always checked live.
|
|
612
|
+
Command-line runs, such as `bin/doctor` and the notifications worker, always
|
|
613
|
+
ask the wallet. No secret goes in the cache: codes, payments and swap data
|
|
614
|
+
stay out of it. If your app already runs a cache, pass it as `sharedCache:`
|
|
615
|
+
([Service](https://openreceive.org/guides/api-reference.md#openreceiveserverservice)); `sharedCache: false`
|
|
616
|
+
turns caching off.
|
|
591
617
|
|
|
592
618
|
The settlement gate the engine relies on lives in `openreceive_meta`, not in
|
|
593
619
|
memory. That is why a fleet of PHP-FPM workers shares one wallet-scan budget,
|
|
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
|
|
|
3
3
|
# OpenReceive agent directions (Rails)
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
# READ THIS FIRST: this file is
|
|
6
|
+
# READ THIS FIRST: this file is 43 KB and a summary drops required steps. Download it whole:
|
|
7
7
|
curl -fsSL https://openreceive.org/agent-directions/rails/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/rails/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.
|
|
20
|
+
These directions describe OpenReceive 0.4.26.
|
|
21
21
|
|
|
22
22
|
Add OpenReceive to a Rails application — the app you are already working in. You
|
|
23
23
|
do not need a copy of the OpenReceive source: the gem is on RubyGems, the
|
|
@@ -122,6 +122,8 @@ you store it. Ask one question per message.
|
|
|
122
122
|
add `dotenv-rails` to the Gemfile. When it is started with Docker Compose,
|
|
123
123
|
give the service `env_file: .env`. Restart the server after writing the
|
|
124
124
|
file; the values are read at boot.
|
|
125
|
+
Under Compose, recreate the container with `docker compose up -d`:
|
|
126
|
+
`docker compose restart` keeps its old environment.
|
|
125
127
|
|
|
126
128
|
Do not invent placeholder URIs. Start the quickstart only once `NWC_URI` is
|
|
127
129
|
saved and `LSC_URI_PRIMARY` is saved or explicitly declined. The first boot
|
|
@@ -237,7 +239,12 @@ itself, and they hold for every integration.
|
|
|
237
239
|
such window. On the drop-ins: `resumePaymentHash`, fed from `onState`, on
|
|
238
240
|
`<Checkout>`; the `resume-payment-hash` attribute, fed from the
|
|
239
241
|
`openreceive-state` event (`event.detail.state.payment_hash`), on
|
|
240
|
-
`<openreceive-checkout>`.
|
|
242
|
+
`<openreceive-checkout>`.
|
|
243
|
+
That visit can come hours later, and `authorize` must still know the payer:
|
|
244
|
+
a session that expired in between answers 403 and strands the deposit. On a
|
|
245
|
+
guest shop, tie the order to a long-lived signed cookie, or put a secret
|
|
246
|
+
per-order token in its URL that your page trades for that cookie.
|
|
247
|
+
https://openreceive.org/guides/swap-refunds.md
|
|
241
248
|
- Show the payer WHAT THEY ARE BUYING. Return an optional `description` beside
|
|
242
249
|
the price from `config.amount_for` and both drop-ins render it above the
|
|
243
250
|
amount. Without it the checkout is a QR and "$1.00" with no sign of what the
|
|
@@ -282,6 +289,12 @@ not replace your orders, users, or products, and you do not join them.
|
|
|
282
289
|
expired invoice does not cancel the order; a later checkout may mint another
|
|
283
290
|
attempt. The engine refuses a new checkout under a reference that already
|
|
284
291
|
settled (409).
|
|
292
|
+
- **A paid order's page says it is paid and shows no checkout.** Nothing is left
|
|
293
|
+
to pay, and a checkout cannot start a new payment for a paid order. Mount the
|
|
294
|
+
checkout only while the order is unpaid. When it settles on the page, update
|
|
295
|
+
the page's status line from the `openreceive-settled` event on
|
|
296
|
+
`<openreceive-checkout>`: `on_paid` has already marked the order paid. Keep
|
|
297
|
+
that checkout mounted, because it is the payer's receipt.
|
|
285
298
|
- **Do not associate `OpenReceivePayment`.** No `has_many`, no `belongs_to`, no
|
|
286
299
|
foreign key either direction. `reference` is not unique (many attempts per
|
|
287
300
|
order). Fulfillment is a guarded transition on YOUR order row inside
|
|
@@ -364,6 +377,7 @@ enough; drop the `.md` for the same page a person would read.
|
|
|
364
377
|
- https://openreceive.org/guides/environment-variables.md — every variable, and what is deliberately not one
|
|
365
378
|
- https://openreceive.org/guides/storage.md — the engine tables and the attempt state machine
|
|
366
379
|
- https://openreceive.org/guides/frontend-checkout.md — the drop-in's props, attributes and slots
|
|
380
|
+
- https://openreceive.org/guides/mobile-apps.md — when a mobile app takes the payment: the checkout page it opens, and what the App Store and Google Play allow
|
|
367
381
|
- https://openreceive.org/guides/checkout-ux.md — read before building any custom UI
|
|
368
382
|
- https://openreceive.org/guides/headless-checkout.md — the controller, the display models, refunds
|
|
369
383
|
- https://openreceive.org/guides/provider-registry.md — where the wallet logos and pay
|
|
@@ -17,7 +17,7 @@ curl -fsSL https://openreceive.org/agent-directions/woocommerce/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.
|
|
20
|
+
These directions describe OpenReceive 0.4.26.
|
|
21
21
|
|
|
22
22
|
Install and configure the OpenReceive payment gateway in the WooCommerce store
|
|
23
23
|
you are working in. Preserve its theme, checkout, customer accounts, order
|
|
@@ -95,7 +95,7 @@ is saved or the user said "Bitcoin only". Never invent a placeholder code.
|
|
|
95
95
|
Install this release from the WordPress.org plugin directory:
|
|
96
96
|
|
|
97
97
|
```sh
|
|
98
|
-
wp plugin install openreceive --version=0.4.
|
|
98
|
+
wp plugin install openreceive --version=0.4.26 --activate
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
If that fails because WordPress.org does not have this version yet, install
|
|
@@ -103,7 +103,7 @@ the ZIP attached to the same GitHub release. Never install the GitHub
|
|
|
103
103
|
source-code ZIP or a ZIP from an older release:
|
|
104
104
|
|
|
105
105
|
```sh
|
|
106
|
-
wp plugin install https://github.com/OpenReceive/openreceive/releases/download/v0.4.
|
|
106
|
+
wp plugin install https://github.com/OpenReceive/openreceive/releases/download/v0.4.26/openreceive-wordpress-0.4.26.zip --activate
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
It needs WooCommerce active, and PHP 8.2+ with GMP and sodium in BOTH the web
|
|
@@ -252,7 +252,7 @@ database or application.
|
|
|
252
252
|
|
|
253
253
|
Each GitHub release also attaches the same plugin as a ZIP, for a site that
|
|
254
254
|
cannot reach WordPress.org or when WordPress.org does not list a release yet.
|
|
255
|
-
Download [openreceive-wordpress-0.4.
|
|
255
|
+
Download [openreceive-wordpress-0.4.26.zip](https://github.com/OpenReceive/openreceive/releases/download/v0.4.26/openreceive-wordpress-0.4.26.zip)
|
|
256
256
|
and install it through **Plugins → Add New → Upload Plugin**. Historical
|
|
257
257
|
releases may lack this asset. If that exact URL returns 404, build the same tag
|
|
258
258
|
below; never silently install an older ZIP. The GitHub source-code ZIP is not
|
|
@@ -262,7 +262,7 @@ GMP/sodium, Composer and WP-CLI:
|
|
|
262
262
|
```sh
|
|
263
263
|
git clone https://github.com/OpenReceive/openreceive.git
|
|
264
264
|
cd openreceive
|
|
265
|
-
git checkout v0.4.
|
|
265
|
+
git checkout v0.4.26
|
|
266
266
|
npm ci
|
|
267
267
|
npm run build:packages
|
|
268
268
|
composer install --working-dir=packages/php/wordpress
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openreceive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenReceive
|
|
@@ -60,8 +60,10 @@ files:
|
|
|
60
60
|
- skills/integrate-openreceive/references/django.md
|
|
61
61
|
- skills/integrate-openreceive/references/fastapi.md
|
|
62
62
|
- skills/integrate-openreceive/references/fastify.md
|
|
63
|
+
- skills/integrate-openreceive/references/flask.md
|
|
63
64
|
- skills/integrate-openreceive/references/laravel.md
|
|
64
65
|
- skills/integrate-openreceive/references/lovable.md
|
|
66
|
+
- skills/integrate-openreceive/references/nestjs.md
|
|
65
67
|
- skills/integrate-openreceive/references/next.md
|
|
66
68
|
- skills/integrate-openreceive/references/node.md
|
|
67
69
|
- skills/integrate-openreceive/references/php.md
|