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

[14.x] Cascade Stripe exceptions when invoicing #1210

Merged
merged 1 commit into from
Jun 25, 2021

Conversation

driesvints
Copy link
Member

This PR changes the behavior of ->invoice() to cascade Stripe exceptions. Previously they were silently failing by returning false. It's best to better inform the user when something goes amis or when they're attempting to invoice a user when there isn't anything to invoice. Most likely this means there's a mistake in their system so it's good to explicitly warn about that. CardException's are still caught to trigger the IncompletePayment exceptions.

@driesvints driesvints changed the title [13.x] Cascade Stripe exceptions when invoicing [14.x] Cascade Stripe exceptions when invoicing Jun 25, 2021
@taylorotwell taylorotwell merged commit 7d3a7ce into master Jun 25, 2021
@taylorotwell taylorotwell deleted the throw-stripe-exceptions branch June 25, 2021 13:09
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.

None yet

2 participants