@vaam-apps/vpay-stripe-js 0.4.0 → 0.5.0

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 (2) hide show
  1. package/README.md +24 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,13 +3,16 @@
3
3
  A Stripe.js-shaped browser client for vpay's payer surface. Zero runtime
4
4
  dependencies, ESM, TypeScript strict.
5
5
 
6
- **Not yet on the registry.** `npm view @vaam-apps/vpay-stripe-js` answered
7
- `E404` on 2026-09-05 and no workflow in this repository publishes anything;
8
- the manifest stopped saying `"private": true` on that date so that a release
9
- can happen without editing it. Once published:
6
+ **On the registry since 2026-09-19.** `release.yml`'s `publish-stripe-js-sdk`
7
+ job (added 2026-09-18) publishes it on every `v*` tag, and `npm view
8
+ @vaam-apps/vpay-stripe-js versions` listed `0.2.1` (the first, 2026-09-19)
9
+ through `0.4.1` on 2026-09-23. _(This read "Not yet on the registry … `E404`
10
+ on 2026-09-05 and no workflow in this repository publishes anything" until
11
+ 2026-09-23. The workflow half was wrong from 2026-09-18, and the registry half
12
+ from 2026-09-19.)_
10
13
 
11
14
  ```bash
12
- pnpm add @vaam-apps/vpay-stripe-js # not yet published — see above
15
+ pnpm add @vaam-apps/vpay-stripe-js
13
16
  ```
14
17
 
15
18
  Inside this workspace it is a `workspace:*` dependency, built with
@@ -184,12 +187,22 @@ parameters are **absent**. A page handling the return trip must carry its own
184
187
  state — put the `client_secret` in the `return_url` you supply, or key on your
185
188
  own order id — and then call `retrievePaymentIntent` to learn the outcome.
186
189
 
187
- **Step 5c ships push-only** (decision D4). `confirmPayment` returns the rail's
188
- real `redirect_to_url` and will navigate to it, but the _return_ trip is not
189
- wired: vpay has no `/provider/{code}/callback` route, so a redirect rail sends
190
- the payer to a URL that does not exist yet. Do not ship a redirect-rail
191
- checkout on this package until that route lands. `next_action.redirect_to_url.return_url`
192
- is echoed back as a label; nothing redirects to it.
190
+ ~~**Step 5c ships push-only** (decision D4). `confirmPayment` returns the
191
+ rail's real `redirect_to_url` and will navigate to it, but the _return_ trip is
192
+ not wired: vpay has no `/provider/{code}/callback` route, so a redirect rail
193
+ sends the payer to a URL that does not exist yet. Do not ship a redirect-rail
194
+ checkout on this package until that route lands.
195
+ `next_action.redirect_to_url.return_url` is echoed back as a label; nothing
196
+ redirects to it.~~ **Corrected 2026-09-23.** This paragraph had been wrong
197
+ since 2026-09-04, and "Status" below already said so. Step 8 mounted
198
+ `/provider/{code}/callback`, and Step 9 made the rail send the payer back to a
199
+ per-charge `return_url`. With a Checkout Session, that is vpay's own return
200
+ page, and a real browser has walked the whole Orange round trip
201
+ (`shop-hosted.cy.ts`). Without a session, the payer lands on **your**
202
+ `return_url` and you learn the outcome by calling `retrievePaymentIntent`,
203
+ never from the fact that they came back.
204
+ [`docs/flows/browser-checkout.md`](../../docs/flows/browser-checkout.md)
205
+ § "The redirect gap (D4) — closed 2026-09-04" is the record.
193
206
 
194
207
  ## Checkout (vpay's own)
195
208
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaam-apps/vpay-stripe-js",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "A Stripe.js-shaped browser client for vpay's payer surface: payment intents, embedded and hosted Checkout, zero runtime dependencies.",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {