#jakub-kenny-gause_best-practices

1 messages ยท Page 1 of 1 (latest)

unique thornBOT
#

๐Ÿ‘‹ 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.

stark rapids
#

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?

remote star
#

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.

stark rapids
#

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.

#

That will allow you to render Payment Element and collect card details before you actually create the Invoice server-side

remote star
#

Nice, thank you for advice.
I will look into that.

stark rapids
#

๐Ÿ‘