#lil-nasty_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/1268682006263365703
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- lil-nasty_best-practices, 22 hours ago, 44 messages
- lil-nasty_best-practices, 6 days ago, 47 messages
Hello
What do you mean by receipt pdf? are you referring to a receipt generated by Stripe or yourself?
By stripe
We like the simplicity of utilizing the stripe generated doc, but think it's odd to send a link to download an invoice pdf on a notification that a payment has succeeded. Would expect to send a receipt pdf download link
The hosted invoice page for the invoice would have an option to download invoice as well as the receipt
iirc
The receipt_url is stored on the charge (ch_xxx) object associated with the PaymentIntent for that invoice. So you'd want to look up the charge and use the reciept_url from there: https://docs.stripe.com/api/charges/object#charge_object-receipt_url
Is there anwhere that has the equivalent, but in a download link the same way that invoice_pdf works from the invoice object?
Basically instead of the link opening a page, it simply would trigger a pdf download for the receipt
We have a section towards the bottom of the email that looks like this
I don't think there's a download link.. There's only the URL. Maybe you'd want to write custom code that saves the receipt on your server and attaches them to the email.