Skip to content

refactor(stripe): prepare the code for the Stripe v18 upgrade - #427

Merged
xabg2 merged 1 commit into
masterfrom
refactor/stripe-v18-preparation
Oct 28, 2026
Merged

xabg2 merged 1 commit into
masterfrom
refactor/stripe-v18-preparation

Conversation

@xabg2

@xabg2 xabg2 commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

What's new

  • First step of the Stripe SDK upgrade: the parts of the code that already work the same way on the current and the next Stripe version have been moved to the new form, so the version bump itself will be smaller.
  • Applying a coupon when changing plans no longer removes the discounts a subscription already has when no coupon is sent.
  • The "taxes enabled" flag of the user's subscription keeps working after the Stripe upgrade (it relied on a field the new version removes).
  • Removed the old /get-user-subscription migration endpoint, which is no longer used.

…ed code

Remove the /get-user-subscription migration endpoint and the unused getInvoice method. Apply plan-change coupons through discounts, preview the upcoming invoice with createPreview, detect taxes from the invoice totals and filter paid invoices by status.
@xabg2 xabg2 added the enhancement New feature or request label Oct 26, 2026
@xabg2 xabg2 self-assigned this Oct 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@xabg2
xabg2 merged commit 88eaa73 into master Oct 28, 2026
14 checks passed
@xabg2
xabg2 deleted the refactor/stripe-v18-preparation branch October 28, 2026 08:30

This branch was previously deployed

1 inactive deployment
test — 429aa322 Deployed Oct 26, 2026 by xabg2 via Run tests (24.11.0) #1177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready-for-preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants