#cnguyen-invoices

1 messages · Page 1 of 1 (latest)

willow bronze
#

when I check the log, I see invoice.created => payment_intent.succeeded

is that for the first invoice of a subscription specifically?

#

because those ones are created and charged immediately usually so you can't change the descriptor first! But it depends on the exact details and how you integrate. What invoice ID in_xxx was that?

delicate warren
#

No. The first invoice is £0 because there is a trial period. Then I test it by ending the trial period now in the stripe dashboard.

#

in_1KLoiiED5xkfDv2cKgcZXAdI

#

I have a membership with 7 days trial. I create one. Listen the invoice.created. And I update the statement_descriptor on each invoice.created.

#

So I update it on the first £0 invoice. But also for the next one

willow bronze
#

yeah if you end the trial period immediately it creates and charges the invoice immediately

delicate warren
#

And maybe it works. It's just I d'ont know how to check it. And I see that the pi generated just after the invoice.created doesn't mention my statement_descriptor but only the calculated one

willow bronze
#

it definitely doesn't work if you directly force the end of the trial as that's an immediate payment

delicate warren
#

OK So I can't test like that

#

How can I test ?

willow bronze
delicate warren
#

If I update the invoice in the invoice.created webhook. It will be good too ?

willow bronze
#

yes