Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.x] Stripe SDK refactor #1169

Merged
merged 8 commits into from
May 25, 2021
Merged

[13.x] Stripe SDK refactor #1169

merged 8 commits into from
May 25, 2021

Conversation

driesvints
Copy link
Member

This PR refactors the way API requests to Stripe are made by implementing their new recommended way of using the StripeClient object. There are a couple of advantages to this:

  • StripeClient more explicitly throws exceptions when you send malformed payloads instead of failing silently like before
  • Simplifies things. No more passing extra options to each API request.
  • We stay up to date with Stripe's recommended way of using the SDK

The upgrade path for existing users should be easy. No public API was changed. Only if you were overwriting the stripeOptions method you'll need to overwrite the stripe method now instead (which I suspect almost no-one is doing).

Closes #939

@taylorotwell taylorotwell merged commit 36ef105 into master May 25, 2021
@taylorotwell taylorotwell deleted the stripe-sdk-refactor branch May 25, 2021 12:45
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