Skip to content

refactor(stripe): upgrade to the dahlia API version - #436

Merged
xabg2 merged 1 commit into
masterfrom
refactor/stripe-dahlia
Nov 2, 2026
Merged

xabg2 merged 1 commit into
masterfrom
refactor/stripe-dahlia

Conversation

@xabg2

@xabg2 xabg2 commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

What's new

  • Payments now use Stripe's dahlia API version (SDK 22).
  • Subscriptions, invoices and payments keep behaving as before.

Depends on #435

@sonarqubecloud

Copy link
Copy Markdown

@xabg2
xabg2 marked this pull request as ready for review October 28, 2026 10:42
@xabg2
xabg2 requested review from jzunigax2 and sg-gs as code owners October 28, 2026 10:42
@sg-gs

sg-gs commented Oct 28, 2026

Copy link
Copy Markdown
Member

Leaving this review up to you @jzunigax2

jzunigax2
jzunigax2 previously approved these changes Oct 30, 2026

expect(response.statusCode).toBe(200);
expect(responseBody).toStrictEqual(mockedSubscription);
expect(responseBody).toStrictEqual(JSON.parse(JSON.stringify(mockedSubscription)));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the stringify then the parse?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the dahlia API version, *_decimal fields are Stripe.Decimal instances instead of strings. The response serializes them to "1000", so comparing against the raw fixture fails on plan.amount_decimal. Round-tripping the fixture through JSON gives what the client actually receives.

Base automatically changed from refactor/stripe-clover to master November 2, 2026 06:44
@xabg2
xabg2 dismissed jzunigax2’s stale review November 2, 2026 06:44

The base branch was changed.

@xabg2
xabg2 requested a review from jzunigax2 November 2, 2026 06:52
@xabg2
xabg2 merged commit de56d58 into master Nov 2, 2026
12 checks passed
@xabg2
xabg2 deleted the refactor/stripe-dahlia branch November 2, 2026 08:29

This branch was previously deployed

1 inactive deployment
test — e2bd078e Deployed Oct 28, 2026 by xabg2 via Run tests (24.11.0) #1187
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.

3 participants