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

Added expand option to Subscription latestInvoice() #1548

Closed
wants to merge 1 commit into from
Closed

Added expand option to Subscription latestInvoice() #1548

wants to merge 1 commit into from

Conversation

quantumwebco
Copy link
Contributor

Non breaking change, added expand option to the latestInvoice() method of the Subscription class
This is useful as when getting the latest invoice to check for 'requires_action' 3DS it's helpful to be able to return the payment intent. We could also have a method on the Invoice, requiresConfirmation()
Invoice pay() does not throw an IncompletePayment exception, it throws a native Stripe CardException so the payment intent is not in the error object

@taylorotwell taylorotwell marked this pull request as draft July 4, 2023 18:04
@driesvints
Copy link
Member

Unfortunately this is a breaking change to the method signature. Anyone overwriting it will see their apps break. We can do this in 15.x (master) if you want to.

@driesvints driesvints closed this Jul 6, 2023
@quantumwebco
Copy link
Contributor Author

OK, I see. I'll open a PR in the master branch then. Thanks

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