#shimmmaz

1 messages · Page 1 of 1 (latest)

keen hedgeBOT
toxic palm
#

Hi. Could you please summarise the question?
What's the Invoice ID?

raw jasper
#

This invoice went from draft to paid without going through finalized before: in_1NGIyMCFsGKEw9heJRNzm3Io

#

my flow depends on the invoice first finalizing and then getting paid

toxic palm
#

I see that it was paid the moment it after it was finalized. You didn't receive the webhook notification?

#

Are you with me?

raw jasper
#

"status_transitions": {
"finalized_at": 1696114800,
"marked_uncollectible_at": null,
"paid_at": 1696114800,
"voided_at": null
},

#

finalized and paid are at the same moment. Does this just happen because I am in test mode and using test clocks?

#

will it behave differently in live?

toxic palm
#

Is it only a single instance of this behavior?

raw jasper
#

no it happens for every invoice I am using with test clocks

toxic palm
#

Have you tried using Invoices in Test mode, but without Test clocks?

raw jasper
#

How do I test a scheduled subscription becoming active and paid without using test clocks?

toxic palm
#

Yeah, I understand, it's complicated.

#

Why do you need to listen to finalized event?

raw jasper
#

I need to create an invoice on my end and then mark it as paid when it is paid.

toxic palm
#

I recommend you do it in one step, in both cases:

  • if the event is invoice.finalized - create your invoice
  • if the event is invoice.paid - create your invoice and mark it as paid
raw jasper
toxic palm
#

This is Test clock issue. You can just create another one, there's no limit on Test clocks.

raw jasper
#

got it

#

thanks

keen hedgeBOT