@vaam-apps/vpay-stripe-js 0.4.1 → 0.6.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.
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/dist/types.d.ts CHANGED
@@ -61,11 +61,16 @@ export interface LastPaymentError {
61
61
  message: string;
62
62
  }
63
63
  /**
64
- * `vpay_api::model::PaymentIntentWithSecret`: the twelve keys of
65
- * `PaymentIntentObject` — pinned server-side by
64
+ * `vpay_api::model::PaymentIntentWithSecret`: `PaymentIntentObject`'s keys —
65
+ * pinned server-side at thirteen by
66
66
  * `every_documented_key_is_present_including_the_null_ones` — plus the
67
67
  * `client_secret` the browser surface flattens in alongside them (D2).
68
68
  *
69
+ * **Twelve of the thirteen are declared here.** `customer` (`cus_…` or
70
+ * `null`, on the wire since 2026-09-06) is not: it arrives and is simply
71
+ * untyped. This comment said "the twelve keys of `PaymentIntentObject`"
72
+ * until 2026-09-23, which was the server's count before `customer`.
73
+ *
69
74
  * `client_secret` is `string`, not Stripe's `string | null`: the browser
70
75
  * routes are reachable *only* by presenting one, so a response that omitted
71
76
  * it would be a server bug rather than a case to model.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaam-apps/vpay-stripe-js",
3
- "version": "0.4.1",
3
+ "version": "0.6.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": {