#ayesha-shaikh_api

1 messages ยท Page 1 of 1 (latest)

iron veldtBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

thin flameBOT
chilly verge
#

Hi there ๐Ÿ‘‹ Invoice objects should have a hosted_invoice_url field containing a link to the Hosted Invoice Page for the Invoice, and an invoice_pdf field which has a download link for the Invoice's PDF.

sage stump
#

hey, and what about receipt link?

#

I remember seeing that too few months ago

chilly verge
#

I don't recall there being a link to a receipt from an Invoice object, because typically if an Invoice is created the receipt associated with the payment doesn't have sufficient details on it and the Invoice PDF is used instead.

I'm happy to take a closer look at what you're referring to if you have examples that you can share.

If you want the receipt from the payment for the Invoice, you have to get the Charge object associated with the Invoice:
https://docs.stripe.com/api/invoices/object#invoice_object-charge
and then get the receipt_url from the Charge:
https://docs.stripe.com/api/charges/object#charge_object-receipt_url

sage stump
#

umm okay thanks. I'll go through the docs

#

the receipt is available after the payment is successful right?