#litterboks_best-practices

1 messages ยท Page 1 of 1 (latest)

analog sphinxBOT
proper oliveBOT
#

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.

analog sphinxBOT
#

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

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

faint plinth
#

๐Ÿ‘‹ happy to help

vivid edge
#

Hello tarzan!

faint plinth
#

you can pay the first invoice by marking it paid_out_of_band

vivid edge
#

is it also possible to pay the next cycle out of band before it ends?

Like, the first cycle ends in a week, the check is sent out, the customer pays early, i mark the next cycle as already paid

faint plinth
#

if you need to do that you would need to implement webhooks and listen to invoice.create event

vivid edge
#

im already using webhooks that listen for such events, can you please elaborate on the process?

faint plinth
#

ok

#

give me a second I'll copy the reference

vivid edge
#

I'm using php, if that makes a difference

faint plinth
#

once you receive that event you would manually finalize the event and pay it out of band as I suggested before

vivid edge
#

Ok so the process is:
I send out the check
The check is paid
I save some kind of information in my backend that the subscription is already paid for next cycle
When the subscription actually renews and creates an invoice i look up the table of already paid subscriptions and mark it as paid out of band

#

Is there a time between an invoice being created and the invoice mail (with payment link) being sent? Because if it is already paid i do not want to send out the email

faint plinth
#

but I'm not entirely sure to be honest

#

you need to test it out in testmode using a customer that has the same email as the one used to create the StripeAccount

vivid edge
#

i will, thanks

I believe i can also use this process for my problem where i want people to pay a separate invoice early instead of the one being created from the subscription, what do you think?
Like sending out an invoice early with the price of the yearly subscription as one time item and when the actual subscription renews it's treated as if paid out of band

faint plinth
#

I think we have either a beta or a newly GAed feature to pay future invoices in advanced

#

would that be something you might be interested in?

proper oliveBOT
vivid edge
#

It would have to be stable and usable in a live environment