#meisei-Receipt

1 messages · Page 1 of 1 (latest)

frosty jasper
#

Hi there, can you share with me the charge ID or paymentIntent ID?

sudden tree
#

ch_3LTkQgCsiaKaCQKS1YCJLFIy

frosty jasper
#

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. ```

Send payment or refund receipts automatically.

sudden tree
#

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?

frosty jasper
#

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?

sudden tree
#

you mean the email? we didn't make the customer provided their email.

frosty jasper
#

Hmm, then how do you send the receipt to your customers?

weak laurelBOT
#

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

midnight lotus
#

@sudden tree

sudden tree
#

Thanks.

sudden tree
midnight lotus
#

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

sudden tree
#

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?

neon plume
#

Hey! Taking over for my colleague. Let me catch up.

sudden tree
#

Hi, you there?

neon plume
#

yes, juste give couple of minutes while I catch up

sudden tree
#

ok

neon plume
sudden tree
#

ok. I will try it. thanks a lot.

#
  1. in the testing environment, it seems that the receipt url would not be expired?
#
  1. can I download the receipt pdf by the api which url is expired?
#

this is the charge id for question 1: ch_3LD3V8CsiaKaCQKS0hy6wLTp

neon plume
sudden tree
#

How can I download the receipt pdf by API? Not the invoice pdf.

mystic sphinx
#

you can't

#

there's no receipt PDF available in the API for non-Invoice charges

sudden tree
#

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?

mystic sphinx
#

no

sudden tree
#

I just want to get the receipt pdf url and download it through program

mystic sphinx
#

yep, but that's not something our API exposes today, sorry

rancid plinth
#

@sudden tree How can I help?

sudden tree
#

Hi, I found that appending a path /pdf in the receipt url, it would turn to download a receipt as pdf format

rancid plinth
#

Do you have any follow up question?

#

Or issue that you're facing?

sudden tree
#

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

undone radish
#

Could you give an example API you did that?

sudden tree
#

I add path /pdf manually. Just copy the receipt url and append /pdf path

undone radish
#

Can you give an example working receipt URL? I would like to check myself

#

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

undone radish
#

Yes I know, and it only works for Invoice's PDF

sudden tree
#

So, can I use this way to get a receipt pdf?

undone radish
#

It's no guarantee the appending method will work in the future. But the URL will always work

sudden tree
#

I want to get receipt pdf, not invoice pdf. Is it possible getting from api?

undone radish