#danoushka-invoice-pdf
1 messages · Page 1 of 1 (latest)
Hi 👋 that information is stored on the Charge object in the receipt_url field:
https://docs.stripe.com/api/charges/object#charge_object-receipt_url
You'll need to find the Charge associated with the payment you processed and then check there.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, but the url is not to download directly the pdf
I'm not sure I'm following, can you elaborate?
I would like to have the url of the pdf receipt
And can you elaborate on why the URL in the field I pointed to doesn't work for your needs?
but i don't want that
what do you mean by flow ?
That's testmode data in those screenshots, right?
By flow I mean, how are you accepting payments with your Stripe integration?
With Direct payment
so which Invoice event, I can get the invoice paid? with the "300.00 paid February 20, 2024" for example
I don't know what "Direct payment" means. If you aren't already creating Invoices as part of your payment process, and aren't using Checkout Sessions or Payment Links which can be configured to generate Invoices, you'll need to adjust your flow so that it instead creates Invoices.
danoushka-invoice-pdf
when i test i get that from webhook
but i get the invoice not paid like this
but i want this one from the webhook
Okay so you are using Checkout
So really what you want is the invoice_pdf property on the Invoice which you can get after receiving invoice.paid: https://docs.stripe.com/api/invoices/object#invoice_object-invoice_pdf
when i try with Invoice.Paid event, the url give me that : https://pay.stripe.com/invoice/acct_1OZDTUF2fgkiEuBo/test_YWNjdF8xT1pEVFVGMmZna2lFdUJvLF9QYjlHRTMxSEdZajV4MUxTZ3lsS2VyalJ2WGloc2J1LDk4OTkwMzA40200o9uFH9Aq/pdf?s=ap
But the invoice it's not paid