#LucaW-subscription

1 messages · Page 1 of 1 (latest)

main oyster
#

LucaW-subscription

cobalt latch
#

Hi Soma

#

I'll explain it more clear

#

What I need to do is: Add statement description to subscriptions

#

But I can't get it to work with subscriptions

#

Can you tell me how to add statement_description to subscriptions? In a dynamic way not the static one

main oyster
#

There are two ways to set a statement description on the subscription:

#

For the second option, you would need to listen to the webhook event invoice.created to edit the statement_descriptor of the invoice.

cobalt latch
#

Ok I see, for the 2 option invoice.created is sent to my webhook before the invoice.paid right?

main oyster
#

Yes, after the invoice is created, you have one hour to make changes to the invoice before it is finalized (and paid).

cobalt latch
#

Alright, I'll make the changes to my flow right now and I'll let you know, thanks for the explanation

cobalt latch
#

Ok I've successfully updated the invoice with the statement_description

#

But on the payment intent of that invoice

#

On the payment intent of that invoice under statement_description there is still the static one

#

what statement_description will appear on the bank movements of the user? The statement_description of the invoice that I've previously set on invoice.created webhook or the one on the payment intent?

main oyster
#

If there is a statement_descriptor set on the invoice, then that's the one that will be displayed to your users