#LucaW-subscription
1 messages · Page 1 of 1 (latest)
Hi! If you already have a Payment Method, you can set default_payment_method when creating the subscription https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method
LucaW-subscription
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
There are two ways to set a statement description on the subscription:
- Set the
statement_descriptorof the product object https://stripe.com/docs/api/products/create#create_product-statement_descriptor
- Set the
statement_descriptorof the invoice object https://stripe.com/docs/api/invoices/object#invoice_object-statement_descriptor
For the second option, you would need to listen to the webhook event invoice.created to edit the statement_descriptor of the invoice.
Ok I see, for the 2 option invoice.created is sent to my webhook before the invoice.paid right?
Yes, after the invoice is created, you have one hour to make changes to the invoice before it is finalized (and paid).
Alright, I'll make the changes to my flow right now and I'll let you know, thanks for the explanation
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?
If there is a statement_descriptor set on the invoice, then that's the one that will be displayed to your users