Skip to content

feat: send paywallSessionId in checkout/start#939

Merged
dalshamaa merged 2 commits into
mainfrom
web-4389-send-paywall-session-id-recreated
Jun 18, 2026
Merged

feat: send paywallSessionId in checkout/start#939
dalshamaa merged 2 commits into
mainfrom
web-4389-send-paywall-session-id-recreated

Conversation

@dalshamaa

@dalshamaa dalshamaa commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Tested the changes locally. Note the paywall_id and paywall_session_id returned for checkout/start
image

The backend change is not yet in review but I'm working on it.

Summary

Send paywallSessionId to the backend on POST /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 optional paywallSessionId.
  • main.ts: pass generated paywallSessionId into the purchase flow and UI components.
  • helpers/purchase-operation-helper.ts + networking/backend.ts: forward paywallSessionId and include paywall_session_id in the checkout/start body when paywallId is set.
  • ui/purchases-ui.svelte, ui/stripe-checkout-purchases-ui.svelte: accept and forward the prop.
  • tests/networking/backend.test.ts: assert paywall_session_id is included when provided and omitted otherwise.

Test plan

  • npm run test (backend networking unit tests for checkout/start body)
  • Manual: load /rc_paywall/<user>?offeringId=<offering-with-paywall>, complete a purchase, confirm paywall.paywall_session_id is present in the checkout/start request body.

Relates to WEB-4389.

Made with Cursor

@dalshamaa dalshamaa requested review from a team and vicfergar June 17, 2026 20:04
@dalshamaa dalshamaa merged commit 28783ca into main Jun 18, 2026
7 checks passed
@dalshamaa dalshamaa deleted the web-4389-send-paywall-session-id-recreated branch June 18, 2026 13:38
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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants