#brazjr_webhooks

1 messages ¡ Page 1 of 1 (latest)

wheat doveBOT
#

👋 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/1332050159663710229

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

warm basin
#

Hello! You made several statements, but you didn't ask a question. How can I help?

covert breach
#

Sorry

#

My subscription/invoice is showing an past_due/overdue status, even on the last day of the due date. Is it possible for the past_due/overdue status to only be after the due date?

warm basin
#

No, the due date on an Invoice specifies when payment is due, not the day before payment is due.

covert breach
#

If you look at this event I sent, the due date is today. However, the subscription was already past_due/overdue at the beginning of the day.
However, the customer has until the end of the day to pay. Shouldn't it only be past_due/overdue tomorrow?

warm basin
#

No, that's now how our system works.

#

Let's back up a bit, can you tell me at a high level what you want to build?

covert breach
#

Of course.
I want to block the customer's access when the invoice is due.

warm basin
#

Okay. So when you created this Subscription you set days_until_due to 5; sounds like you actually want to set that to 6, right?

covert breach
#

No. I would like the invoice to only be considered due on the sixth day. Because on the fifth day it is not yet due.

#

From what I understand, Stripe already considers it as expired on the due date.

warm basin
#

Sorry, not sure I follow. If you set days_until_due to 6 it sounds like that doesn't solve your problem, but I'm unclear as to why it doesn't. Can you explain?

#

Based on the information I have so far it sounds like it would solve your problem, so I'm missing some key piece of information.

covert breach
#

Duedate: 01/23/2025
However, I received an event from past_due on 01/23/2025

warm basin
#

Yeah, because you specified that's when it should be due. To put it another way, the Subscription period in question started on the 18th at roughly 1:30 PM UTC. Five days after that (because you set days_until_due to 5), on the 23rd at roughly 1:30 PM UTC, it became past due because the due date had come and gone without payment.

#

If you want the due date to be on the 24th instead of the 23rd you need to set days_until_due to 6 instead of 5.

covert breach
#

Now I understand, Stripe counts days_until_due * 24hs, not days_until_due.
Is there a way to enter a date/time instead of days_until_due?

wheat doveBOT