#zendron_api

1 messages ¡ Page 1 of 1 (latest)

lime rainBOT
#

👋 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/1336593975678861323

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

final hinge
#

Hi, can you look at the Payment Method inside the Payment Intent, which is inside the Invoice?

mental plaza
#

Yes, the payment method associated with the invoice contains the billing address, but the invoice itself does not show that billing address nor the name on the invoice, which is a problem

final hinge
#

Yeah I believe it's only available on the PaymentMethod. You could call Retrieve Invoice API, and expand payment_intent.payment_method to get the nested down address

mental plaza
#

Well yes, but won't the invoice already be finalized then?

#

Like I won't have time to do this manually hroughthrough a webhook as as soon as the customer pays the invoice is finalized and cannot be changed, correct?

final hinge
#

It's correct that you only have the address after the Invoice is paid. What do you want to change at this timing?

mental plaza
#

Well I want for the billing address to be visible on the invoice, so how would you suggest doing that?

final hinge
#

By visible, do you mean visible on Invoice receipt?

mental plaza
#

Exactly. Like you receive the option to download the invoice after paying successfully and I want the invoice to be visible on there.

final hinge
#

Can you run a test on Test mode, that update the Customer's address field after the Invoice finalized, using the used Payment Method, then generate the receipt again from the hosted Invoice Page?

mental plaza
#

Let me try that out

#

Oh yeah, that surprisingly works! Thank you! So I can just add the address later after the payment has been made and it will just be added to the user generated invoice like that?

final hinge
#

Yeah the Invoice will pick it up when generate the receipt