#jakub-kenny-gause_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245736754028482652
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
What exactly do you mean by "old billing details"?
Are you saying you want the Invoice to use the actual PaymentMethod's billing details that you are collecting during the flow in terms of what is displayed on the Invoice itself?
Yes exactly, I have to create customer with only email and allow him to fill in billing details later.
It looks like this attached image.
As you can see, elements are already init with secret from invoice.
So I need to update customer after he fills billing details and based on that I need stripe to update details of customer in invoice for tax purpuses and for invoice pdf.
Yeah okay I see. So once an Invoice is finalized then its details are frozen
So really the only way to accomplish what you want is to wait to create/finalize the Invoice until you have updated the Customer's details.
So in that case you likely want to look into using the deferred intent flow: https://docs.stripe.com/payments/accept-a-payment-deferred
That will allow you to render Payment Element and collect card details before you actually create the Invoice server-side
๐