#Trapov
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
I'm using the stripe invoice sessions and can't really figure out where can I find the url to the receipt
What do you mean by "invoice sessions"? What api are you using?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I meant checkout sessions my bad, sorry
Sorry for late reply, checking now.
The Charge object has a receipt_url property: https://stripe.com/docs/api/charges/object#charge_object-receipt_url
You can get it via CheckoutSession.payment_intent.latest_charge.receipt_url
You can share it with the customer, however you will not be able to download a PDF.
You can use Invoicing, then you can download Invoice PDF via invoice_pdf: https://stripe.com/docs/api/invoices/object#invoice_object-invoice_pdf
so there is no api to download through the checkout session?
No
is customer required when creating the invoice?
and I can't inline items in the invoice
invoice_pdf
but invoice pdf is not a receipt pdf isn't it?
Hello ๐
Stepping in as vanya needs to step away soon
If you're trying to charge the customer automatically once invoiced then yes its required
it's just a pdf of the invoice
If you're sending the invoice for payment then you don't technically need a customer
so how could I get a receipt then?
I mean I could obtain it with sessions but for that I need to directly visit the page and download it
You can turn on customer emails for successful payments via the dashboard
https://dashboard.stripe.com/settings/emails
Which should send out the receipt to your customers
As far as I know, there isn't a way to download the PDF and then send it
well my business wants to have the pdf on our side as well, emails wont do, sorry :/
If I parse the page for the link am I going to violate the service agreement?
I don't know if its against the policies
You may want to talk to our support team about that, our team on discord won't know about service agreements as such!
https://support.stripe.com/?contact=true
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.
ok, thank you
๐