Skip to content

Upgrade stripe - #336

Open
AlistairNorman wants to merge 3 commits into
solidusio:mainfrom
SuperGoodSoft:upgrade-stripe
Open

AlistairNorman wants to merge 3 commits into
solidusio:mainfrom
SuperGoodSoft:upgrade-stripe

Conversation

@AlistairNorman

@AlistairNorman AlistairNorman commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bumps the version of the Stripe gem to '~> 13.0' so that we have access to more modern features of the Stripe API. This is also the newest version we can use that still supports the now deprecated StripeClient#request method that we're using for basically all of our API calls. That method is deprecated in favour a service based call pattern or using StripeClient#raw_request which has a different interface.

The only version with any migration requirements before v13 is v9, which introduced a change to always sending the API version header with requests. None of the parameters or APIs we're using appear to be impacted by that change so it's okay for us to just let it start sending the API version for us. If customers were locked to an older version of the API, they can skill explicitly set the API by setting it in an initializer like so: Stripe.api_version = '2020-08-27'

With the extension on this version, we can slowly migrate our code to the new service based call pattern and eventually upgrade to the latest version of the Stripe gem.

https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

adammathys and others added 3 commits September 22, 2026 14:05
Temporarily removing these two endpoints becuase they cause issues when
adding this gem to stores that don't use solidus_api.

Will look at re-adding them in the future with proper checks for the gem
existing so that we don't try to load in controllers that break Zeitwerk
autoloading.
It's the oldest modern version of the Stripe API from 2024-2025 when
they switched to having named API versions.

Gets us closer to the latest version so that we can start supporting
modern features from Stripe.
Solidus deprecated the @current_user_roles ivar in favour of the
current_user_roles helper.
@AlistairNorman AlistairNorman self-assigned this Sep 22, 2026
@AlistairNorman
AlistairNorman marked this pull request as ready for review September 22, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants