#giorgi-subscription-invoicesettings
1 messages ยท Page 1 of 1 (latest)
Hello
You want to surface this info on the Invoice itself?
Or you just want to have the data accessible via the API?
We want to surface the info on the invoice itself
Hmm yeah this isn't easy unfortunately.
And we ended up with simply duplicationg this data in customer info because it pops up in the invoices automatically ๐
But we are looking for a way to show the info from payment method itself automagically
Currently we only support doing this via creating the Subscription in the Dashboard
We do want to add things like custom_fields to the Subscription API but it isn't supported yet
So, if a user has various payment methods with distinct addresses, cities, countries, etc., do we have to update the custom_fields field every time a new invoice comes into play?
(when it will be supported)
Well you can actually already do that. The problem is that you can't do that for the first Invoice for a Subscription as that one finalizes immediately.
For renewals you could listen for invoice.created and then call https://stripe.com/docs/api/invoices/update#update_invoice-custom_fields to set Custom Fields
In the future, we hope to support this on the Subscription API itself, so that those custom fields are applied to all Invoices for the Subscription
If we need to update this custom_fileds field each time regardless, I suppose we'll stick to our current approach of updating customer info. Thanks! ๐
Yeah I think the current approach is best for now.
And thanks for a suggestion with handling invoice.created event, we will meditate on it!
In the future I do hope you can take advantage of custom_fields on Subscription. I'll add to the feature request internally to note more interest for that.
Thank you a lot 