feat: send paywallSessionId in checkout/start#939
Merged
Conversation
vicfergar
approved these changes
Jun 17, 2026
vkartaviy
approved these changes
Jun 17, 2026
vkartaviy
approved these changes
Jun 17, 2026
rogersole
approved these changes
Jun 18, 2026
RCGitBot
added a commit
that referenced
this pull request
Jun 22, 2026
**This is an automatic release.** ## RevenueCat SDK ### 🐞 Bugfixes * fix(purchases-js): use default product background for Stripe Billing (#944) via Nicola Sacco (@nicfix) ### 🔄 Other Changes * Bump sdks-common-config orb to 4.1.0 (#943) via Álvaro Brey (@AlvaroBrey) * feat: send paywallSessionId in checkout/start (#939) via Deema AlShamaa (@dalshamaa) * Migrate update_error_codes to the outputs parameter (#942) via Álvaro Brey (@AlvaroBrey) * Update sdks-common-config orb to 3.21.2 (#941) via Antonio Pallares (@ajpallares) * chore: Add 3-day Dependabot cooldown, excluding fastlane plugin (#934) via Toni Rico (@tonidero) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Release-only version and changelog updates with no application source changes in the diff. > > **Overview** > **Automatic patch release** that bumps `@revenuecat/purchases-js` from **1.43.0** to **1.43.1** across `.version`, `package.json`, `src/helpers/constants.ts`, and the docs redirect in `scripts/docs/index.html`. > > `CHANGELOG.md` and `CHANGELOG.latest.md` are updated to record **1.43.1** as a bugfix release (Stripe Billing default product background, #944) plus other merged items (e.g. `paywallSessionId` on checkout/start, CI orb bumps, Dependabot cooldown)—those behaviors are **not** modified in this diff; only version and changelog text change here. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 249135d. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested the changes locally. Note the paywall_id and paywall_session_id returned for checkout/start

The backend change is not yet in review but I'm working on it.
Summary
Send
paywallSessionIdto the backend onPOST /rcbilling/v1/checkout/start. This will allow khepri to populate paywall_session_id on the presented offering context for web paywall txs/Changes
entities/purchase-params.ts: add optionalpaywallSessionId.main.ts: pass generatedpaywallSessionIdinto the purchase flow and UI components.helpers/purchase-operation-helper.ts+networking/backend.ts: forwardpaywallSessionIdand includepaywall_session_idin the checkout/start body whenpaywallIdis set.ui/purchases-ui.svelte,ui/stripe-checkout-purchases-ui.svelte: accept and forward the prop.tests/networking/backend.test.ts: assertpaywall_session_idis included when provided and omitted otherwise.Test plan
npm run test(backend networking unit tests for checkout/start body)/rc_paywall/<user>?offeringId=<offering-with-paywall>, complete a purchase, confirmpaywall.paywall_session_idis present in thecheckout/startrequest body.Relates to WEB-4389.
Made with Cursor