#meisei-Receipt
1 messages · Page 1 of 1 (latest)
ch_3LTkQgCsiaKaCQKS1YCJLFIy
The receipt URL is valid for 30 days
https://stripe.com/docs/receipts
The link to view the receipt in the browser is also available through the API on the Charge object. As a security measure, these links expire within 30 days. ```
Could it be refreshed?
We don't send any receipt to our customer's email after they complete payment. But now the receipt url is expired, how could we do to make the customer can view it?
The doc says Accessing past the expiration will trigger a resend of the receipt to the original recipient., did your customer receive the resent receipt?
you mean the email? we didn't make the customer provided their email.
Hmm, then how do you send the receipt to your customers?
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
@sudden tree
Thanks.
We show the entrance in our APP so that the customer can click it and jump to the browser to view the receipt.
As noted, the receipt links now expire after 30 days and to renew them an email will be sent to the original recipient email
You'll need to workaround that if you're not collecting the email. Maybe download the PDF rather than using the URL
It seems that there is no the receipt's PDF, but invoice's PDF
for the exists receipt, can I modify the email? I want to make the customer provided the email address and then update it to the receipt. Does it work?
Hey! Taking over for my colleague. Let me catch up.
Hi, you there?
yes, juste give couple of minutes while I catch up
ok
Thanks for your patience!
You would update the receipt_email on the Charge object: https://stripe.com/docs/api/charges/update#update_charge-receipt_email
Then when you visit the receipt_url after it has expired, the customer will be sent an email with a new URL for the receipt
ok. I will try it. thanks a lot.
- in the testing environment, it seems that the receipt url would not be expired?
- can I download the receipt pdf by the api which url is expired?
this is the charge id for question 1: ch_3LD3V8CsiaKaCQKS0hy6wLTp
- can I download the receipt pdf by the api which url is expired?
They are valid for 10 days if I well understand your question
https://stripe.com/docs/invoicing/hosted-invoice-page#invoice-urls:~:text=Even after expiration%2C any URLs that the Dashboard displays or a user retrieves through the API are guaranteed to be valid for 10 days.
- in the testing environment, it seems that the receipt url would not be expired?
I'm not aware of that honestly, the receipt links are expired within 30 days
https://stripe.com/docs/receipts#:~:text=As a security measure%2C these links expire within 30 days
How can I download the receipt pdf by API? Not the invoice pdf.
I mean, is there a receipt pdf url when the customer charge?
or, is there any receipt pdf url which could be got by API?
no
I just want to get the receipt pdf url and download it through program
yep, but that's not something our API exposes today, sorry
@sudden tree How can I help?
Hi, I found that appending a path /pdf in the receipt url, it would turn to download a receipt as pdf format
I follow up the question that yesterday discussed
Yesterday, I want to find the receipt pdf by Stripe API, but there's no.
Today, I found that appending a path /pdf in the receipt url, and then the receipt pdf would be downloaded
So now I want to confirm that whether this way could work or not
Could you give an example API you did that?
I add path /pdf manually. Just copy the receipt url and append /pdf path
example: https://stripe.com/receipt/xxxx and after appending: https://stripe.com/receipt/xxxx/pdf
Can you give an example working receipt URL? I would like to check myself
Appending /pdf path only works on Invoice Receipt, not Payment Receipt. And for Invoice PDF, you already have an URL from https://stripe.com/docs/api/invoices/object#invoice_object-invoice_pdf
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So no it's not working universally, and not safe to relied on. Instead you should only use the pdf url provided via our API
Yes I know, and it only works for Invoice's PDF
So, can I use this way to get a receipt pdf?
No, you should look for the URL from Invoice object like I shared https://stripe.com/docs/api/invoices/object#invoice_object-invoice_pdf
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It's no guarantee the appending method will work in the future. But the URL will always work
I want to get receipt pdf, not invoice pdf. Is it possible getting from api?
No as my colleague said yesterday #1016604442566610946 message