#kaki87_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1397208955381616741
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- kaki87_api, 21 hours ago, 7 messages
- kaki87_best-practices, 3 days ago, 25 messages
- kaki87_best-practices, 3 days ago, 20 messages
hey there, taking a look
Hi synthrider, I remember you from when I was working at a company a few years ago, I was active here a lot ^^
welcome back!
Thank you !
The new generated invoices for an unpaid subscription remain as drafts (status=draft ), which are not open because they are not finalized. That appears to be happening as expected here.
https://docs.stripe.com/billing/subscriptions/overview#unpaid-subscriptions
For subscriptions with unpaid invoices, the unpaid invoices remain open but further payment attempts are paused. The subscription continues to generate invoices each billing cycle, which remain in the draft state.
Paying the most recent non-voided invoice before its due date updates the subscription status to active.
So, what do I do to provide a button that gives the customer a link to pay the overdue balance ?
If you update your list request to use draft status, you'll find these invoices, which you can then finalize & pay when ready
What do you mean by button here?
What are you trying to achieve?
Here's a screenshot of the button I made :
When clicking it, while the subscription is in past_due state, the request I made would work, the link I would give back is hosted_invoice_url
How do I do the unpaid case ?
So that's 3 requests
What do you mean?
1 request to get the invoice ID from the subscription ID and see if it has a URL, 1 request to finalize if no URL, and 1 more to get the URL again
You should be able to get the url from the /finalize response -- it includes the invoice object
Okay, thanks !
Also, I must say I liked better how the server was last time I was here, I think there was a general channel where people could hang out, and the threads weren't forcibly closed after a few minutes
We made some changes to address some community members not respecting rules and to better organize/clarify the how we help folks and when to talk to support instead etc
Yeah, I understand :/
But yesterday for example it took me a while to try out something that one of your colleague gave me, and it worked, but I lost the chance to tell them and thank them because of the auto-closing...
And I miss the general channel
The fact that a company has actual devs on Discord, that creates a unique kind of community compared to those who are only filled with the usual "customer service", and I wish we could enjoy that
Appreciate you trying to come back to let us know ๐
We close by default after long dormancy because most folks don't come back to say anything
If you update periodically while testing we'd likely keep it open
Alright, will do !
Well, I just finished updating my code, and this works, so thank you :)
Would you consider recreating a general (non-help) channel ?
Probably not in the near term -- there was some abuse there and folks expecting questions to be answered etc
But I'll flag to my team that this is something you apprecaited and missed, so we can take that into account
Yeah, I understand. Thank you and have a nice day !