#shaon

1 messages ยท Page 1 of 1 (latest)

stuck tundraBOT
calm sky
#

๐Ÿ‘‹ happy to help

#

when you say more do you mean you already have used custom fields?

leaden plank
#

Yes

calm sky
leaden plank
#

I'm trying to add more than the default number of custom fuields

#

which is 4

calm sky
#

I'm not sure it's possible

leaden plank
#

ah ok

#

how long can description be?

calm sky
#

I'm not sure

leaden plank
#

ok

#

how can I delay invoice.finzalied

#

i would like to delay for 5 seconds or sop

#

or until invoice modification has taken place

#

in invoice create I am modifying the invoice itself to add a description

calm sky
#

are we talking about recurring invoices or one-time?

leaden plank
#

recurring

trail path
#

So the way to do that would be by starting your subscription with a ten second trial, the first invoice wouldn't be finalized for an hour after that but you can manually make the finalize invoice API call to make that happen sooner

leaden plank
#

but what about subsequent invoices?

#

for the next billing period

calm sky
#

you'd have to listen to invoice.upcoming events and update the invoice before it gets finalized

trail path
#

If you are charging automatically, every invoice except for the first one will always be in a draft state for an hour before finalizing

#

So invoice.created will work for them

leaden plank
#

ah ok

#

that makes a lot of sense

#

thank you

#

how can i check whether its the first one?

calm sky
#

it will have subscription.create

leaden plank
#

how do you recommend testing a subscription.cycle billing reason?

trail path
#

We have test clocks that you can use to simulate time passing. So you could make a subscription and fast forward the clock so that it cycles to make sure that your integration reacts to these webhooks and fields properly. https://stripe.com/docs/billing/testing/test-clocks