-
Notifications
You must be signed in to change notification settings - Fork 58
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
Cannot finalize newly created invoice #173
Comments
Hey @adrianlungu ! Thanks for using localstripe! From the 404 you see on localstripe/localstripe/server.py Lines 267 to 276 in 591f3b5
localstripe/localstripe/resources.py Lines 1362 to 1366 in 591f3b5
The To add a new route to localstripe, contributions are welcomed ;-). About when localstripe changes invoice state, the best I can tell you is to go and try to look here: localstripe/localstripe/resources.py Lines 1015 to 1029 in 591f3b5
Two quick things about localstripe:
|
Hey @H--o-l , Thanks for the quick reply and the insight into the project. I took a look but it seems this might be a bigger change than I anticipated initially. I'm not sure if I'm reading the code properly here: localstripe/localstripe/resources.py Line 1243 in 591f3b5
But it seems that the current flow of invoice creation is tied to subscriptions, there's no way to create a Please let me know if I'm wrong. |
I haven't look inside this code for a while so I don't want to be too affirmative on it, but it is also what I think. If it's true, and it seems it is, maybe it's still possible to adapt the code to handle one-time invoices but what will require some work indeed. |
Hello,
In this specific flow, the
finalize
seems to be behaving slightly different than what Stripe is doing:stripeClient.InvoiceItems.New(params)
stripeClient.Invoices.New(params)
These are the logs outlining the described steps:
We attempt to void the invoice in case anything goes wrong, but that also returns a
404
.Am I understanding correctly that
localstripe
currently finalizes theinvoice
during the creation process ? I.e. inPOST /v1/invoices
?Thanks!
The text was updated successfully, but these errors were encountered: