openreceive 0.4.23 → 0.4.25

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.
@@ -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.23.
20
+ These directions describe OpenReceive 0.4.25.
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
@@ -376,6 +376,7 @@ enough; drop the `.md` for the same page a person would read.
376
376
  - https://openreceive.org/guides/environment-variables.md — every variable, and what is deliberately not one
377
377
  - https://openreceive.org/guides/storage.md — the engine tables and the attempt state machine
378
378
  - https://openreceive.org/guides/frontend-checkout.md — the drop-in's props, attributes and slots
379
+ - 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
379
380
  - https://openreceive.org/guides/checkout-ux.md — read before building any custom UI
380
381
  - https://openreceive.org/guides/headless-checkout.md — the controller, the display models, refunds
381
382
  - https://openreceive.org/guides/provider-registry.md — where the wallet logos and pay
@@ -717,7 +718,9 @@ PHP builds the whole engine again on every request. Under PHP-FPM or Apache,
717
718
  that same preflight would then run per request. To avoid that, the package
718
719
  caches the wallet's info event in your default cache store for
719
720
  `config('openreceive.wallet_info_cache_seconds')` (600). A checkout request
720
- then costs one relay round trip, not two.
721
+ then costs one relay round trip, not two. The same store keeps the BTC price
722
+ and the swap provider's currencies and rates between requests, so checkout
723
+ routes do not fetch them again.
721
724
 
722
725
  ### Render the checkout
723
726
 
@@ -3,7 +3,7 @@ This is the full file; follow it from Step 0.
3
3
  # OpenReceive agent directions (Lovable)
4
4
 
5
5
  ```text
6
- READ THIS FIRST: this file is 25 KB and a summary drops required steps. Read all of it:
6
+ READ THIS FIRST: this file is 26 KB and a summary drops required steps. Read all of it:
7
7
  https://openreceive.org/agent-directions/lovable/full.md
8
8
  If your fetch tool gave you a summary, fetch that URL again for the full text.
9
9
  ```
@@ -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.23.
20
+ These directions describe OpenReceive 0.4.25.
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.
@@ -117,7 +117,7 @@ saved or explicitly declined.
117
117
 
118
118
  ## Step 1 — the packages
119
119
 
120
- Add `@openreceive/http` and `@openreceive/react` at 0.4.23 or newer.
120
+ Add `@openreceive/http` and `@openreceive/react` at 0.4.25 or newer.
121
121
  Nothing else: no `pg`, no Postgres driver, no OpenReceive scaffold. Do not
122
122
  change the Vite or Wrangler configuration.
123
123
 
@@ -148,9 +148,12 @@ every settlement.
148
148
  `crypto.randomUUID()` (HttpOnly, Secure, SameSite=Lax, path `/`, one
149
149
  year) with `getCookie` and `setCookie` from `@tanstack/react-start/server`,
150
150
  then inserts the order with `buyer_token` set to it through `supabaseAdmin`
151
- from `@/integrations/supabase/client.server`, and returns the id. If the app
152
- creates orders in the browser today, move that insert into this function.
153
- Keep the order's user column too, if the app has sign-in.
151
+ from `@/integrations/supabase/client.server`, and returns the id. Keep the
152
+ app's order flow as it is: where it creates orders on the server today (a
153
+ server route a form posts to, or another server function), call this
154
+ function there, and keep those routes, forms and redirects working. If the
155
+ app creates orders in the browser today, move that insert into this
156
+ function. Keep the order's user column too, if the app has sign-in.
154
157
  - **The order is unpaid or paid.** Do not copy attempt statuses (`pending`,
155
158
  `expired`, `failed`, `attention`) onto it, and do not add a relation to
156
159
  `openreceive_payments`.
@@ -408,7 +411,7 @@ idempotent. See Payment storage.
408
411
 
409
412
  On Supabase the route keeps payments in your Supabase database through its
410
413
  HTTPS API, with the project's secret key. There is no `pg` pool. Use
411
- `@openreceive/*` 0.4.23 or newer:
414
+ `@openreceive/*` 0.4.24 or newer:
412
415
 
413
416
  ```sh
414
417
  npm install @openreceive/http @openreceive/react