Skip to content

fix(purchases-js): use default product background for Stripe Billing#944

Merged
nicfix merged 1 commit into
mainfrom
WEB-4412
Jun 22, 2026
Merged

fix(purchases-js): use default product background for Stripe Billing#944
nicfix merged 1 commit into
mainfrom
WEB-4412

Conversation

@nicfix

@nicfix nicfix commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Motivation / Description

Fixes Stripe Billing checkout default background handling when branding.appearance is null. The Stripe Billing wrapper was falling back to white around embedded Stripe Checkout instead of using the shared default product-info background color, which caused visible whitespace in WPLs using default appearance settings on tall viewports.

This now uses the shared product-info theme defaults, matching the rest of the checkout UI.


Note

Low Risk
Scoped styling change for Stripe Billing checkout background defaults; no auth, payment, or API behavior changes.

Overview
When branding.appearance is null, the Stripe Billing checkout wrapper no longer falls back to white (#ffffff) for its background. It now uses toProductInfoColors, the same shared default product-info palette used elsewhere in checkout (e.g. rgb(239, 243, 250)), so tall viewports don’t show mismatched whitespace around embedded Stripe Checkout.

A UI test asserts that .stripe-checkout-wrapper gets that default background when appearance is not customized.

Reviewed by Cursor Bugbot for commit c327514. Bugbot is set up for automated code reviews on this repo. Configure here.

@nicfix nicfix added the pr:fix label Jun 22, 2026
@nicfix nicfix marked this pull request as ready for review June 22, 2026 13:51
@nicfix nicfix merged commit ad2e672 into main Jun 22, 2026
7 checks passed
@nicfix nicfix deleted the WEB-4412 branch June 22, 2026 14:09
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.

2 participants