#mrconorae_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255343795424333925
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
The idea is that charging immediately on invoice creation is not ideal because it may cause customer confusion. We want to warn customers about an upcoming charge (but can't use subscriptions, because we don't have a regular billing period), so if they could get the invoice email and then only get automatically charged e.g. 24 hours later that would be great.
hello! are you talking about one-off invoices, or are these invoices related to a Subscription?
well it's a kind of pseudo subscription
they'll happen regularly but normal subscriptions don't work because it's not a regular billing period
we'd bill on the first week of each school term, which can be every 3 months ยฑ 3 weeks (and charging while classes aren't running isn't a great look)
so our application would let someone initiate the billing process at the end of the first week, which would trigger invoicing the students they select
sorry if that's really weirdly specific ๐
but they'd be one-off invoices from Stripe's view
hrm, we don't have such a feature but you can build it. The way to go about it is when you create an Invoice, set auto_advance=true , send your email, and then you would have your own cron job to finalize those invoices after ~24 hours.
there are third parties out there which I'm aware can trigger certain workflows upon receipt of a webhook e.g. they might receive an invoice.created webhook which they will send out an email for
out of interest, would it be possible if we did use subscriptions?
there's this setting for subscriptions
the shortest time for the upcoming renewal is 3 days though (not 1 day)
ohhh I see
I'll have a look :)
just double checking, shouldn't auto_advance be false?
hrm
for manual emails and collection, I mean
you're asking if auto_advance is false by default for one-off invoices?
for API created invoices I thought it defaults to false
yep, it does - it defaults to false
but it needs to be false otherwise stripe will attempt automatic collection, right
yes, it needs to be false otherwise Stripe will attempt automatic collection
perfect
alright, I'll see how it goes
thank you for the help!
have a great day :)