#mrconorae_api

1 messages ยท Page 1 of 1 (latest)

lone wyvernBOT
#

๐Ÿ‘‹ 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.

dense drum
#

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.

merry cipher
#

hello! are you talking about one-off invoices, or are these invoices related to a Subscription?

dense drum
#

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

merry cipher
#

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

dense drum
#

out of interest, would it be possible if we did use subscriptions?

merry cipher
#

there's this setting for subscriptions

#

the shortest time for the upcoming renewal is 3 days though (not 1 day)

dense drum
#

ohhh I see

#

I'll have a look :)

#

just double checking, shouldn't auto_advance be false?

merry cipher
#

hrm

dense drum
#

for manual emails and collection, I mean

merry cipher
#

you're asking if auto_advance is false by default for one-off invoices?

dense drum
#

for API created invoices I thought it defaults to false

merry cipher
#

yep, it does - it defaults to false

dense drum
#

but it needs to be false otherwise stripe will attempt automatic collection, right

merry cipher
#

yes, it needs to be false otherwise Stripe will attempt automatic collection

dense drum
#

perfect

#

alright, I'll see how it goes

#

thank you for the help!

#

have a great day :)

merry cipher
#

btw, there are also subscription schedules

#

i'm not sure if it would be useful for your use case

dense drum
#

oooo

#

I'll take a look, thanks