@nevios/storefront-kit 1.3.0 → 1.4.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
@@ -76,3 +76,26 @@ Bring your own pack with `messages={…}` for anything else.
76
76
  ## License
77
77
 
78
78
  MIT
79
+
80
+ ## Recurring purchases and customer accounts (1.4+)
81
+
82
+ `PurchaseOptions` + `AddToCart.subscriptionPlanId` carry the selected server plan
83
+ to cart and checkout. `SubscriptionTerms` displays an unchecked consent control.
84
+ Pass `onSubscriptionPayment` to `CheckoutFlow`/`PaymentSection` to confirm the
85
+ returned intent with your Stripe.js form. An unpaid enrolled order stays on the
86
+ payment step, including after reload. No callback means no recurring submission.
87
+
88
+ Customer UI composes `SubscriptionList`, `useCustomerSubscriptions()` and
89
+ `useCustomerSubscription(id)` inside `AccountProvider`. Their `api` exposes
90
+ review/commit changes, versioned commands, payment recovery and card replacement.
91
+ The merchant owns navigation and detailed UI; address-book changes never silently
92
+ change recurring delivery terms.
93
+
94
+ [Full integration, code examples and recovery rules](https://c.nevios.io/ai-docs/modules/subscriptions-sdk.md).
95
+
96
+ ```sh
97
+ pnpm add https://c.nevios.io/sdk/storefront-kit/1.4.0.tgz react react-dom
98
+ ```
99
+
100
+ The immutable kit archive resolves its tested SDK version from the same public
101
+ distribution; see [versions and checksums](https://c.nevios.io/sdk/releases.json).